noob_v_pencil-XL / noob_v_pencil-XL-v0.0.3.md
bluepen5805's picture
Update noob_v_pencil-XL-v0.0.3.md
a089976 verified
|
raw
history blame
1.72 kB
# 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)
- [Concept Sliders](https://github.com/rohitgandikota/sliders)
# Checkpoints
- [NoobAI-XL (NAI-XL) V-Pred-0.6-Version](https://civitai.com/models/833294?modelVersionId=1070239)
- [NoobAI-XL (NAI-XL) Epsilon-pred 1.0-version](https://civitai.com/models/833294?modelVersionId=1022833)
- [illustrious_pencil-XL-v2.0.0](https://huggingface.co/bluepen5805/illustrious_pencil-XL)
- [Rillusm - Realistic Illustrious v1.0](https://civitai.com/models/959736?modelVersionId=1074511)
# LoRAs
- self-made ConceptSliders
# Recipe
1. Merge using `sd-mecha for ComfyUI`. ( below sd-mecha format recipe )
```
model "sdxl\illustrious_pencil-XL-v2.0.0.safetensors" "sdxl" "base"
model "sdxl\noobaiXLNAIXL_vPred06Version.safetensors" "sdxl" "base"
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
merge "train_difference" &0 &1 &2 alpha=1.0
model "sdxl\rillusmRealistic_v10.safetensors" "sdxl" "base"
merge "train_difference" &0 &4 &2 alpha=1.1
merge "train_difference" &5 &1 &2 alpha=1.25
merge "add_cosine_a" &3 &6 alpha=0.6
merge "add_cosine_a" &7 &1 alpha=0.0
```
2. Merge ConceptSlider LoRAs.
3. Add `v_pred` and `ztsnr` keys.
```python
BASE_MODEL_NAME = "noob_v_pencil-XL-v0.0.3-base.safetensors"
MODIFIED_MODEL_NAME = "noob_v_pencil-XL-v0.0.3.safetensors"
tensors = {}
with safe_open(BASE_MODEL_NAME, 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, MODIFIED_MODEL_NAME)
```