Extensions/ComfyUI-ZImage-Bake-Extract
ComfyUI Extension

ComfyUI-ZImage-Bake-Extract

A ComfyUI custom node for baking LoRAs into base models and extracting LoRAs from merged/finetuned models. This node provides advanced functionality for managing LoRA…

By GraftingRayman·Created 6 months ago·Updated about a month ago· 3
GraftingRayman/ComfyUI-ZImage-Bake-Extract
Nodes2
On cloudLocal install
CategoryZImage
Stars3
Updatedabout a month ago
Readme

Welcome to my git

If you would like to support me in any way, anything helps

ko-fi

Updates

09/02/2023 - Node to merge Z-Image LoRA's added

08/02/2026 - Fixed models not found when run from within its own directory

ZImage LoRA Manager Advanced

A ComfyUI custom node for baking LoRAs into base models and extracting LoRAs from merged/finetuned models. This node provides advanced functionality for managing LoRA weights with support for format conversion between sd-scripts and ComfyUI formats.

Features

Bake LoRA into Base Model: Merge LoRA weights into a base model to create a single, standalone model

Extract LoRA from Merged Model: Reverse the baking process to extract LoRA weights from a finetuned/merged model

Format Conversion: Automatic conversion between sd-scripts and ComfyUI LoRA formats

Alpha/Strength Control: Adjust the strength of LoRA application during baking

Rank Control: Specify rank during LoRA extraction

Duplicate Protection: Automatic filename management to prevent overwriting

<img width="1024" height="816" alt="image" src="https://github.com/user-attachments/assets/4f0727b9-2932-4c33-9917-a3852ea6eed6" />

PROMPT:

A close-up portrait of a young woman with a neutral expression, looking directly at the camera with a slight smile. she has long, wavy, dark brown hair and large, expressive brown eyes. her hair is styled in loose waves and falls down her back, framing her face. she is wearing a red sweater and gold earrings, which add a touch of elegance to her overall look. the background is blurred, focusing attention on her face and upper body, with a soft, warm color palette that complements her natural beauty. the lighting is soft and natural, highlighting her features and creating a serene atmosphere. the image has a high-quality, professional look with a focus on natural beauty and elegance.

<img width="2691" height="784" alt="image" src="https://github.com/user-attachments/assets/1637a050-9830-4d36-b644-ec580f92a872" />

Installation

Place the zimagebakeloraadvanced.py and init.py files in your ComfyUI custom nodes directory:

ComfyUI/custom_nodes/zimage_lora_manager/

├── init.py

└── zimagebakeloraadvanced.py

Restart ComfyUI or refresh your browser

Output

All output is to the ComfyUI output folder