Skip to content

Instantly share code, notes, and snippets.

@Jaid
Last active July 9, 2024 06:00
Show Gist options
  • Save Jaid/de392868362f607066bfbade3be86625 to your computer and use it in GitHub Desktop.
Save Jaid/de392868362f607066bfbade3be86625 to your computer and use it in GitHub Desktop.
bmaltais/kohya_ss preset commands

SDXL - LoRA AI_characters standard v1.1

accelerate launch --num_cpu_threads_per_process=2 "./sdxl_train_network.py" --enable_bucket --min_bucket_reso=256 --max_bucket_reso=2048 --pretrained_model_name_or_path="stabilityai/stable-diffusion-xl-base-1.0" --train_data_dir="D:/git/.fork/kohya-gradio/img" --resolution="1024,1024" --output_dir="D:/git/.fork/kohya-gradio/out" --logging_dir="D:/git/.fork/kohya-gradio/out/log" --network_alpha="32" --training_comment="3 repeats. More info: https://civitai.com/articles/1771" --save_model_as=safetensors --network_module=networks.lora --text_encoder_lr=3e-05 --unet_lr=3e-05 --network_dim=32 --output_name="last" --lr_scheduler_num_cycles="50" --no_half_vae --learning_rate="3e-05" --lr_scheduler="constant" --train_batch_size="3" --max_train_steps="67" --save_every_n_epochs="1" --mixed_precision="fp16" --save_precision="fp16" --caption_extension=".txt" --cache_latents --cache_latents_to_disk --optimizer_type="AdamW" --max_grad_norm="1" --max_train_epochs=50 --max_data_loader_n_workers="0" --caption_dropout_rate="0.05" --bucket_reso_steps=64 --min_snr_gamma=5 --gradient_checkpointing --xformers --noise_offset=0.0
bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment