Skip to content

Text encoder errors in both SD3 dreambooth training scripts #8726

@neuron-party

Description

@neuron-party

Describe the bug

Multiple mismatched argument errors in train_dreambooth_sd3.py when training with train_text_encoder set to True.
Ordering/assignment errors in train_dreambooth_lora_sd3.py when training with train_text_encoder set to True.

Reproduction

set --train_text_encoder and all other necessary args appropriately

Logs

For train_dreambooth_sd3.py:
encode_prompt got unexpected argument text_input_ids

For train_dreambooth_lora_sd3.py
UnboundLocalError: local variable 'text_encoder_one' referenced before assignment

No response

System Info

diffusers from source (bleeding edge)

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that haven't received updates

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions