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

Can we have a windows install guide?

Open marvelmaster opened this issue 1 year ago • 10 comments

Was wondering why it just did not work until I noticed half of the install instrucions is for linux-.-

marvelmaster avatar Mar 11 '23 02:03 marvelmaster

if u are a user of Windows, u can open your windows function named Window subsystem for Linux or 适用于Linux的Window子系统 in Windows Function or Windows 功能

ATang0729 avatar Mar 11 '23 03:03 ATang0729

mac 电脑怎么安装啊

sensne avatar Mar 11 '23 03:03 sensne

I successfully make it running on Win10. The key point is to set the python version to 3.8.1 in order to install several requirements. Then find the right builds for torch1.12.1+cu113,torchvision+cu etc. in place of torch... in the requirements. Next is to finish the command in the download.sh manually with the Windows powershell style. Set the env OPENAI_API_KEY in the system configuration. Finally edit the self.tool section in visual_chatgpt.py to make sure there is enough VRAM to run.

Hasix1 avatar Mar 11 '23 17:03 Hasix1

I successfully make it running on Win10. The key point is to set the python version to 3.8.1 in order to install several requirements. Then find the right builds for torch1.12.1+cu113,torchvision+cu etc. in place of torch... in the requirements. Next is to finish the command in the download.sh manually with the Windows powershell style. Set the env OPENAI_API_KEY in the system configuration. Finally edit the self.tool section in visual_chatgpt.py to make sure there is enough VRAM to run.

i get a error,can u help me AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import) it looks like something erro in cv2?

hardlipay avatar Mar 12 '23 04:03 hardlipay

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

It seems like your current file wound import the ‘cv2’, while the latter will also import the former. I guess that you have built a file named ‘cv2’ in your current file path, which conflicts with the package ‘cv2’

ATang0729 avatar Mar 12 '23 04:03 ATang0729

I successfully make it running on Win10. The key point is to set the python version to 3.8.1 in order to install several requirements. Then find the right builds for torch1.12.1+cu113,torchvision+cu etc. in place of torch... in the requirements. Next is to finish the command in the download.sh manually with the Windows powershell style. Set the env OPENAI_API_KEY in the system configuration. Finally edit the self.tool section in visual_chatgpt.py to make sure there is enough VRAM to run.

could you please tell me what the system configuration is ?

tyriankid avatar Mar 12 '23 08:03 tyriankid

could you please tell me what the system configuration is ?

Well, I guess u're a Windows user. The system configuration is the environment variables or 环境变量 for Windows. U can set environment variables referring to this articel or this one for Chinese people

Though the above way u can set the env OPENAI_API_KEY permanently. Also, if you don't want too much trouble, u can enter set OPENAI_API_KEY={Your_Private_Openai_Key} to set OPENAI_API_KEY temporarily (reference).

ATang0729 avatar Mar 12 '23 09:03 ATang0729

I successfully make it running on Win10. The key point is to set the python version to 3.8.1 in order to install several requirements. Then find the right builds for torch1.12.1+cu113,torchvision+cu etc. in place of torch... in the requirements. Next is to finish the command in the download.sh manually with the Windows powershell style. Set the env OPENAI_API_KEY in the system configuration. Finally edit the self.tool section in visual_chatgpt.py to make sure there is enough VRAM to run.

I managed doing everything on win10 following your advices. I execute the script through anaconda3 and it goes smoothly but it gets stuck and got frozen after saying that it is running on localhost...could it be lack of vram? How much it is needed? Thanks

FrancescoCuffaro avatar Mar 14 '23 13:03 FrancescoCuffaro

I successfully make it running on Win10. The key point is to set the python version to 3.8.1 in order to install several requirements. Then find the right builds for torch1.12.1+cu113,torchvision+cu etc. in place of torch... in the requirements. Next is to finish the command in the download.sh manually with the Windows powershell style. Set the env OPENAI_API_KEY in the system configuration. Finally edit the self.tool section in visual_chatgpt.py to make sure there is enough VRAM to run.

I managed doing everything on win10 following your advices. I execute the script through anaconda3 and it goes smoothly but it gets stuck and got frozen after saying that it is running on localhost...could it be lack of vram? How much it is needed? Thanks

Did it say 'Running on local URL: http://0.0.0.0:7860'? It means you have successfully run it. You just need to open 127.0.0.1:7860 or localhost:7860 in web browser.

Hasix1 avatar Mar 16 '23 02:03 Hasix1

Thanks! It worked but I got a different issue now...I'll open a new thread

FrancescoCuffaro avatar Mar 17 '23 12:03 FrancescoCuffaro

QAQ

DoubleCore avatar Mar 24 '23 13:03 DoubleCore