lrzjason / T2ITrainer

Practice Code for text to image trainer
GNU Affero General Public License v3.0
60 stars 3 forks source link

[Request] Merging Kolors LoRA to Kolors checkpoint #10

Closed lekima closed 1 month ago

lekima commented 1 month ago

Hi, is it possible to support merging a Kolors LoRA to Kolors checkpoint?

lrzjason commented 1 month ago

You could use this plugin to load https://github.com/MinusZoneAI/ComfyUI-Kolors-MZ/tree/main kolors model and use lora loader to load lora. After that, you could use merge sdxl node to merge the lora and models. Finally, you could use this plugin https://github.com/lrzjason/Comfyui-Kolors-Utils to save as kolors unet or kolors checkpoint.

lekima commented 1 month ago

@lrzjason thank you, I'm not sure if I do the 2nd step (use merge sdxl node to merge the lora and models) right, could you please help confirm whether the workflow below is correct?

image

lrzjason commented 1 month ago

Yes, it is. You could also use saveKolors node to save as sd format checkpoint.

lekima commented 1 month ago

@lrzjason nice, I'll switch to the saveKolors node! Btw do you know if I can run this merge workflow with 16GB VRAM?

lrzjason commented 1 month ago

You might try. I am not sure

lekima commented 1 month ago

Will try, thanks a lot for your help!