Open nikolaiusa opened 4 months ago
what version torchvision i need?
you can try transformers==4.36.2
you can try transformers==4.36.2
I have the same error output.
How we should run it with transformers==4.36.2
? I believe there should be a reuirements.txt
file.
I have the same issue. I'm running transformers 4.38.2 and torchvision 0.15.1.
print(transformers.version) 4.38.2
encounter the same problem. hope optimize this problem. Thank you.
File "I:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui_image2prompt__init__.py", line 1, in
from .image2text import Image2Text, LoadImage2TextModel
File "I:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui_image2prompt\image2text.py", line 1, in
from .moondream_model import MoondreamModel
File "I:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui_image2prompt\moondream_model.py", line 8, in
from torchvision.transforms.v2 import (
ImportError: cannot import name 'ToImage' from 'torchvision.transforms.v2' (I:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\torchvision\transforms\v2__init__.py)
Cannot import I:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui_image2prompt module for custom nodes: cannot import name 'ToImage' from 'torchvision.transforms.v2' (I:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\torchvision\transforms\v2__init__.py)