|
# Tools |
|
- [ComfyUI](https://github.com/comfyanonymous/ComfyUI) |
|
- [sd-mecha](https://github.com/ljleb/sd-mecha) |
|
- [sd-mecha for Comfyui](https://github.com/ljleb/comfy-mecha) |
|
|
|
# Checkpoints |
|
- [noob_v_pencil-XL-v2.0.0](https://huggingface.co/bluepen5805/noob_v_pencil-XL) |
|
- [noob_v_pencil-XL-v1.2.0](https://huggingface.co/bluepen5805/noob_v_pencil-XL) |
|
- [NoobAI-XL (NAI-XL) V-Pred-1.0-Version](https://civitai.com/models/833294?modelVersionId=1190596) |
|
- [NoobAI-XL (NAI-XL) Epsilon-pred 1.0-version](https://civitai.com/models/833294?modelVersionId=1022833) |
|
- [Illustrious XL v1.1](https://huggingface.co/OnomaAIResearch/Illustrious-XL-v1.1) |
|
- [Illustrious XL v0.1](https://huggingface.co/OnomaAIResearch/Illustrious-xl-early-release-v0) |
|
|
|
# Recipe |
|
|
|
1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe ) |
|
``` |
|
model "noob_v_pencil-XL-v2.0.0.safetensors" "sdxl" "base" |
|
model "noob_v_pencil-XL-v1.2.0.safetensors" "sdxl" "base" |
|
model "noobaiXLNAIXL_vPred10Version.safetensors" "sdxl" "base" |
|
merge "subtract" &1 &2 |
|
merge "add_difference" &0 &3 alpha=1.5 |
|
model "OnomaAI\Illustrious-XL-v1.1.safetensors" "sdxl" "base" |
|
model "noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base" |
|
model "Illustrious-XL-v0.1.safetensors" "sdxl" "base" |
|
merge "train_difference" &5 &6 &7 alpha=0.5 |
|
merge "train_difference" &8 &2 &6 alpha=1.5 |
|
merge "subtract" &9 &2 |
|
merge "add_difference" &4 &10 alpha=0.2 |
|
merge "add_cosine_a" &11 &0 alpha=0.25 |
|
dict sdxl_unet_default=1.0 sdxl_txt2_default=0.0 sdxl_txt_default=0.0 |
|
merge "weighted_sum" &0 &12 alpha=&13 |
|
``` |
|
|
|
2. Add `v_pred` and `ztsnr` keys. |
|
|
|
```python |
|
BASE_MODEL_NAME = "noob_v_pencil-XL-v2.0.1" |
|
|
|
tensors = {} |
|
with safe_open(BASE_MODEL_NAME + "-base.safetensors", framework="pt", device="cpu") as f: |
|
for key in f.keys(): |
|
tensors[key] = f.get_tensor(key) |
|
|
|
tensors["v_pred"] = torch.tensor([0.0]) |
|
tensors["ztsnr"] = torch.tensor([0.0]) |
|
|
|
save_file(tensors, BASE_MODEL_NAME + ".safetensors") |
|
``` |