bluepen5805
commited on
Commit
•
ce994e4
1
Parent(s):
c2c1196
Create noob_v_pencil-XL-1.0.md
Browse files- noob_v_pencil-XL-1.0.md +43 -0
noob_v_pencil-XL-1.0.md
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-1.0-Version](https://civitai.com/models/833294?modelVersionId=1190596)
|
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_vPred10Version.safetensors" "sdxl" "base"
|
18 |
+
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
|
19 |
+
merge "train_difference" &0 &1 &2 alpha=1.05
|
20 |
+
merge "clamped_add_opposite" &3 &0 &2 alpha=0.45
|
21 |
+
merge "add_cosine_a" &4 &1 alpha=1.0
|
22 |
+
merge "slerp" &3 &5 alpha=0.65
|
23 |
+
merge "clamped_add_opposite" &6 &1 &2 alpha=1.0
|
24 |
+
merge "add_cosine_a" &3 &7 alpha=1.0
|
25 |
+
dict sdxl_txt_default=0.0 sdxl_txt2_default=0.0 sdxl_unet_default=1.0
|
26 |
+
merge "weighted_sum" &3 &8 alpha=&9
|
27 |
+
```
|
28 |
+
|
29 |
+
2. Add `v_pred` and `ztsnr` keys.
|
30 |
+
|
31 |
+
```python
|
32 |
+
BASE_MODEL_NAME = "noob_v_pencil-XL-1.0"
|
33 |
+
|
34 |
+
tensors = {}
|
35 |
+
with safe_open(BASE_MODEL_NAME + "-base.safetensors", framework="pt", device="cpu") as f:
|
36 |
+
for key in f.keys():
|
37 |
+
tensors[key] = f.get_tensor(key)
|
38 |
+
|
39 |
+
tensors["v_pred"] = torch.tensor([0.0])
|
40 |
+
tensors["ztsnr"] = torch.tensor([0.0])
|
41 |
+
|
42 |
+
save_file(tensors, BASE_MODEL_NAME + ".safetensors")
|
43 |
+
```
|