ixelszy's picture
Upload folder using huggingface_hub
56c2698
raw
history blame
1.56 kB
[sdxl_arguments]
cache_text_encoder_outputs = true
no_half_vae = true
min_timestep = 0
max_timestep = 1000
shuffle_caption = false
[model_arguments]
pretrained_model_name_or_path = "/content/pretrained_model/sd_xl_base_0.9.safetensors"
vae = "/content/vae/sdxl_vae.safetensors"
[dataset_arguments]
debug_dataset = false
in_json = "/content/fine_tune/meta_lat.json"
train_data_dir = "/content/fine_tune/train_data"
dataset_repeats = 1
keep_tokens = 0
resolution = "1024,1024"
caption_dropout_rate = 0
caption_tag_dropout_rate = 0
caption_dropout_every_n_epochs = 0
color_aug = false
token_warmup_min = 1
token_warmup_step = 0
[training_arguments]
output_dir = "/content/drive/MyDrive/kohya-trainer/output"
output_name = "sdxl_finetune"
save_precision = "fp16"
save_every_n_steps = 1000
train_batch_size = 4
max_token_length = 225
mem_eff_attn = false
xformers = true
max_train_steps = 2500
max_data_loader_n_workers = 8
persistent_data_loader_workers = true
gradient_checkpointing = true
gradient_accumulation_steps = 1
mixed_precision = "bf16"
[logging_arguments]
log_with = "tensorboard"
logging_dir = "/content/fine_tune/logs"
log_prefix = "sdxl_finetune"
[sample_prompt_arguments]
sample_every_n_steps = 100
sample_sampler = "euler_a"
[saving_arguments]
save_model_as = "safetensors"
[optimizer_arguments]
optimizer_type = "AdaFactor"
learning_rate = 4e-7
max_grad_norm = 1.0
optimizer_args = [ "scale_parameter=False", "relative_step=False", "warmup_init=False",]
lr_scheduler = "constant_with_warmup"
lr_warmup_steps = 100
[advanced_training_config]