Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions examples/text_to_image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@ accelerate launch --mixed_precision="fp16" train_text_to_image.py \
<!-- accelerate_snippet_end -->


accelerate launch --mixed_precision="bf16" train_text_to_image.py \
--pretrained_model_name_or_path=SG161222/Realistic_Vision_V6.0_B1_noVAE \
--dataset_name=nielsr/CelebA-faces \
--resolution=512 --center_crop --random_flip \
--train_batch_size=1 \
--gradient_checkpointing \
--max_train_steps=15000 \
--learning_rate=1e-05 \
--max_grad_norm=1 \
--lr_scheduler="constant" --lr_warmup_steps=0 \
--output_dir="arc2face-attempt-1" \
--validation_steps=50 \
--validation_prompt="taylor.jpg" \
--report_to="wandb"


To run on your own training files prepare the dataset according to the format required by `datasets`, you can find the instructions for how to do that in this [document](https://huggingface.co/docs/datasets/v2.4.0/en/image_load#imagefolder-with-metadata).
If you wish to use custom loading logic, you should modify the script, we have left pointers for that in the training script.

Expand Down
Loading