aboutsummaryrefslogtreecommitdiff
path: root/modules/textual_inversion/preprocess.py
diff options
context:
space:
mode:
authoralg-wiki <alg.4chan@gmail.com>2022-10-10 17:07:46 +0900
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-10 17:05:12 +0300
commitea00c1624bbb0dcb5be07f59c9509061baddf5b1 (patch)
tree318542cd14407b1244e78a5924fcc5757dd2152c /modules/textual_inversion/preprocess.py
parent8f1efdc130cf7ff47cb8d3722cdfc0dbeba3069e (diff)
Textual Inversion: Added custom training image size and number of repeats per input image in a single epoch
Diffstat (limited to 'modules/textual_inversion/preprocess.py')
-rw-r--r--modules/textual_inversion/preprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textual_inversion/preprocess.py b/modules/textual_inversion/preprocess.py
index f1c002a2..b3de6fd7 100644
--- a/modules/textual_inversion/preprocess.py
+++ b/modules/textual_inversion/preprocess.py
@@ -7,8 +7,8 @@ import tqdm
from modules import shared, images
-def preprocess(process_src, process_dst, process_flip, process_split, process_caption):
- size = 512
+def preprocess(process_src, process_dst, process_size, process_flip, process_split, process_caption):
+ size = process_size
src = os.path.abspath(process_src)
dst = os.path.abspath(process_dst)