huggingface / huggingface/diffusers
[SD3] train_dreambooth_sd3.py --train_text_encoder fails
- Lingua principale
- Python
- Stelle
- 34.5k
- Fork
- 7.3k
- Merge medio
- 3g 3h
- PR unite (30g)
- 91
Descrizione
### Describe the bug
`encode_prompt()` is called with a parameter that is not defined in code (`text_input_ids_list`)
### Reproduction
`accelerate launch train_dreambooth_sd3.py [args] --train_text_encoder`
### Logs
```shell
Traceback (most recent call last):
File "/root/diffusers/examples/dreambooth/train_dreambooth_sd3.py", line 1760, in
main(args)
File "/root/diffusers/examples/dreambooth/train_dreambooth_sd3.py", line 1546, in main
prompt_embeds, pooled_prompt_embeds = encode_prompt(
TypeError: encode_prompt() got an unexpected keyword argument 'text_input_ids_list'
```
### System Info
- 🤗 Diffusers version: 0.29.0.dev0
- Platform: Linux-6.5.0-28-generic-x86_64-with-glibc2.35
- Running on a notebook?: No
- Running on Google Colab?: No
- Python version: 3.10.14
- PyTorch version (GPU?): 2.3.1 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Huggingface_hub version: 0.23.3
- Transformers version: 4.41.2
- Accelerate version: 0.31.0
- PEFT version: 0.11.1
- Bitsandbytes version: not installed
- Safetensors version: 0.4.3
- xFormers version: not installed
- Accelerator: NVIDIA A100-SXM4-80GB, 81920 MiB VRAM
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No
### Who can help?
@sayakpaul
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Open examples/dreambooth/train_dreambooth_sd3.py and inspect the encode_prompt definition alongside its call around line 1546. Run the reported accelerate launch command with --train_text_encoder, then verify the script no longer raises the unexpected keyword argument error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python, pytorch
- Ambito
- machine-learning
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100