-
Notifications
You must be signed in to change notification settings - Fork 4
/
run_phased.sh
24 lines (24 loc) · 897 Bytes
/
run_phased.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PREFIX=rectified_diffusion_phased_cfg3
MODEL_DIR="/mnt/wangfuyun/weights/stable-diffusion-v1-5"
OUTPUT_DIR="outputs_formal/$PREFIX"
PROJ_NAME="$PREFIX"
accelerate launch --main_process_port 29501 train_phased.py \
--pretrained_teacher_model=$MODEL_DIR \
--output_dir=$OUTPUT_DIR \
--tracker_project_nam=$PROJ_NAME \
--mixed_precision=fp16 \
--resolution=512 \
--learning_rate=5e-6 --loss_type="huber" --adam_weight_decay=1e-3 \
--max_train_steps=20000 \
--max_train_samples=4000000 \
--dataloader_num_workers=16 \
--validation_steps=1000 \
--checkpointing_steps=5000 --checkpoints_total_limit=20 \
--train_batch_size=20 \
--enable_xformers_memory_efficient_attention \
--gradient_accumulation_steps=1 \
--use_8bit_adam \
--resume_from_checkpoint=latest \
--report_to=wandb \
--seed=453645634 \
--gradient_checkpointing