Skip to content

Commit b9e1ccf

Browse files
Update examples/dreambooth/train_dreambooth_lora_flux.py
1 parent 4a7e3f9 commit b9e1ccf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/dreambooth/train_dreambooth_lora_flux.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ def __init__(
742742
raise ValueError(
743743
f"`--image_column` value '{args.image_column}' not found in dataset columns. Dataset columns are: {', '.join(column_names)}"
744744
)
745+
# force casting for an image column to decode when this isn't the default
745746
dataset["train"] = dataset["train"].cast_column(image_column, Image(decode=True))
746747
instance_images = dataset["train"][image_column]
747748

0 commit comments

Comments
 (0)