Update noob_v_pencil-XL-v3.0.0.md
Browse files- noob_v_pencil-XL-v3.0.0.md +51 -0
noob_v_pencil-XL-v3.0.0.md
CHANGED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
- [noob_v_pencil-XL-v2.0.1](https://huggingface.co/bluepen5805/noob_v_pencil-XL)
|
8 |
+
- [illustrious_pencil-XL-v5.0.0](https://huggingface.co/bluepen5805/illustrious_pencil-XL)
|
9 |
+
- [NoobAI-XL (NAI-XL) V-Pred-1.0-Version](https://civitai.com/models/833294?modelVersionId=1190596)
|
10 |
+
- [NoobAI-XL (NAI-XL) Epsilon-pred 1.0-version](https://civitai.com/models/833294?modelVersionId=1022833)
|
11 |
+
- [Illustrious XL v1.1](https://huggingface.co/OnomaAIResearch/Illustrious-XL-v1.1)
|
12 |
+
- [Illustrious XL v0.1](https://huggingface.co/OnomaAIResearch/Illustrious-xl-early-release-v0)
|
13 |
+
- [Obsession (Illustrious-XL) v-pred_v1.1](https://civitai.com/models/820208?modelVersionId=1494740)
|
14 |
+
- [r3mix v1.0](https://civitai.com/models/1347947)
|
15 |
+
|
16 |
+
# Recipe
|
17 |
+
|
18 |
+
1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe )
|
19 |
+
```
|
20 |
+
model "obsessionIllustrious_vPredV11.safetensors" "sdxl" "base"
|
21 |
+
model "r3mixIllu01NAIVPred_v10.safetensors" "sdxl" "base"
|
22 |
+
model "noob_v_pencil-XL-v2.0.1.safetensors" "sdxl" "base"
|
23 |
+
model "illustrious_pencil-XL-v5.0.0.safetensors" "sdxl" "base"
|
24 |
+
model "noobaiXLNAIXL_vPred10Version.safetensors" "sdxl" "base"
|
25 |
+
model "noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
|
26 |
+
merge "train_difference" &3 &4 &5 alpha=1.1
|
27 |
+
merge "add_cosine_b" &2 &6 alpha=0.45
|
28 |
+
merge "subtract" &2 &5
|
29 |
+
merge "add_difference" &7 &8 alpha=0.075
|
30 |
+
merge "add_cosine_b" &1 &9 alpha=0.85
|
31 |
+
merge "add_cosine_b" &0 &10 alpha=0.9
|
32 |
+
merge "add_cosine_a" &11 &6 alpha=0.1
|
33 |
+
dict sdxl_txt_default=1.0 sdxl_unet_default=0.0 sdxl_txt2_default=1.0
|
34 |
+
merge "weighted_sum" &12 &2 alpha=&13
|
35 |
+
```
|
36 |
+
|
37 |
+
2. Add `v_pred` and `ztsnr` keys.
|
38 |
+
|
39 |
+
```python
|
40 |
+
BASE_MODEL_NAME = "noob_v_pencil-XL-v3.0.0"
|
41 |
+
|
42 |
+
tensors = {}
|
43 |
+
with safe_open(BASE_MODEL_NAME + "-base.safetensors", framework="pt", device="cpu") as f:
|
44 |
+
for key in f.keys():
|
45 |
+
tensors[key] = f.get_tensor(key)
|
46 |
+
|
47 |
+
tensors["v_pred"] = torch.tensor([0.0])
|
48 |
+
tensors["ztsnr"] = torch.tensor([0.0])
|
49 |
+
|
50 |
+
save_file(tensors, BASE_MODEL_NAME + ".safetensors")
|
51 |
+
```
|