Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
54f2da5
misc: arc2face attempt 1
isidentical Mar 28, 2024
a89e23d
fix param concat
isidentical Mar 28, 2024
2ad3e67
fixate prompt
isidentical Mar 28, 2024
646c1e4
face embedding to numpy
isidentical Mar 28, 2024
f279478
move the tensor to host cpu
isidentical Mar 28, 2024
6e03b0e
more
isidentical Mar 28, 2024
d6d5a51
normalize the numbers
isidentical Mar 28, 2024
ed375a8
move the face embeddings back to gpu
isidentical Mar 28, 2024
5a93f4b
move the inpuit ids to to cuda
isidentical Mar 28, 2024
c660ab1
consolidate parameters
isidentical Mar 28, 2024
c3c4a20
add validation steps
isidentical Mar 28, 2024
2c2b5d5
change the implementation
isidentical Mar 28, 2024
3eb8f42
inference attempt
isidentical Mar 28, 2024
1db0097
transformers stuff
isidentical Mar 28, 2024
2891672
go back to buffalo
isidentical Mar 28, 2024
a128bbd
bfloat
isidentical Mar 28, 2024
c1132f3
stuff
isidentical Mar 28, 2024
17716ba
shapes
isidentical Mar 28, 2024
1d8688c
x
isidentical Mar 28, 2024
1f5ccff
x
isidentical Mar 28, 2024
ff16519
lol
isidentical Mar 28, 2024
348305f
use taylor's picture if no face is found
isidentical Mar 28, 2024
8c33fe1
try something
isidentical Mar 28, 2024
5368f8e
lol
isidentical Mar 28, 2024
c0fa2fa
lol
isidentical Mar 28, 2024
aa337e7
lol
isidentical Mar 28, 2024
fb7a9aa
ml magic
isidentical Mar 28, 2024
121b025
x
isidentical Mar 28, 2024
f4172c1
lol
isidentical Mar 29, 2024
a8a102d
stuff
isidentical Mar 29, 2024
665549c
train from pre-trainer encoder
isidentical Mar 29, 2024
61b2fe4
add checkpointing too
isidentical Mar 29, 2024
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
19 changes: 19 additions & 0 deletions examples/text_to_image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,25 @@ 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=64 \
--gradient_checkpointing \
--max_train_steps=60000 \
--learning_rate=1e-05 \
--max_grad_norm=1 \
--lr_scheduler="constant" --lr_warmup_steps=0 \
--output_dir="arc2face-attempt-1" \
--validation_steps=100 \
--validation_prompt="taylor.jpg" \
--report_to="wandb" \
--resume_from_checkpoint="latest" \
--checkpoints_total_limit=5 \
--checkpointing_steps=1000


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