Textual Inversion: Added custom training image size and number of repeats per input image in a single epoch

This commit is contained in:
alg-wiki
2022-10-10 17:07:46 +09:00
parent 8acc901ba3
commit 3110f895b2
4 changed files with 24 additions and 9 deletions

View File

@@ -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)