kijai / ComfyUI-KwaiKolorsWrapper

Diffusers wrapper to run Kwai-Kolors model
Apache License 2.0
518 stars 26 forks source link

Trying to make it work with SwamUI #23

Open Michoko92 opened 1 month ago

Michoko92 commented 1 month ago

Hi,

I'm trying to make this wrapper work with SwarmUI, since it uses ComfyUI as a backend. So I cloned this repo into the custom nodes directory, installed requirements with pip (all are met) and then I run SwarmUI, but I get this error in the console:

16:03:52.074 [Warning] [ComfyUI-0/STDERR] Traceback (most recent call last):
16:03:52.076 [Warning] [ComfyUI-0/STDERR]   File "D:\AI\StableSwarmUI\dlbackend\comfy\ComfyUI\nodes.py", line 1931, in load_custom_node
16:03:52.077 [Warning] [ComfyUI-0/STDERR]     module_spec.loader.exec_module(module)
16:03:52.078 [Warning] [ComfyUI-0/STDERR]   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
16:03:52.079 [Warning] [ComfyUI-0/STDERR]   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
16:03:52.079 [Warning] [ComfyUI-0/STDERR]   File "D:\AI\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper\__init__.py", line 1, in <module>
16:03:52.080 [Warning] [ComfyUI-0/STDERR]     from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
16:03:52.082 [Warning] [ComfyUI-0/STDERR]   File "D:\AI\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper\nodes.py", line 16, in <module>
16:03:52.085 [Warning] [ComfyUI-0/STDERR]     from .kolors.pipelines.pipeline_stable_diffusion_xl_chatglm_256 import StableDiffusionXLPipeline
16:03:52.086 [Warning] [ComfyUI-0/STDERR]   File "D:\AI\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper\kolors\pipelines\pipeline_stable_diffusion_xl_chatglm_256.py", line 21, in <module>
16:03:52.087 [Warning] [ComfyUI-0/STDERR]     from diffusers.loaders import FromSingleFileMixin, LoraLoaderMixin
16:03:52.088 [Warning] [ComfyUI-0/STDERR] ModuleNotFoundError: No module named 'diffusers'

Seems like diffusers module is not found, but I think the ComfyUI used by SwamUI is pretty standard? Would you have a suggestion please? I'd love to try the Kolors model. Thank you! 🙂🙏