Commit 253091e
committed
Fix AttributeError in train_dreambooth_lora_flux2_img2img validation
The validation block referenced `args.validation_image_path`, but the CLI
argument is defined as `--validation_image`, so argparse stores it as
`args.validation_image`. When a user passes `--validation_prompt`, the
script crashes immediately with `AttributeError: 'Namespace' object has
no attribute 'validation_image_path'` before any training starts.
Other Flux2 img2img-style dreambooth scripts (e.g.
`train_dreambooth_lora_flux2_klein_img2img.py` and
`train_dreambooth_lora_flux_kontext.py`) already use the correct
`args.validation_image`; this just aligns this script with them.1 parent c8c8401 commit 253091e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1483 | 1483 | | |
1484 | 1484 | | |
1485 | 1485 | | |
1486 | | - | |
| 1486 | + | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
| |||
0 commit comments