Skip to content

Commit 1f81fbe

Browse files
hmdliusayakpaul
andauthored
Fix redundant pipe init in sd3 lora (#8680)
Co-authored-by: Sayak Paul <[email protected]>
1 parent 589931c commit 1f81fbe

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

examples/dreambooth/train_dreambooth_lora_sd3.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,13 +1638,6 @@ def get_sigmas(timesteps, n_dim=4, dtype=torch.float32):
16381638
save_directory=args.output_dir, transformer_lora_layers=transformer_lora_layers
16391639
)
16401640

1641-
pipeline = StableDiffusion3Pipeline.from_pretrained(
1642-
args.pretrained_model_name_or_path,
1643-
revision=args.revision,
1644-
variant=args.variant,
1645-
torch_dtype=weight_dtype,
1646-
)
1647-
16481641
# Final inference
16491642
# Load previous pipeline
16501643
pipeline = StableDiffusion3Pipeline.from_pretrained(

0 commit comments

Comments
 (0)