huggingface / huggingface/diffusers

Text encoder errors in both SD3 dreambooth training scripts

Open
#8,726 8 comments 0 reactions 0 assignees View on GitHub
bug stale
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.