Skip to content

Potentially redundant code in train_dreambooth_lora_sd3.py #8671

@hmdliu

Description

@hmdliu

Describe the bug

The sd3 pipeline has been initialized twice in the example code for train_dreambooth_lora_sd3.py.

This is the code from L1641-L1655. You may also check it via this link.

 pipeline = StableDiffusion3Pipeline.from_pretrained(
    args.pretrained_model_name_or_path,
    revision=args.revision,
    variant=args.variant,
    torch_dtype=weight_dtype,
)

# Final inference
# Load previous pipeline
pipeline = StableDiffusion3Pipeline.from_pretrained(
    args.pretrained_model_name_or_path,
    revision=args.revision,
    variant=args.variant,
    torch_dtype=weight_dtype,
)

Reproduction

n/a

Logs

No response

System Info

n/a

Who can help?

@sayakpaul

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions