提示ComfyUI/comfy/utils.py模块无法导入 path_to_image,查了文件确实也没有,comfyui已更新到最新
Traceback (most recent call last):
File "/mnt/workspace/ComfyUI/nodes.py", line 1890, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/init.py", line 1, in
from . import birefnet
File "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/birefnet.py", line 7, in
from models.baseline import BiRefNet
File "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/models/baseline.py", line 16, in
from models.refinement.refiner import Refiner, RefinerPVTInChannels4, RefUNet
File "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/models/refinement/refiner.py", line 11, in
from dataset import class_labels_TR_sorted
File "/mnt/workspace/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' (/mnt/workspace/ComfyUI/comfy/utils.py)
提示ComfyUI/comfy/utils.py模块无法导入 path_to_image,查了文件确实也没有,comfyui已更新到最新 Traceback (most recent call last): File "/mnt/workspace/ComfyUI/nodes.py", line 1890, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/init.py", line 1, in
from . import birefnet
File "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/birefnet.py", line 7, in
from models.baseline import BiRefNet
File "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/models/baseline.py", line 16, in
from models.refinement.refiner import Refiner, RefinerPVTInChannels4, RefUNet
File "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/models/refinement/refiner.py", line 11, in
from dataset import class_labels_TR_sorted
File "/mnt/workspace/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' (/mnt/workspace/ComfyUI/comfy/utils.py)