File size: 1,658 Bytes
ef730e8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
#!/bin/sh
OUT_PATH="/home/ubuntu/out"
DATASET_PATH="/home/ubuntu/dataset"
PROMPT_PATH="/home/ubuntu/sotediffusion-prompt.txt"
WUER_PATH="/home/ubuntu/models/wuerstchen3"
CUDA_VISIBLE_DEVICES="1,2,3,4,5,6,7" accelerate launch --mixed_precision no --multi_gpu /home/ubuntu/sd-scripts/stable_cascade_train_stage_c.py \
--mixed_precision no \
--save_precision float \
--sdpa \
--gradient_checkpointing \
--train_text_encoder \
--resolution "1024,1024" \
--train_batch_size 12 \
--learning_rate 2e-6 \
--learning_rate_te1 1e-7 \
--lr_scheduler constant_with_warmup \
--lr_warmup_steps 100 \
--optimizer_type adamw8bit \
--token_warmup_min 1 \
--token_warmup_step 0 \
--caption_separator ", " \
--caption_dropout_rate 0.1 \
--caption_tag_dropout_rate 0 \
--caption_dropout_every_n_epochs 0 \
--dataset_repeats 1 \
--save_state \
--save_every_n_steps 1024 \
--sample_every_n_steps 1024 \
--max_token_length 225 \
--max_grad_norm 0 \
--max_train_epochs 10 \
--caption_extension ".txt" \
--max_data_loader_n_workers 32 \
--persistent_data_loader_workers \
--enable_bucket \
--min_bucket_reso 256 \
--max_bucket_reso 4096 \
--bucket_reso_steps 128 \
--bucket_no_upscale \
--log_with wandb \
--output_name sotediffusion-wr3_3b \
--train_data_dir $DATASET_PATH \
--in_json $DATASET_PATH.json \
--output_dir $OUT_PATH \
--logging_dir $OUT_PATH/logs \
--stage_c_checkpoint_path $WUER_PATH/sotediffusion-wr3_3b-base.safetensors \
--text_model_checkpoint_path $WUER_PATH/sotediffusion-wr3_text_model.safetensors \
--effnet_checkpoint_path $WUER_PATH/effnet_encoder.safetensors \
--previewer_checkpoint_path $WUER_PATH/previewer.safetensors \
--sample_prompts $PROMPT_PATH
|