export MODEL_DIR="runwayml/stable-diffusion-v1-5" | |
export OUTPUT_DIR="medical_sd" | |
python3 train_custom_model.py \ | |
--pretrained_model_name_or_path=$MODEL_DIR \ | |
--output_dir=$OUTPUT_DIR \ | |
--dataset_name="custom_data" \ | |
--resolution=512 \ | |
--learning_rate=1e-5 \ | |
--train_batch_size=2 \ | |
--revision="non-ema" \ | |
--from_pt \ | |
--max_train_steps=500000 \ | |
--checkpointing_steps=10000 \ | |
--dataloader_num_workers=16 |