bluepen5805 commited on
Commit
5e6261f
·
verified ·
1 Parent(s): 28ff7ec

Create noob_v_pencil-XL-0.75s.md

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