kijai / ComfyUI-SVD

Experimental use of stable-video-diffusion in ComfyUI
152 stars 9 forks source link

ImportError: cannot import name 'NODE_CLASS_MAPPINGS' from 'ComfyUI-SVD.comfyui_svd' #10

Open huanxve opened 7 months ago

huanxve commented 7 months ago

File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SVD__init__.py", line 1, in from .comfyui_svd import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS ImportError: cannot import name 'NODE_CLASS_MAPPINGS' from 'ComfyUI-SVD.comfyui_svd' (E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SVD\comfyui_svd.py)

Cannot import E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SVD module for custom nodes: cannot import name 'NODE_CLASS_MAPPINGS' from 'ComfyUI-SVD.comfyui_svd' (E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SVD\comfyui_svd.py)

ljacky619 commented 6 months ago

I have the same problem, how to solve it

Bodymover commented 5 months ago

Open comfyui_svd.py , and replace # and tab at the beginning of every line.


like:

from einops import rearrange, repeat

to from einops import rearrange, repeat


simple search & replace , save & restart ComfyUi