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

Don't work for me unfortunatly #45

Closed
davedaverave opened this issue Mar 24, 2024 · 1 comment
Closed

Don't work for me unfortunatly #45

davedaverave opened this issue Mar 24, 2024 · 1 comment

Comments

@davedaverave
Copy link

Traceback (most recent call last):
File "/notebooks/ComfyUI/nodes.py", line 1888, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/notebooks/ComfyUI/custom_nodes/Comfyui_image2prompt/init.py", line 1, in
from .image2text import Image2Text, LoadImage2TextModel
File "/notebooks/ComfyUI/custom_nodes/Comfyui_image2prompt/image2text.py", line 1, in
from .moondream_model import MoondreamModel
File "/notebooks/ComfyUI/custom_nodes/Comfyui_image2prompt/moondream_model.py", line 8, in
from torchvision.transforms.v2 import (
File "/usr/local/lib/python3.9/dist-packages/torchvision/transforms/v2/init.py", line 3, in
from . import functional # usort: skip
File "/usr/local/lib/python3.9/dist-packages/torchvision/transforms/v2/functional/init.py", line 3, in
from ._utils import is_pure_tensor, register_kernel # usort: skip
File "/usr/local/lib/python3.9/dist-packages/torchvision/transforms/v2/functional/_utils.py", line 5, in
from torchvision import tv_tensors
File "/usr/local/lib/python3.9/dist-packages/torchvision/tv_tensors/init.py", line 3, in
from ._bounding_boxes import BoundingBoxes, BoundingBoxFormat
File "/usr/local/lib/python3.9/dist-packages/torchvision/tv_tensors/_bounding_boxes.py", line 9, in
from ._tv_tensor import TVTensor
File "/usr/local/lib/python3.9/dist-packages/torchvision/tv_tensors/_tv_tensor.py", line 6, in
from torch._C import DisableTorchFunctionSubclass
ImportError: cannot import name 'DisableTorchFunctionSubclass' from 'torch._C' (/usr/local/lib/python3.9/dist-packages/torch/_C.cpython-39-x86_64-linux-gnu.so)

Cannot import /notebooks/ComfyUI/custom_nodes/Comfyui_image2prompt module for custom nodes: cannot import name

@zhongpei
Copy link
Owner

torchvision bug, may be reinstall torchvision, pytorch/vision#7126

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

2 participants