bluepen5805
commited on
Commit
•
6548c04
1
Parent(s):
4018076
Create noob_v_pencil-XL-v0.6.0.md
Browse files- noob_v_pencil-XL-v0.6.0.md +49 -0
noob_v_pencil-XL-v0.6.0.md
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Tools
|
2 |
+
- [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
|
3 |
+
- [sd-mecha](https://github.com/ljleb/sd-mecha)
|
4 |
+
- [sd-mecha for Comfyui](https://github.com/ljleb/comfy-mecha)
|
5 |
+
|
6 |
+
# Checkpoints
|
7 |
+
- [NoobAI-XL (NAI-XL) V-Pred-0.9R-Version](https://civitai.com/models/833294?modelVersionId=1165792)
|
8 |
+
- [NoobAI-XL (NAI-XL) V-Pred-0.75S-Version](https://civitai.com/models/833294?modelVersionId=1140829)
|
9 |
+
- [NoobAI-XL (NAI-XL) Epsilon-pred 1.0-version](https://civitai.com/models/833294?modelVersionId=1022833)
|
10 |
+
- [Rillusm - Realistic Illustrious v1.0](https://civitai.com/models/959736?modelVersionId=1074511)
|
11 |
+
- [illustrious_pencil-XL-v2.0.0](https://huggingface.co/bluepen5805/illustrious_pencil-XL)
|
12 |
+
|
13 |
+
# Recipe
|
14 |
+
|
15 |
+
1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe )
|
16 |
+
```
|
17 |
+
model "sdxl\noob_v_pencil-XL-0.9r.safetensors" "sdxl" "base"
|
18 |
+
model "sdxl\illustrious_pencil-XL-v2.0.0.safetensors" "sdxl" "base"
|
19 |
+
model "sdxl\rillusmRealistic_v10.safetensors" "sdxl" "base"
|
20 |
+
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
|
21 |
+
merge "train_difference" &1 &2 &3 alpha=1.25
|
22 |
+
model "sdxl\noobaiXLNAIXL_vPred09RVersion.safetensors" "sdxl" "base"
|
23 |
+
merge "train_difference" &4 &5 &3 alpha=1.1500000000000001
|
24 |
+
merge "add_cosine_a" &0 &6 alpha=0.65
|
25 |
+
merge "add_cosine_a" &7 &5 alpha=0.0
|
26 |
+
model "sdxl\noob_v_pencil-XL-v0.5.1.safetensors" "sdxl" "base"
|
27 |
+
model "sdxl\noobaiXLNAIXL_vPred075SVersion.safetensors" "sdxl" "base"
|
28 |
+
merge "clamped_add_opposite" &8 &9 &10 alpha=1.0
|
29 |
+
merge "clamped_add_opposite" &11 &6 &1 alpha=1.0
|
30 |
+
merge "clamped_add_opposite" &12 &0 &3 alpha=0.35000000000000003
|
31 |
+
merge "add_cosine_b" &13 &9 alpha=0.15
|
32 |
+
|
33 |
+
```
|
34 |
+
|
35 |
+
2. Add `v_pred` and `ztsnr` keys.
|
36 |
+
|
37 |
+
```python
|
38 |
+
BASE_MODEL_NAME = "noob_v_pencil-XL-v0.6.0"
|
39 |
+
|
40 |
+
tensors = {}
|
41 |
+
with safe_open(BASE_MODEL_NAME + "-base.safetensors", framework="pt", device="cpu") as f:
|
42 |
+
for key in f.keys():
|
43 |
+
tensors[key] = f.get_tensor(key)
|
44 |
+
|
45 |
+
tensors["v_pred"] = torch.tensor([0.0])
|
46 |
+
tensors["ztsnr"] = torch.tensor([0.0])
|
47 |
+
|
48 |
+
save_file(tensors, BASE_MODEL_NAME + ".safetensors")
|
49 |
+
```
|