Skip to content

Commit

Permalink
Update train_util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DKnight54 authored Jan 30, 2025
1 parent 7f0ae28 commit 307099c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 307099c

Please sign in to comment.