File size: 3,858 Bytes
9a53d26
 
 
 
 
 
 
f733356
9a53d26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Tools
- [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
- [sd-mecha](https://github.com/ljleb/sd-mecha)
- [sd-mecha for Comfyui](https://github.com/ljleb/comfy-mecha)
- [Concept Sliders](https://github.com/rohitgandikota/sliders)

# Checkpoints
- [NoobAI-XL (NAI-XL) V-Pred-0.65S-Version](https://civitai.com/models/833294?modelVersionId=1093948)
- [NoobAI-XL (NAI-XL) Epsilon-pred 1.0-version](https://civitai.com/models/833294?modelVersionId=1022833)
- [illustrious_pencil-XL-v2.0.0](https://huggingface.co/bluepen5805/illustrious_pencil-XL)
- [Rillusm - Realistic Illustrious v1.0](https://civitai.com/models/959736?modelVersionId=1074511)
- [Rillusm - Realistic Illustrious v1.1](https://civitai.com/models/959736?modelVersionId=1101928)
- [PaSanctuary (SDXL, IllustriousXL) v3.0](https://civitai.com/models/835578?modelVersionId=1069100)
- [WAI-NSFW-illustrious-SDXL v7.0](https://civitai.com/models/827184?modelVersionId=1068947)
- [NTR MIX | illustrious-XL | Noob-XL v4.0](https://civitai.com/models/926443?modelVersionId=1054677)

# LoRAs
- self-made ConceptSliders

# Recipe

1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe )
```
model "sdxl\noob_v_pencil-XL-0.65s.safetensors" "sdxl" "base"
model "sdxl\illustrious_pencil-XL-v2.0.0.safetensors" "sdxl" "base"
model "sdxl\rillusmRealistic_v10.safetensors" "sdxl" "base"
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
merge "train_difference" &1 &2 &3 alpha=1.35
model "sdxl\noobaiXLNAIXL_vPred065SVersion.safetensors" "sdxl" "base"
merge "train_difference" &4 &5 &3 alpha=1.25
merge "add_cosine_a" &0 &6 alpha=0.6
model "sdxl\rillusmRealistic_v11.safetensors" "sdxl" "base"
merge "train_difference" &8 &2 &3 alpha=1.0
merge "train_difference" &9 &5 &3 alpha=1.05
merge "add_cosine_a" &0 &10 alpha=0.45
merge "add_cosine_a" &7 &11 alpha=0.35000000000000003
model "sdxl\pasanctuarySDXL_v30.safetensors" "sdxl" "base"
model "sdxl\Illustrious-XL-v0.1.safetensors" "sdxl" "base"
merge "train_difference" &1 &13 &14 alpha=1.25
merge "train_difference" &15 &5 &3 alpha=1.0
model "sdxl\waiNSFWIllustrious_v70.safetensors" "sdxl" "base"
merge "train_difference" &1 &17 &14 alpha=0.9500000000000001
merge "train_difference" &18 &5 &3 alpha=1.05
model "sdxl\ntrMIXIllustriousXL_v40.safetensors" "sdxl" "base"
model "sdxl\noobaiXLNAIXL_epsilonPred05Version.safetensors" "sdxl" "base"
merge "train_difference" &1 &20 &21 alpha=1.2
merge "train_difference" &22 &5 &3 alpha=1.085
merge "add_cosine_a" &19 &23 alpha=0.75
merge "add_cosine_a" &16 &24 alpha=0.85
merge "train_difference" &25 &5 &3 alpha=0.05
merge "add_cosine_a" &0 &26 alpha=0.125
merge "add_cosine_a" &12 &27 alpha=0.15
merge "add_cosine_a" &28 &0 alpha=0.0
model "concept_sliders_01.safetensors" "sdxl" "lora"
merge "add_difference" &29 &30 alpha=16.0
model "concept_sliders_02.safetensors" "sdxl" "lora"
merge "add_difference" &31 &32 alpha=12.0
model "concept_sliders_03.safetensors" "sdxl" "lora"
merge "add_difference" &33 &34 alpha=1.0
model "concept_sliders_04.safetensors" "sdxl" "lora"
merge "add_difference" &35 &36 alpha=1.0
merge "add_difference" &37 &32 alpha=4.0
model "concept_sliders_05.safetensors" "sdxl" "lora"
merge "add_difference" &38 &39 alpha=32.0
model "concept_sliders_06.safetensors" "sdxl" "lora"
merge "add_difference" &40 &41 alpha=6.0
merge "add_cosine_a" &42 &29 alpha=0.05
merge "train_difference" &43 &5 &3 alpha=0.45
merge "add_cosine_a" &44 &0 alpha=0.01
```

2. Add `v_pred` and `ztsnr` keys.

```python
BASE_MODEL_NAME = "noob_v_pencil-XL-v0.2.5"

tensors = {}
with safe_open(BASE_MODEL_NAME + "-base.safetensors", framework="pt", device="cpu") as f:
    for key in f.keys():
        tensors[key] = f.get_tensor(key)

tensors["v_pred"] = torch.tensor([0.0])
tensors["ztsnr"] = torch.tensor([0.0])

save_file(tensors, BASE_MODEL_NAME + ".safetensors")
```