Skip to content
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

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

Open
Philmar1986 opened this issue Sep 10, 2024 · 3 comments
Open

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

Philmar1986 opened this issue Sep 10, 2024 · 3 comments

Comments

@Philmar1986
Copy link

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
Copy link

q2we commented Sep 10, 2024

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
Copy link

rollback previous version of comfyui maybe fix this issue !

@Jojo-xqt
Copy link

#16 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants