Advertisement
Guest User

Layer9&25 - Ai Tool Kit - Realistic Character Lora

a guest
Jul 10th, 2025
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.70 KB | Source Code | 0 0
  1. ---
  2. job: "extension"
  3. config:
  4.   name: "**CHANGE TO DESIRED CONFIG NAME**"
  5.   process:
  6.     - type: "ui_trainer"
  7.       training_folder: "/app/ai-toolkit/output"
  8.       sqlite_db_path: "./aitk_db.db"
  9.       device: "cuda"
  10.       trigger_word: "**CHANGE TO TRIGGER DESIRED**"
  11.       performance_log_every: 10
  12.       network:
  13.         type: "lora"
  14.         linear: 128
  15.         linear_alpha: 128
  16.         conv: 16
  17.         conv_alpha: 16
  18.         lokr_full_rank: true
  19.         lokr_factor: -1
  20.         network_kwargs:
  21.           only_if_contains:
  22.            - "transformer.single_transformer_blocks.9"
  23.             - "transformer.single_transformer_blocks.25"
  24.       save:
  25.         dtype: "bf16"
  26.         save_every: 250
  27.         max_step_saves_to_keep: 4
  28.         save_format: "diffusers"
  29.         push_to_hub: false
  30.       datasets:
  31.         - folder_path: "/app/ai-toolkit/datasets/**CHANGE DATA SET NAME**"
  32.           control_path: null
  33.           mask_path: null
  34.           mask_min_value: 0.1
  35.           default_caption: "a photo of a man"
  36.           caption_ext: "txt"
  37.           caption_dropout_rate: 0.05
  38.           cache_latents_to_disk: false
  39.           is_reg: false
  40.           network_weight: 1
  41.           resolution:
  42.            - 512
  43.             - 768
  44.             - 1024
  45.           controls: []
  46.       train:
  47.         batch_size: 5
  48.         bypass_guidance_embedding: false
  49.         steps: 2000
  50.         gradient_accumulation: 1
  51.         train_unet: true
  52.         train_text_encoder: false
  53.         gradient_checkpointing: true
  54.         noise_scheduler: "flowmatch"
  55.         optimizer: "adamw8bit"
  56.         timestep_type: "sigmoid"
  57.         content_or_style: "balanced"
  58.         optimizer_params:
  59.           weight_decay: 0.0001
  60.         unload_text_encoder: false
  61.         lr: 0.0001
  62.         ema_config:
  63.           use_ema: false
  64.           ema_decay: 0.99
  65.         dtype: "bf16"
  66.         diff_output_preservation: false
  67.         diff_output_preservation_multiplier: 1
  68.         diff_output_preservation_class: "person"
  69.       model:
  70.         name_or_path: "black-forest-labs/FLUX.1-dev"
  71.         quantize: true
  72.         quantize_te: true
  73.         arch: "flux"
  74.         low_vram: false
  75.         model_kwargs: {}
  76.       sample:
  77.         sampler: "flowmatch"
  78.         sample_every: 500
  79.         width: 1024
  80.         height: 1024
  81.         prompts:
  82.          - "photo of [trigger_word], white background, medium shot, modeling clothing, studio lighting, white backdrop"
  83.           - "[trigger_word] man holding a sign that says, 'this is a sign'"
  84.         neg: ""
  85.         seed: 489234612
  86.         walk_seed: true
  87.         guidance_scale: 4
  88.         sample_steps: 25
  89.         num_frames: 1
  90.         fps: 1
  91. meta:
  92.   name: "[name]"
  93.   version: "1.0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement