Skip to content

Commit d2931e0

Browse files
committed
fix
1 parent 9ac1bde commit d2931e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/dreambooth/train_dreambooth_lora_flux_kontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def __init__(
844844
self.cond_images = []
845845
for i, img in enumerate(instance_images):
846846
self.instance_images.extend(itertools.repeat(img, repeats))
847-
if cond_images is not None:
847+
if args.dataset_name is not None and cond_images is not None:
848848
self.cond_images.extend(itertools.repeat(cond_images[i], repeats))
849849

850850
self.pixel_values = []

0 commit comments

Comments
 (0)