Closed whmc76 closed 3 months ago
无法加载controlnet_aux.processor
一样的情况,和controlnet aux插件有冲突,下面是错误代码:
Traceback (most recent call last):
File "L:\stable-diffusion\extensions\sd-webui-comfyui\ComfyUI\nodes.py", line 1906, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import L:\stable-diffusion\extensions\sd-webui-comfyui\ComfyUI\custom_nodes\ComfyUI-DiffSynth-Studio module for custom nodes: cannot import name 'CannyDetector' from 'controlnet_aux' (L:\stable-diffusion\extensions\sd-webui-comfyui\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux__init__.py)
同样问题,和controlnet_aux冲突了。已经把comfyUI内核、comfyUI_aux、manage、本插件都更到最新了,但还是会发生冲突导致(IMPORT FAILED): D:\AI\TestDev\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-DiffSynth-Studio;我的环境是pytorch version: 2.1.1+cu118
Traceback (most recent call last):
File "D:\AI\TestDev\ComfyUI-aki-v1.3\nodes.py", line 1906, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import D:\AI\TestDev\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-DiffSynth-Studio module for custom nodes: cannot import name 'CannyDetector' from 'controlnet_aux' (D:\AI\TestDev\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux__init__.py)
pip uninstall controlnet-aux (虽然想法挺好,但这个包完全没有在maintain,估计是卖课的人搞的,还是官方的0.0.7左右的版本,不要装) 进comfyui_controlnet_aux/src/controlnet_aux/init.py将你要的包手动引入一次,也可以直接复制粘贴
from .anime_face_segment import *
from .binary import *
from .canny import *
from .color import *
from .densepose import *
from .depth_anything import *
from .depth_anything_v2 import *
from .diffusion_edge import *
from .dsine import *
from .dwpose import *
from .hed import *
from .leres import *
from .lineart import *
from .lineart_anime import *
from .lineart_standard import *
from .manga_line import *
from .mediapipe_face import *
from .mesh_graphormer import *
from .metric3d import *
from .midas import *
from .mlsd import *
from .normalbae import *
from .oneformer import *
from .open_pose import *
from .pidi import *
from .recolor import *
from .sam import *
from .scribble import *
from .shuffle import *
from .teed import *
from .tile import *
from .uniformer import *
from .unimatch import *
from .zoe import *
然后去comfyui_controlnet_aux手动重新pip install .一次让全局都能看到这个包 DiffSynth就能正常引用并兼容了
p.s. 代码库里的modelscope相关接口也是烂掉的,手动下载即可,我是直接重新打包了modelscope.hub进去
认错人了,卖课的是另一位
https://github.com/Fannovel16/comfyui_controlnet_aux/issues/389