fix validate full

This commit is contained in:
mi804
2025-08-18 16:17:40 +08:00
parent 398b1dbd7a
commit ad1da43476

View File

@@ -15,6 +15,7 @@ pipe = QwenImagePipeline.from_pretrained(
processor_config=ModelConfig(model_id="Qwen/Qwen-Image-Edit", origin_file_pattern="processor/"),
)
state_dict = load_state_dict("models/train/Qwen-Image-Edit_full/epoch-1.safetensors")
pipe.dit.load_state_dict(state_dict)
prompt = "将裙子改为粉色"
image = Image.open("data/example_image_dataset/edit/image1.jpg").resize((1024, 1024))