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
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.
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
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.
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
All output is to the ComfyUI output folder