bluepen5805
commited on
Commit
•
5632fd7
1
Parent(s):
39d5665
Create noob_v_pencil-XL-v0.3.0.md
Browse files- noob_v_pencil-XL-v0.3.0.md +59 -0
noob_v_pencil-XL-v0.3.0.md
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
- [Rillusm - Realistic Illustrious v1.0](https://civitai.com/models/959736?modelVersionId=1074511)
|
11 |
+
- [anima_pencil-XL-v5.0.0](https://huggingface.co/bluepen5805/anima_pencil-XL)
|
12 |
+
- [SD-XL 1.0-base](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0)
|
13 |
+
|
14 |
+
# LoRAs
|
15 |
+
- self-made ConceptSliders
|
16 |
+
|
17 |
+
# Recipe
|
18 |
+
|
19 |
+
1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe )
|
20 |
+
```
|
21 |
+
model "sdxl\noob_v_pencil-XL-v0.2.5.safetensors" "sdxl" "base"
|
22 |
+
model "sdxl\noobaiXLNAIXL_vPred065SVersion.safetensors" "sdxl" "base"
|
23 |
+
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
|
24 |
+
model "sdxl\anima_pencil-XL-v5.0.0.safetensors" "sdxl" "base"
|
25 |
+
model "sdxl\sd_xl_base_1.0.safetensors" "sdxl" "base"
|
26 |
+
merge "train_difference" &2 &3 &4 alpha=0.525
|
27 |
+
merge "train_difference" &5 &1 &2 alpha=0.975
|
28 |
+
merge "add_cosine_b" &1 &6 alpha=1.0
|
29 |
+
merge "train_difference" &0 &7 &1 alpha=1.0
|
30 |
+
dict sdxl_txt_default=0.0 sdxl_txt2_default=0.0 sdxl_unet_default=0.25
|
31 |
+
merge "weighted_sum" &0 &8 alpha=&9
|
32 |
+
merge "train_difference" &10 &0 &1 alpha=0.2
|
33 |
+
model "sdxl\rillusmRealistic_v10.safetensors" "sdxl" "base"
|
34 |
+
merge "train_difference" &11 &12 &2 alpha=1.5
|
35 |
+
merge "train_difference" &13 &1 &2 alpha=0.4
|
36 |
+
merge "add_cosine_a" &11 &14 alpha=0.65
|
37 |
+
model "concept_sliders_1.safetensors" "sdxl" "lora"
|
38 |
+
merge "add_difference" &15 &16 alpha=8.0
|
39 |
+
merge "add_difference" &17 &16 alpha=4.0
|
40 |
+
model "concept_sliders_2.safetensors" "sdxl" "lora"
|
41 |
+
merge "add_difference" &18 &19 alpha=16.0
|
42 |
+
merge "add_cosine_a" &20 &0 alpha=0.0
|
43 |
+
```
|
44 |
+
|
45 |
+
2. Add `v_pred` and `ztsnr` keys.
|
46 |
+
|
47 |
+
```python
|
48 |
+
BASE_MODEL_NAME = "noob_v_pencil-XL-v0.3.0"
|
49 |
+
|
50 |
+
tensors = {}
|
51 |
+
with safe_open(BASE_MODEL_NAME + "-base.safetensors", framework="pt", device="cpu") as f:
|
52 |
+
for key in f.keys():
|
53 |
+
tensors[key] = f.get_tensor(key)
|
54 |
+
|
55 |
+
tensors["v_pred"] = torch.tensor([0.0])
|
56 |
+
tensors["ztsnr"] = torch.tensor([0.0])
|
57 |
+
|
58 |
+
save_file(tensors, BASE_MODEL_NAME + ".safetensors")
|
59 |
+
```
|