diff options
author | alg-wiki <alg.4chan@gmail.com> | 2022-10-10 08:07:46 +0000 |
---|---|---|
committer | alg-wiki <alg.4chan@gmail.com> | 2022-10-10 08:07:46 +0000 |
commit | 3110f895b2718a3a25aae419fdf5c87c177ec9f4 (patch) | |
tree | 1fb1c9f866a2b3b92480360e441666b9e74a4737 /modules/textual_inversion/preprocess.py | |
parent | 8acc901ba3a252dc6ab4fabcb41644cf64d1774c (diff) | |
download | stable-diffusion-webui-gfx803-3110f895b2718a3a25aae419fdf5c87c177ec9f4.tar.gz stable-diffusion-webui-gfx803-3110f895b2718a3a25aae419fdf5c87c177ec9f4.tar.bz2 stable-diffusion-webui-gfx803-3110f895b2718a3a25aae419fdf5c87c177ec9f4.zip |
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.py | 4 |
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)
|