Closed kunkun-zhu closed 2 days ago
File "/root/autodl-tmp/ComfyUI4080S/ComfyUI/nodes.py", line 1931, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import /root/autodl-tmp/ComfyUI4080S/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet module for custom nodes: cannot import name 'StrengthType' from 'comfy.controlnet' (/root/autodl-tmp/ComfyUI4080S/ComfyUI/comfy/controlnet.py) [Allor]: 0 nodes were overridden. [Allor]: 12 modules were enabled. [Allor]: 98 nodes were loaded. [custom_nodes.comfyui_controlnet_aux] | INFO -> Using ckpts path: /root/autodl-tmp/ComfyUI/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts [custom_nodes.comfyui_controlnet_aux] | INFO -> Using symlinks: False [custom_nodes.comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider'] DWPose: Onnxruntime with acceleration providers detected 2024-10-22 20:49:23.228192: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0. 2024-10-22 20:49:23.246189: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-10-22 20:49:23.265520: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-10-22 20:49:23.271475: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-10-22 20:49:23.286051: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2024-10-22 20:49:24.259196: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT [Crystools INFO] Crystools version: 1.19.0 [Crystools INFO] CPU: Intel(R) Xeon(R) Platinum 8352V CPU @ 2.10GHz - Arch: x86_64 - OS: Linux 5.15.0-78-generic [Crystools INFO] Pynvml (Nvidia) initialized. [Crystools INFO] GPU/s:
Just had a similar issue and fixed it by upgrading ComfyUI
Same problem for me...
File "S:\ComfyUI_Classic\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control.py", line 11, in <module> from comfy.controlnet import ControlBase, ControlNet, ControlLora, T2IAdapter, StrengthType ImportError: cannot import name 'StrengthType' from 'comfy.controlnet' (S:\ComfyUI_Classic\ComfyUI\comfy\controlnet.py)
Upgrading is not an option for me. I'm stuck with my current hardware setup. Can we get a fix for this?
Your only option is to downgrade your Advanced-ControlNet if you can't update ComfyUI - StrengthType has been a class within ComfyUI for months. What is the reason for not being able to update ComfyUI btw? There should have been no changes in hardware requirements between versions.