Spaces:
Sleeping
Sleeping
File size: 826 Bytes
5372b88 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
export MODEL_NAME="runwayml/stable-diffusion-v1-5"
export TRAIN_DIR="/l/vision/v5/sragas/easel_ai/thumbs_up_no_cap_dataset/"
export OUTPUT_DIR="/l/vision/v5/sragas/easel_ai/models_no_cap/"
export HUB_MODEL_ID="person-thumbs-up-lora-no-cap"
accelerate launch --mixed_precision="fp16" train_text_to_image_lora.py \
--pretrained_model_name_or_path=$MODEL_NAME \
--train_data_dir=$TRAIN_DIR \
--resolution=512 --center_crop --random_flip \
--train_batch_size=2 \
--gradient_accumulation_steps=4 \
--num_train_epochs=300 \
--learning_rate=1e-6 \
--max_grad_norm=1 \
--lr_scheduler="cosine" --lr_warmup_steps=500 \
--output_dir=${OUTPUT_DIR} \
--checkpointing_steps=500 \
--report_to=wandb \
--validation_prompt="<tom_cruise> #thumbsup" \
--seed=15 \
--push_to_hub \
--hub_model_id=${HUB_MODEL_ID}
|