ComfyUI_VLM_nodes
ComfyUI_VLM_nodes copied to clipboard
Moondream error after installing VLM nodes
Here is what I got from the terminal. I use linux mint
File "/home/chupz22/ComfyUI/custom_nodes/ComfyUI_VLM_nodes/nodes/moondream_script.py", line 1, in
Cannot import /home/chupz22/ComfyUI/custom_nodes/ComfyUI_VLM_nodes module for custom nodes: cannot import name 'ToImage' from 'torchvision.transforms.v2' (/home/chupz22/venv/sdvenv/lib/python3.10/site-packages/torchvision/transforms/v2/init.py)
is it moondream1 or moondream2 ?
@SmoothBrainApe I also encountered some errors while using Moondream 2 node, but I solved it by replacing the two original code files below. You can also try it and see if it works.
configuration_moondream.py
modeling_phi.py
I've put the replaced code file on Google Drive. Google Drive