visual-chatgpt icon indicating copy to clipboard operation
visual-chatgpt copied to clipboard

win11 x86 get a error in "python visual_chatgpt.py"

Open hardlipay opened this issue 1 year ago • 3 comments

AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)

I ensure that no erro in pip install and pip list ,but when i run python visual_chatgpt.py It get a erro in conda. It looks like something erro in cv2? how can i solve it

hardlipay avatar Mar 12 '23 04:03 hardlipay

maybe it's opencv version wrong, try pip install opencv-python==4.5.1.48. Or you can also reference my Colab version https://github.com/K-tang-mkv/visual-chatgpt-googlecolab

K-tang-mkv avatar Mar 12 '23 05:03 K-tang-mkv

maybe it's opencv version wrong, try pip install opencv-python==4.5.1.48. Or you can also reference my Colab version https://github.com/K-tang-mkv/visual-chatgpt-googlecolab

yes , i had solve it but,it tips that i have no module ldm. then, i pip install ldm, try again ,i got a new erro again ,it looks like the ldm need the python 2.7 , but this projection needs the python 3.8 . and I search information in internet ,the ldm really need the python 2.7 . so,how can i solve this erro? or only play in linux?

hardlipay avatar Mar 12 '23 05:03 hardlipay

You shouldn't pip install ldm. It said you don't have ldm is because the symbolic link didn't successfully build. You need to rebuild it or simple copy visual-chatgpt/ControlNet/ldm, visual-chatgpt/ControlNet/cldm, visual-chatgpt/ControlNet/annotator to the visual-chatgpt/ folder.

wrk226 avatar Mar 12 '23 09:03 wrk226