Upload extensions_built_in/ultimate_slider_trainer/config/train.example.yaml with huggingface_hub
Browse files
extensions_built_in/ultimate_slider_trainer/config/train.example.yaml
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
job: extension
|
| 3 |
+
config:
|
| 4 |
+
name: example_name
|
| 5 |
+
process:
|
| 6 |
+
- type: 'image_reference_slider_trainer'
|
| 7 |
+
training_folder: "/mnt/Train/out/LoRA"
|
| 8 |
+
device: cuda:0
|
| 9 |
+
# for tensorboard logging
|
| 10 |
+
log_dir: "/home/jaret/Dev/.tensorboard"
|
| 11 |
+
network:
|
| 12 |
+
type: "lora"
|
| 13 |
+
linear: 8
|
| 14 |
+
linear_alpha: 8
|
| 15 |
+
train:
|
| 16 |
+
noise_scheduler: "ddpm" # or "ddpm", "lms", "euler_a"
|
| 17 |
+
steps: 5000
|
| 18 |
+
lr: 1e-4
|
| 19 |
+
train_unet: true
|
| 20 |
+
gradient_checkpointing: true
|
| 21 |
+
train_text_encoder: true
|
| 22 |
+
optimizer: "adamw"
|
| 23 |
+
optimizer_params:
|
| 24 |
+
weight_decay: 1e-2
|
| 25 |
+
lr_scheduler: "constant"
|
| 26 |
+
max_denoising_steps: 1000
|
| 27 |
+
batch_size: 1
|
| 28 |
+
dtype: bf16
|
| 29 |
+
xformers: true
|
| 30 |
+
skip_first_sample: true
|
| 31 |
+
noise_offset: 0.0
|
| 32 |
+
model:
|
| 33 |
+
name_or_path: "/path/to/model.safetensors"
|
| 34 |
+
is_v2: false # for v2 models
|
| 35 |
+
is_xl: false # for SDXL models
|
| 36 |
+
is_v_pred: false # for v-prediction models (most v2 models)
|
| 37 |
+
save:
|
| 38 |
+
dtype: float16 # precision to save
|
| 39 |
+
save_every: 1000 # save every this many steps
|
| 40 |
+
max_step_saves_to_keep: 2 # only affects step counts
|
| 41 |
+
sample:
|
| 42 |
+
sampler: "ddpm" # must match train.noise_scheduler
|
| 43 |
+
sample_every: 100 # sample every this many steps
|
| 44 |
+
width: 512
|
| 45 |
+
height: 512
|
| 46 |
+
prompts:
|
| 47 |
+
- "photo of a woman with red hair taking a selfie --m -3"
|
| 48 |
+
- "photo of a woman with red hair taking a selfie --m -1"
|
| 49 |
+
- "photo of a woman with red hair taking a selfie --m 1"
|
| 50 |
+
- "photo of a woman with red hair taking a selfie --m 3"
|
| 51 |
+
- "close up photo of a man smiling at the camera, in a tank top --m -3"
|
| 52 |
+
- "close up photo of a man smiling at the camera, in a tank top--m -1"
|
| 53 |
+
- "close up photo of a man smiling at the camera, in a tank top --m 1"
|
| 54 |
+
- "close up photo of a man smiling at the camera, in a tank top --m 3"
|
| 55 |
+
- "photo of a blonde woman smiling, barista --m -3"
|
| 56 |
+
- "photo of a blonde woman smiling, barista --m -1"
|
| 57 |
+
- "photo of a blonde woman smiling, barista --m 1"
|
| 58 |
+
- "photo of a blonde woman smiling, barista --m 3"
|
| 59 |
+
- "photo of a Christina Hendricks --m -1"
|
| 60 |
+
- "photo of a Christina Hendricks --m -1"
|
| 61 |
+
- "photo of a Christina Hendricks --m 1"
|
| 62 |
+
- "photo of a Christina Hendricks --m 3"
|
| 63 |
+
- "photo of a Christina Ricci --m -3"
|
| 64 |
+
- "photo of a Christina Ricci --m -1"
|
| 65 |
+
- "photo of a Christina Ricci --m 1"
|
| 66 |
+
- "photo of a Christina Ricci --m 3"
|
| 67 |
+
neg: "cartoon, fake, drawing, illustration, cgi, animated, anime"
|
| 68 |
+
seed: 42
|
| 69 |
+
walk_seed: false
|
| 70 |
+
guidance_scale: 7
|
| 71 |
+
sample_steps: 20
|
| 72 |
+
network_multiplier: 1.0
|
| 73 |
+
|
| 74 |
+
logging:
|
| 75 |
+
log_every: 10 # log every this many steps
|
| 76 |
+
use_wandb: false # not supported yet
|
| 77 |
+
verbose: false
|
| 78 |
+
|
| 79 |
+
slider:
|
| 80 |
+
datasets:
|
| 81 |
+
- pair_folder: "/path/to/folder/side/by/side/images"
|
| 82 |
+
network_weight: 2.0
|
| 83 |
+
target_class: "" # only used as default if caption txt are not present
|
| 84 |
+
size: 512
|
| 85 |
+
- pair_folder: "/path/to/folder/side/by/side/images"
|
| 86 |
+
network_weight: 4.0
|
| 87 |
+
target_class: "" # only used as default if caption txt are not present
|
| 88 |
+
size: 512
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
# you can put any information you want here, and it will be saved in the model
|
| 92 |
+
# the below is an example. I recommend doing trigger words at a minimum
|
| 93 |
+
# in the metadata. The software will include this plus some other information
|
| 94 |
+
meta:
|
| 95 |
+
name: "[name]" # [name] gets replaced with the name above
|
| 96 |
+
description: A short description of your model
|
| 97 |
+
trigger_words:
|
| 98 |
+
- put
|
| 99 |
+
- trigger
|
| 100 |
+
- words
|
| 101 |
+
- here
|
| 102 |
+
version: '0.1'
|
| 103 |
+
creator:
|
| 104 |
+
name: Your Name
|
| 105 |
+
email: your@email.com
|
| 106 |
+
website: https://yourwebsite.com
|
| 107 |
+
any: All meta data above is arbitrary, it can be whatever you want.
|