From 6cc331a0f49fb8995abe3b8a804e6b1d8ca84a67 Mon Sep 17 00:00:00 2001 From: arrdel Date: Wed, 3 Dec 2025 12:06:58 -0500 Subject: [PATCH] Fix AttributeError in Flux2 dreambooth: rename --validation_image to --validation_image_path The argument was defined as --validation_image but the code references args.validation_image_path (line 1422), causing an AttributeError. This fixes the naming mismatch. Fixes #12779 --- examples/dreambooth/train_dreambooth_lora_flux2_img2img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dreambooth/train_dreambooth_lora_flux2_img2img.py b/examples/dreambooth/train_dreambooth_lora_flux2_img2img.py index 32bce9531b71..89a2aa2e83bd 100644 --- a/examples/dreambooth/train_dreambooth_lora_flux2_img2img.py +++ b/examples/dreambooth/train_dreambooth_lora_flux2_img2img.py @@ -355,7 +355,7 @@ def parse_args(input_args=None): help="A prompt that is used during validation to verify that the model is learning.", ) parser.add_argument( - "--validation_image", + "--validation_image_path", type=str, default=None, help="path to an image that is used during validation as the condition image to verify that the model is learning.",