-
Notifications
You must be signed in to change notification settings - Fork 31
Mac desktop版ComfyUI导入AnyLinePreprocessor失败 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
把 8,9,10 行改为 import os
import sys
custom_nodes_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if custom_nodes_directory not in sys.path:
sys.path.append(custom_nodes_directory)
print("[Debug] Added to sys.path:", custom_nodes_directory)
else:
print("[Debug] Path already in sys.path")
# Requires comfyui_controlnet_aux funcsions and classes
from comfyui_controlnet_aux.utils import common_annotator_call
from comfyui_controlnet_aux.src.controlnet_aux.teed import TEDDetector
from comfyui_controlnet_aux.src.controlnet_aux.teed.ted import TED
from comfyui_controlnet_aux.src.controlnet_aux.lineart_standard import LineartStandardDetector as LineartStandardDetect 这个问题是因为作者没有添加 custom_nodes 的路径到 sys.path, 导致脚本找不到对应模块 |
Mac M2 Max
ComfyUI 0.4.6
提示
Cannot import /Users/ComfyUI/custom_nodes/ComfyUI-Anyline module for custom nodes: No module named 'custom_nodes.comfyui_controlnet_aux'
但是下面的import里显示有comfyui_controlnet_aux。而且
custom_nodes
下已经安装comfyui_controlnet_aux
,没有它的报错。AnyLinePreprocessor
就是安装不上,无论是Try fix
还是Switch ver
.The text was updated successfully, but these errors were encountered: