bluepen5805
commited on
Commit
•
4018076
1
Parent(s):
3b1ac0a
Create noob_v_pencil-XL-0.9r.md
Browse files- noob_v_pencil-XL-0.9r.md +40 -0
noob_v_pencil-XL-0.9r.md
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.9R-Version](https://civitai.com/models/833294?modelVersionId=1165792)
|
9 |
+
- [NoobAI-XL (NAI-XL) Epsilon-pred 1.0-version](https://civitai.com/models/833294?modelVersionId=1022833)
|
10 |
+
- [illustrious_pencil-XL-v2.0.0](https://huggingface.co/bluepen5805/illustrious_pencil-XL)
|
11 |
+
|
12 |
+
# Recipe
|
13 |
+
|
14 |
+
1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe )
|
15 |
+
```
|
16 |
+
model "sdxl\illustrious_pencil-XL-v2.0.0.safetensors" "sdxl" "base"
|
17 |
+
model "sdxl\noobaiXLNAIXL_vPred09RVersion.safetensors" "sdxl" "base"
|
18 |
+
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
|
19 |
+
merge "train_difference" &0 &1 &2 alpha=1.0
|
20 |
+
merge "clamped_add_opposite" &3 &0 &2 alpha=0.25
|
21 |
+
merge "clamped_add_opposite" &3 &1 &2 alpha=1.0
|
22 |
+
merge "add_cosine_a" &1 &5 alpha=0.75
|
23 |
+
merge "slerp" &4 &6 alpha=0.35000000000000003
|
24 |
+
```
|
25 |
+
|
26 |
+
2. Add `v_pred` and `ztsnr` keys.
|
27 |
+
|
28 |
+
```python
|
29 |
+
BASE_MODEL_NAME = "noob_v_pencil-XL-0.9r"
|
30 |
+
|
31 |
+
tensors = {}
|
32 |
+
with safe_open(BASE_MODEL_NAME + "-base.safetensors", framework="pt", device="cpu") as f:
|
33 |
+
for key in f.keys():
|
34 |
+
tensors[key] = f.get_tensor(key)
|
35 |
+
|
36 |
+
tensors["v_pred"] = torch.tensor([0.0])
|
37 |
+
tensors["ztsnr"] = torch.tensor([0.0])
|
38 |
+
|
39 |
+
save_file(tensors, BASE_MODEL_NAME + ".safetensors")
|
40 |
+
```
|