MyNiuuu / MOFA-Video

[ECCV 2024] MOFA-Video: Controllable Image Animation via Generative Motion Field Adaptions in Frozen Image-to-Video Diffusion Model.
https://myniuuu.github.io/MOFA_Video
Other
515 stars 26 forks source link

No module named 'cv2' #34

Open yhqqxq opened 3 weeks ago

yhqqxq commented 3 weeks ago

Traceback (most recent call last): File "G:\AI\ZHB\MOFA-Video\MOFA-Video-Hybrid\aniportrait\audio2ldmk.py", line 6, in import cv2 ModuleNotFoundError: No module named 'cv2'

opencv-python已经装了,却提示缺少cv2,请问这个如何解决?

MyNiuuu commented 3 weeks ago

You can try pip install opencv-python-headless

yhqqxq commented 3 weeks ago

微信截图_20240703145459

opencv-python-headless has been installed, but the same error occurs.

MyNiuuu commented 3 weeks ago

I haven't encountered this issue before, but I find that most solutions on the internet suggests that you can uninstall opencv-python (and opencv-python-headless) and re-install it with different commands: a, b. Hope these can help you!

zishen-ucap commented 5 days ago

Traceback (most recent call last): File "G:\AI\ZHB\MOFA-Video\MOFA-Video-Hybrid\aniportrait\audio2ldmk.py", line 6, in import cv2 ModuleNotFoundError: No module named 'cv2'

opencv-python已经装了,却提示缺少cv2,请问这个如何解决?

如果你是opencv进的话,那么下面终端也要切换下环境