Bedovyy Arcain

详情

下载文件

模型描述

转载自 https://huggingface.co/Bedovyy/arcain

Lora 训练 (arcain_2411.safetensors)

在 Illustrious-xl v0.1 上训练的 Lora,但此 Lora 也可应用于其他基于 ILXL 的模型,例如 NoobAI-XL。

  • 工具:kohya-ss/sd-scripts

  • GPU:4x RTX3060

  • 数据集:pls2000/aiart_channel_nai3_geachu + 截至 24/11/14 的额外数据 —— 蓝色档案数据

  • 训练耗时:50.5 小时(实际时间)

lora_arcain.sh

NCCL_P2P_DISABLE=1 NCCL_IB_DISABLE=1 accelerate launch --num_cpu_threads_per_process 4 sdxl_train_network.py \
        --network_train_unet_only \
        --network_module="networks.lora" --network_dim 128 --network_alpha 128 \
        --pretrained_model_name_or_path="/ai/data/sd/models/Stable-diffusion/SDXL/Illustrious-XL-v0.1.safetensors" \
        --dataset_config="arcain.lora.toml" \
        --output_dir="results/lora" --output_name="arcain-`date +%y%m`" \
        --save_model_as="safetensors" \
        --train_batch_size 2 --gradient_accumulation_steps 64 \
        --learning_rate=1e-5 --optimizer_type="Lion8bit" \
        --lr_scheduler="constant_with_warmup" --lr_warmup_steps 100 --optimizer_args "weight_decay=0.01" "betas=0.9,0.95" --min_snr_gamma 5 \
        --sdpa \
        --no_half_vae \
        --cache_latents --cache_latents_to_disk \
        --gradient_checkpointing \
        --full_bf16 --mixed_precision="bf16" --save_precision="fp16" \
        --ddp_timeout=10000000 \
        --max_train_epochs 8 --save_every_n_epochs 1 \
        --log_with wandb --log_tracker_name kohya-ss --wandb_run_name "arcain_`date +%y%m%d-%H%M`" --logging_dir wandb \

arcain.lora.toml

[general]
shuffle_caption = true
caption_tag_dropout_rate = 0.2
keep_tokens_separator = "|||"
caption_extension = ".txt"

[[datasets]]
  enable_bucket = true
  min_bucket_reso = 512
  max_bucket_reso = 4096
  resolution = 1024
  [[datasets.subsets]]
  image_dir = "/mnt/wd8tb/train/to_train"
  num_repeats = 1

此模型生成的图像

未找到图像。