-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows下运行问题 #39
Comments
对的,就算是程序员,只要是非python,ai开发的都100%会掉入这个坑: pip install -r requirements.txt |
神奇我windows 直接运行 pip install -r requirements.txt 成功了, |
你直接pip install -r requirements.txt或者pip install torch有可能调用不了GPU,因为不是GPU版本的torch,你配好CUDA环境之后最好去PyTorch官网找PyTorch+cuxxx的pip安装命令,要不然CPU跑得慢死。另外多进程这个锅十有八九是平台的原因,Ubuntu和Windows下多进程的表现不一样,导致Windwos下多个进程会重复读取相同的数据/文件。时间过于久远,我只能记住大概的现象,backend/config.py最后一行应该是创建多进程的代码,默认是10,这个你不改成1,在Win11下要么跑不出来要么报cuda的dll丢失问题 |
windows平台最好能提供.exe一键安装包,然后窗口操作。毕竟windows普通用户是最多的。就像硬字幕提取工具那样。 |
讲真,我希望作者提供平台之前最好在对应平台上跑一下试试,并且检查一下requirements.txt是否正确,当然也可能是在Linux下没问题,在Windows下出现了,而不是让人以为你的代码在Windows下简单改改就能跑了,说一下Windows平台下我发现的几个问题:
if name == 'main':
freeze_support()
或者至少你要把你的代码用if name == 'main':封装一下,要不然多进程在Windows下一定会报错。
The text was updated successfully, but these errors were encountered: