bluepen5805
commited on
Commit
•
3b1ac0a
1
Parent(s):
b9785e4
Create noob_v_pencil-XL-v0.5.1.md
Browse files- noob_v_pencil-XL-v0.5.1.md +41 -0
noob_v_pencil-XL-v0.5.1.md
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
- [Concept Sliders](https://github.com/rohitgandikota/sliders)
|
6 |
+
|
7 |
+
# Checkpoints
|
8 |
+
- [NoobAI-XL (NAI-XL) V-Pred-0.75S-Version](https://civitai.com/models/833294?modelVersionId=1140829)
|
9 |
+
- [NoobAI-XL (NAI-XL) V-Pred-0.65S-Version](https://civitai.com/models/833294?modelVersionId=1093948)
|
10 |
+
- [NoobAI-XL (NAI-XL) Epsilon-pred 1.0-version](https://civitai.com/models/833294?modelVersionId=1022833)
|
11 |
+
|
12 |
+
# Recipe
|
13 |
+
|
14 |
+
1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe )
|
15 |
+
```
|
16 |
+
model "sdxl\noob_v_pencil-XL-v0.5.0.safetensors" "sdxl" "base"
|
17 |
+
model "sdxl\noob_v_pencil-XL-0.75s.safetensors" "sdxl" "base"
|
18 |
+
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
|
19 |
+
merge "clamped_add_opposite" &0 &1 &2 alpha=1.0
|
20 |
+
model "sdxl\noob_v_pencil-XL-v0.3.0.safetensors" "sdxl" "base"
|
21 |
+
model "sdxl\noobaiXLNAIXL_vPred065SVersion.safetensors" "sdxl" "base"
|
22 |
+
merge "clamped_add_opposite" &3 &4 &5 alpha=1.0
|
23 |
+
model "sdxl\noobaiXLNAIXL_vPred075SVersion.safetensors" "sdxl" "base"
|
24 |
+
merge "add_cosine_b" &6 &7 alpha=0.05
|
25 |
+
```
|
26 |
+
|
27 |
+
2. Add `v_pred` and `ztsnr` keys.
|
28 |
+
|
29 |
+
```python
|
30 |
+
BASE_MODEL_NAME = "noob_v_pencil-XL-v0.5.1"
|
31 |
+
|
32 |
+
tensors = {}
|
33 |
+
with safe_open(BASE_MODEL_NAME + "-base.safetensors", framework="pt", device="cpu") as f:
|
34 |
+
for key in f.keys():
|
35 |
+
tensors[key] = f.get_tensor(key)
|
36 |
+
|
37 |
+
tensors["v_pred"] = torch.tensor([0.0])
|
38 |
+
tensors["ztsnr"] = torch.tensor([0.0])
|
39 |
+
|
40 |
+
save_file(tensors, BASE_MODEL_NAME + ".safetensors")
|
41 |
+
```
|