xingewh/Qwen-Image-2.1-viggle-turbo-v0.2-5step-lora-r256_comfy
Qwen-Image-2.1-viggle-turbo-v0.2-5step-lora-r256_comfy
<Gallery />
Model description
language:
- en
- zh base_model: Qwen/Qwen-Image-2.1 tags:
- comfyui
- lora
- qwen-image
- text-to-image
- diffusers-to-comfyui library_name: peft ---
Qwen-Image-2.1-viggle-turbo-v0.2-5step-lora-r256-comfy
What is this / 这是什么
This is a ComfyUI-compatible format conversion of the original LoRA from Viggle/Qwen-Image-2.1-viggle-turbo.
The original LoRA was trained under the Diffusers/PEFT framework, with weight keys prefixed as `transformer.`. ComfyUI's standard LoRA loader expects keys prefixed as `diffusion_model.transformer.`, so loading the original directly will silently fail (it loads but has no effect).
This repository provides a converted file where all 454 weight keys have been re-prefixed from `transformer.` to `diffusion_model.transformer.`, making it directly loadable in ComfyUI via the `Load LoRA` node.
> The conversion script was written with the help of DeepSeek.
这是对 Viggle/Qwen-Image-2.1-viggle-turbo 原版 LoRA 的 ComfyUI 兼容格式转换版。
原版 LoRA 是在 Diffusers/PEFT 框架下训练的,权重键名以 `transformer.` 开头。ComfyUI 的标准 LoRA 加载器期望的键名格式是 `diffusion_model.transformer.`,直接加载原版会静默失效(加载了但完全不生效)。
本仓库提供的文件,已将全部 454 个权重的键名前缀从 `transformer.` 批量替换为 `diffusion_model.transformer.`,使其可以在 ComfyUI 中直接通过 `Load LoRA` 节点加载使用。
> 本转换脚本在 DeepSeek 的帮助下编写完成。
What was changed / 转换了什么
- Only the key prefix was modified / 仅修改键名前缀:`transformer.xxx` → `diffusion_model.transformer.xxx`
- No weight values were altered / 未修改任何权重数值:the LoRA's actual effect is identical to the original / LoRA 的实际效果与原版完全一致
- Conversion script / 转换脚本:see `convertlora.py` in this repository / 见仓库中的 `convertlora.py`
How to use (ComfyUI) / 如何使用(ComfyUI)
- Place `Qwen-Image-2.1-viggle-turbo-v0.2-5step-lora-r256comfy.safetensors` into your `ComfyUI/models/loras/` folder. 将 `Qwen-Image-2.1-viggle-turbo-v0.2-5step-lora-r256comfy.safetensors` 放入 `ComfyUI/models/loras/` 文件夹。
- Add a `Load LoRA` node in your workflow and load the file. 在工作流中添加 `Load LoRA` 节点,加载该文件。
- Connect the node to the Qwen-Image-2.1 main model. 将该节点连接到 Qwen-Image-2.1 主模型。
- This is a 5-step acceleration LoRA. Set sampling steps to 5–10, and try LoRA weight `0.8–1.0` first, then fine-tune as needed. 这是一个 5 步加速 LoRA,建议将采样步数设为 5~10 步,LoRA 权重可先尝试 `0.8~1.0`,再根据效果微调。
Suggested parameters / 参数建议
lora convert.zip 为转换工具。 lora convert.zip is the conversion toolkit. ---
Disclaimer / 免责声明
- This repository only performs format conversion on the original LoRA; no weights are modified, and the effect is identical to the original. 本仓库仅对原版 LoRA 做格式转换,不修改权重,效果与原版一致。
- The original model copyright belongs to Viggle. Please follow the original repository's license. 原版模型版权归 Viggle 所有,请遵循原仓库的许可证。
- The conversion script is for learning and exchange purposes only. 转换脚本仅供学习交流使用。
Credits / 致谢
- Original LoRA / 原版 LoRA:Viggle/Qwen-Image-2.1-viggle-turbo
- Base model / 基础模型:Qwen/Qwen-Image-2.1
- Conversion script assistance / 转换脚本编写协助:DeepSeek
Download model
Download them in the Files & versions tab.
