Spaces:
Sleeping
Sleeping
File size: 811 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="stabilityai/stable-diffusion-2-1"
export TRAIN_DIR="/l/vision/v5/sragas/easel_ai/thumbs_up_dataset/"
export OUTPUT_DIR="/l/vision/v5/sragas/easel_ai/models_2/"
export HUB_MODEL_ID="person-thumbs-up-lora-2"
accelerate launch --mixed_precision="fp16" train_text_to_image_lora.py \
--pretrained_model_name_or_path=$MODEL_NAME \
--train_data_dir=$TRAIN_DIR \
--resolution=768 --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}
|