节点地址【记得给作者点个支持】:https://github.com/ussoewwin/ComfyUI-QwenImageLoraLoader
信息发起人:RH群smile。
使用前提:安装Nunchaku本体,并已经能够成功使用。https://github.com/nunchaku-tech/ComfyUI-nunchaku【本体地址】
如果可以按照说明书自行安装,则祝您AI愉快。
以下是简要操作方式。
找到.../ComfyUI/custom_nodes/ComfyUI-nunchaku 文件夹中的_int_.py文件。
将
【
try:
# Import from the independent ComfyUI-QwenImageLoraLoader
import sys
import os
qwen_lora_path = os.path.join(os.path.dirname(__file__), "..", "ComfyUI-QwenImageLoraLoader")
if qwen_lora_path not in sys.path:
sys.path.insert(0, qwen_lora_path)
# Import directly from the file path
import importlib.util
spec = importlib.util.spec_from_file_location("qwenimage", os.path.join(qwen_lora_path, "nodes", "lora", "qwenimage.py"))
qwenimage_module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(qwenimage_module)
NunchakuQwenImageLoraLoader = qwenimage_module.NunchakuQwenImageLoraLoader
NunchakuQwenImageLoraStack = qwenimage_module.NunchakuQwenImageLoraStack
NODE_CLASS_MAPPINGS["NunchakuQwenImageLoraLoader"] = NunchakuQwenImageLoraLoader
NODE_CLASS_MAPPINGS["NunchakuQwenImageLoraStack"] = NunchakuQwenImageLoraStack
logger.info("Successfully imported Qwen Image LoRA loaders from ComfyUI-QwenImageLoraLoader")
except ImportError:
logger.exception("Nodes `NunchakuQwenImageLoraLoader` and `NunchakuQwenImageLoraStack` import failed:")
】
复制粘贴到_int_.py的最后一行之后。
2025年10月25日到Nunchaku官方发布前的QwenLORA在ComfyUI中的使用方法概要
重启ComfyUI后,即可使用Qwen的LORA加载器了。
2025年10月25日到Nunchaku官方发布前的QwenLORA在ComfyUI中的使用方法概要
|