mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-14 16:22:28 +00:00
Update train_util.py
This commit is contained in:
@@ -5520,7 +5520,7 @@ def sample_images_common(
|
||||
|
||||
if '__caption__' in prompt_dict.get("prompt") and example_tuple:
|
||||
logger.info(f"Original prompt: {prompt_dict.get('prompt')}")
|
||||
if len(example_tuple[1] > 1:
|
||||
if len(example_tuple[1]) > 1:
|
||||
while example_tuple[1][idx] == '':
|
||||
idx = (idx + 1) % len(example_tuple[1])
|
||||
if idx == 0:
|
||||
|
||||
Reference in New Issue
Block a user