|
|
export MODEL_NAME="/home/zhaoyu/.cache/huggingface/hub/models--stabilityai--stable-diffusion-3.5-large/snapshots/ceddf0a7fdf2064ea28e2213e3b84e4afa170a0f" |
|
|
export OUTPUT_DIR="trained-sd3_5_[p=05]_[exp]_[lora_blocks]_[use_weighting_scheme]_[lora_rank768]_[size1024]" |
|
|
export CUDA_VISIBLE_DEVICES=0,1,2 |
|
|
|
|
|
|
|
|
accelerate launch --num_processes=3 --main_process_port=29500 train_gors_lora_sd3.py \ |
|
|
--pretrained_model_name_or_path=$MODEL_NAME \ |
|
|
--output_dir=$OUTPUT_DIR \ |
|
|
--mixed_precision="bf16" \ |
|
|
--resolution=1024 \ |
|
|
--train_batch_size=2 \ |
|
|
--gradient_accumulation_steps=1 \ |
|
|
--learning_rate=1e-4 \ |
|
|
--report_to="wandb" \ |
|
|
--lr_scheduler="cosine" \ |
|
|
--rank=768 \ |
|
|
--lr_warmup_steps=2400 \ |
|
|
--num_train_epochs=2 \ |
|
|
--validation_prompts "A photo of sks dog in a bucket" "As the evening approaches, golden light pours over the fields, transforming the landscape into a peaceful, dreamlike scene. The sun, low in the sky, casts long, soft shadows that stretch across the green fields, while the light dances on the edges of trees and flowers. The air is warm, but not oppressive, and the soft glow of the fading sun creates a sense of tranquility, as if the world is winding down, ready for the night to come." "A dog is a chef in a mystical kitchen, cooking up magical dishes that cause time to freeze when they are served." "a face image with a flat nose, long hair, and a neutral emotion"\ |
|
|
--validation_steps=500 \ |
|
|
--seed="42" \ |
|
|
--gradient_checkpointing \ |
|
|
--train_text_encoder \ |
|
|
--use_8bit_adam \ |
|
|
--train_data_file="/DATA/DATA3/zhaoyu/T2I_model_SD35/dataset/AIGI_2025_train/train_imgname_prompt_mos1_mos2_human_reward.xlsx" \ |
|
|
--image_base_dir="/DATA/DATA3/wjr/AIGI2025" \ |
|
|
--lora_blocks "12,13,14,15,16,17,18,19,20,21,22,23,24"\ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|