ZHO-ZHO-ZHO / ComfyUI-BiRefNet-ZHO

Better version for BiRefNet in ComfyUI | Both img & video
GNU General Public License v3.0
269 stars 22 forks source link

更新到最新的Comfy-UI后出现下面报错,无法import #19

Open Philmar1986 opened 1 month ago

Philmar1986 commented 1 month ago

Traceback (most recent call last): File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1993, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO__init__.py", line 1, in from . import birefnet File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\birefnet.py", line 7, in from models.baseline import BiRefNet File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\models\baseline.py", line 16, in from models.refinement.refiner import Refiner, RefinerPVTInChannels4, RefUNet File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\models\refinement\refiner.py", line 11, in from dataset import class_labels_TR_sorted File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\dataset.py", line 10, in from utils import path_to_image ImportError: cannot import name 'path_to_image' from 'utils' (F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\utils__init__.py)

Cannot import F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO module for custom nodes: cannot import name 'path_to_image' from 'utils' (F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\utils__init__.py)

q2we commented 1 month ago

Traceback (most recent call last):
File "D:\ComfyUI_cu121\ComfyUI\nodes.py", line 1993, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\ComfyUI_cu121\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO__init.py", line 1, in
from . import birefnet
File "D:\ComfyUI_cu121\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\birefnet.py", line 7, in
from models.baseline import BiRefNet
File "D:\ComfyUI_cu121\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\models\baseline.py", line 16, in
from models.refinement.refiner import Refiner, RefinerPVTInChannels4, RefUNet
File "D:\ComfyUI_cu121\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\models\refinement\refiner.py", line 11, in
from dataset import class_labels_TR_sorted
File "D:\ComfyUI_cu121\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\dataset.py", line 10, in
from utils import path_to_image
ImportError: cannot import name 'path_to_image' from 'utils' (D:\ComfyUI_cu121\ComfyUI\utils\
init__.py)

AndyLeAI commented 1 month ago

rollback previous version of comfyui maybe fix this issue !

Jojo-xqt commented 1 month ago

https://github.com/ZHO-ZHO-ZHO/ComfyUI-BiRefNet-ZHO/issues/16#issuecomment-2340643914