bluepen5805
commited on
Create noob_v_pencil-XL-v0.1.0.md
Browse files- noob_v_pencil-XL-v0.1.0.md +48 -0
noob_v_pencil-XL-v0.1.0.md
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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) EpsilonV-Pred-0.65S-Version](https://civitai.com/models/833294?modelVersionId=1093948)
|
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 |
+
- [Rillusm - Realistic Illustrious v1.0](https://civitai.com/models/959736?modelVersionId=1074511)
|
12 |
+
|
13 |
+
# LoRAs
|
14 |
+
- self-made ConceptSliders
|
15 |
+
|
16 |
+
# Recipe
|
17 |
+
|
18 |
+
1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe )
|
19 |
+
```
|
20 |
+
model "sdxl\illustrious_pencil-XL-v2.0.0.safetensors" "sdxl" "base"
|
21 |
+
model "sdxl\noobaiXLNAIXL_vPred06Version.safetensors" "sdxl" "base"
|
22 |
+
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
|
23 |
+
merge "train_difference" &0 &1 &2 alpha=1.0
|
24 |
+
model "sdxl\rillusmRealistic_v10.safetensors" "sdxl" "base"
|
25 |
+
merge "train_difference" &0 &4 &2 alpha=1.2
|
26 |
+
merge "train_difference" &5 &1 &2 alpha=1.25
|
27 |
+
merge "add_cosine_a" &3 &6 alpha=0.6
|
28 |
+
merge "add_cosine_a" &7 &1 alpha=0.0
|
29 |
+
```
|
30 |
+
|
31 |
+
2. Merge ConceptSlider LoRAs.
|
32 |
+
|
33 |
+
3. Add `v_pred` and `ztsnr` keys.
|
34 |
+
|
35 |
+
```python
|
36 |
+
BASE_MODEL_NAME = "noob_v_pencil-XL-v0.1.0-base.safetensors"
|
37 |
+
MODIFIED_MODEL_NAME = "noob_v_pencil-XL-v0.1.0.safetensors"
|
38 |
+
|
39 |
+
tensors = {}
|
40 |
+
with safe_open(BASE_MODEL_NAME, framework="pt", device="cpu") as f:
|
41 |
+
for key in f.keys():
|
42 |
+
tensors[key] = f.get_tensor(key)
|
43 |
+
|
44 |
+
tensors["v_pred"] = torch.tensor([0.0])
|
45 |
+
tensors["ztsnr"] = torch.tensor([0.0])
|
46 |
+
|
47 |
+
save_file(tensors, MODIFIED_MODEL_NAME)
|
48 |
+
```
|