Skip to content

Commit

Permalink
Create train.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
avdravid authored Sep 13, 2024
1 parent 81335b0 commit bccbb97
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions train.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
accelerate launch --gpu_ids 0 \
train_dreambooth.py \
--pretrained_model_name_or_path="stablediffusionapi/realistic-vision-v51" \
--instance_data_dir="celeba_generated0/0" \
--output_dir="output0" \
--num_dataloader_workers=1 \
--instance_prompt="sks person" \
--class_prompt="person" \
--with_prior_preservation --prior_loss_weight=1.0 \
--class_data_dir="regularization" \
--resolution=512 \
--train_batch_size=1 \
--lr_scheduler="constant" \
--lr_warmup_steps=0 \
--num_class_images=200 \
--use_lora \
--lora_r 1 \
--lora_alpha 27 \
--learning_rate=1e-4 \
--gradient_accumulation_steps=1 \
--max_train_steps=800 \
--seed 0

0 comments on commit bccbb97

Please sign in to comment.