Skip to content

Commit b2a06b9

Browse files
authored
chore(easy-installation): add .BAT for Chinese (#463)
1 parent 5e032a3 commit b2a06b9

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed

easy-installation/install-cn.bat

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
@echo off
2+
3+
echo 本bat汉化基于英文版,对原版进行了一些本地工作和优化,如安装过程有问题,可以尝试安装原版
4+
echo.
5+
6+
echo.
7+
echo 检查 Python 版本 3.10...
8+
echo.
9+
10+
py -3.10 --version >nul 2>&1
11+
if %errorlevel%==0 (
12+
echo Python 3.10 已经安装
13+
echo.
14+
) else (
15+
echo Python 3.10 未安装,开始下载...
16+
echo.
17+
curl https://www.python.org/ftp/python/3.10.10/python-3.10.10-amd64.exe -o python-3.10.10-amd64.exe
18+
19+
echo 安装 Python 3.10...
20+
echo.
21+
python-3.10.10-amd64.exe /quiet InstallAllUsers=1 PrependPath=1
22+
23+
echo 清理安装器...
24+
echo.
25+
del python-3.10.10-amd64.exe
26+
)
27+
echo.
28+
echo 检查 GPU...
29+
echo.
30+
nvidia-smi >nul 2>&1
31+
if %errorlevel%==0 (
32+
echo 找到可用GPU
33+
echo.
34+
) else (
35+
echo 未找到可用found
36+
echo.
37+
)
38+
39+
nvidia-smi >nul 2>&1
40+
if %errorlevel%==0 (
41+
42+
echo.
43+
echo 检查CUDA...
44+
echo.
45+
46+
if %errorlevel%==0 (
47+
echo CUDA 已经安装
48+
echo.
49+
) else (
50+
echo 未检测到CUDA,请从下面链接手动安装CUDA,安装后再重新运行本程序
51+
echo https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Windows
52+
echo.
53+
echo 如果你已经确定安装了CUDA,可能是程序检测出错,可以按任意键强制继续执行,否则请关闭本程序,安装好CUDA后再重新运行
54+
echo.
55+
Pause
56+
)
57+
58+
echo 检查 cuDNN...
59+
if exist "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cudnn64_8.dll" (
60+
echo cuDNN 已经安装
61+
echo.
62+
) else (
63+
echo 未检测到cuDNN,请从下面链接手动安装CUDA,安装后再重新运行本程序
64+
echo https://developer.nvidia.com/cudnn (https://developer.nvidia.com/downloads/compute/cudnn/secure/8.8.1/local_installers/11.8/cudnn-windows-x86_64-8.8.1.3_cuda11-archive.zip/)
65+
echo.
66+
echo 如果你已经确定安装了cuDNN,可能是程序检测出错,可以按任意键强制继续执行,否则请关闭本程序,安装好CUDA后再重新运行
67+
echo.
68+
Pause
69+
)
70+
)
71+
echo.
72+
echo 正在创建虚拟环境(需要一点时间,请耐心等待)...
73+
echo.
74+
py -3.10 -m venv venv
75+
echo.
76+
echo 升级 pip 和 wheel...
77+
echo.
78+
venv\Scripts\python.exe -m pip install --upgrade pip wheel
79+
echo.
80+
nvidia-smi >nul 2>&1
81+
if %errorlevel%==0 (
82+
echo 安装 PyTorch (GPU版本)...
83+
echo.
84+
venv\Scripts\pip.exe install torch torchvision torchaudio --index-url https://mirror.sjtu.edu.cn/pytorch-wheels
85+
echo 安装 PyTorch (CPU版本)...
86+
echo.
87+
venv\Scripts\pip.exe install torch torchaudio -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider
88+
)
89+
echo.
90+
echo 请检查以上包是否都成功安装,确定成功安装后,按任意键开始安装so-vits-svc-fork
91+
echo.
92+
Pause
93+
echo 安装 so-vits-svc-fork...
94+
echo.
95+
venv\Scripts\pip.exe install so-vits-svc-fork
96+
echo.
97+
echo 启动 so-vits-svc-fork 图形化界面...
98+
echo.
99+
venv\Scripts\svcg.exe
100+
101+
Pause

0 commit comments

Comments
 (0)