noob_v_pencil-XL / noob_v_pencil-XL-0.65s.md
bluepen5805's picture
Update noob_v_pencil-XL-0.65s.md
59d364e verified
|
raw
history blame
1.27 kB

Tools

Checkpoints

Recipe

  1. Merge using sd-mecha for ComfyUI. ( below sd-mecha format recipe )
model "sdxl\noobaiXLNAIXL_vPred065SVersion.safetensors" "sdxl" "base"
model "sdxl\illustrious_pencil-XL-v2.0.0.safetensors" "sdxl" "base"
model "sdxl\noobaiXLNAIXL_epsilonPred10Version.safetensors" "sdxl" "base"
merge "train_difference" &1 &0 &2 alpha=1.05
merge "add_cosine_b" &0 &3 alpha=1.0
  1. Add v_pred and ztsnr keys.
BASE_MODEL_NAME = "noob_v_pencil-XL-0.65s"

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")