muddit-interface / train /train_text_decoder.sh
QingyuShi's picture
Upload folder using huggingface_hub
7c8069d verified
# bash it in root path
PYTHON_PATH='./' accelerate launch --multi_gpu --gpu_ids '2,3' --main_process_port 25001 --num_processes 2 train/train_text_decoder.py \
--output_dir "./outputs/football/" \
--train_batch_size 16 \
--gradient_accumulation_steps 2 \
--learning_rate 1e-5 \
--max_grad_norm 10 \
--pretrained_model_name_or_path "meissonflow/meissonic" \
--text_encoder_architecture 'open_clip' \
--pretrained_model_architecture 'Meissonic' \
--instance_dataset 'MyParquetDataset' \
--instance_data_dir '/data/sqy/0000/' \
--resolution 1024 \
--mixed_precision fp16 \
--lr_scheduler constant \
--use_8bit_adam \
--dataloader_num_workers 0 \
--validation_prompts \
'a boy' \
'A serene mountain landscape with towering snow-capped peaks, a crystal-clear blue lake reflecting the mountains, dense pine forests, and a vibrant orange sunrise illuminating the sky.' \
'A playful golden retriever puppy with a shiny coat, bounding through a meadow filled with colorful wildflowers, under a bright, clear blue sky.' \
'A bustling city street at night, illuminated by vibrant neon signs in various colors, with busy pedestrians, street vendors, and a light rain creating reflective puddles on the pavement.' \
'A majestic, medieval castle perched on a rugged cliffside, overlooking a vast, calm ocean at sunset, with the sky painted in hues of pink, orange, and purple.' \
'An elegant ballerina in a white tutu, dancing gracefully on a grand stage with ornate, gold-trimmed curtains, under a spotlight that casts a soft glow.' \
'A cozy, rustic log cabin nestled in a snow-covered forest, with smoke rising from the stone chimney, warm lights glowing from the windows, and a path of footprints leading to the front door.'\
'A Cute Cat' \
'A Snow Mountain'\
--max_train_steps 30000 \
--checkpointing_steps 1000 \
--validation_steps 100 \
--logging_steps 10