You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~~We recommend Windows users to use WSL2 or docker to run the codebase, or use the integrated environment developed by the community.~~
30
-
31
29
## Windows Setup
32
30
33
31
Windows professional users may consider WSL2 or Docker to run the codebase.
34
32
35
33
Non-professional Windows users can consider the following methods to run the codebase without a Linux environment (with model compilation capabilities aka `torch.compile`):
36
34
37
-
0. Extract the project zip file.
38
-
1. Click `install_env.bat` to install the environment.
39
-
40
-
1. You can decide whether to use a mirror site for downloading by editing the `USE_MIRROR` item in `install_env.bat`.
41
-
2. The default is `preview`, using a mirror site and the latest development version of torch (the only way to activate the compilation method).
42
-
3.`false` uses the original site to download the environment. `true` uses the mirror site to download the stable version of torch and other environments.
43
-
44
-
2. (Optional, this step is to activate the model compilation environment)
45
-
46
-
1. Use the following links to download the `LLVM` compiler.
47
-
48
-
-[LLVM-17.0.6 (original site download)](https://huggingface.co/fishaudio/fish-speech-1/resolve/main/LLVM-17.0.6-win64.exe?download=true)
49
-
-[LLVM-17.0.6 (mirror site download)](https://hf-mirror.com/fishaudio/fish-speech-1/resolve/main/LLVM-17.0.6-win64.exe?download=true)
50
-
- After downloading `LLVM-17.0.6-win64.exe`, double-click to install, choose the appropriate installation location, and most importantly, check `Add Path to Current User` to add the environment variable.
51
-
- Confirm the installation is complete.
52
-
53
-
2. Download and install the Microsoft Visual C++ Redistributable Package to resolve potential .dll missing issues.
3. Double-click `start.bat` to enter the Fish-Speech training and inference configuration WebUI page.
57
-
58
-
- Want to go directly to the inference page? Edit the `API_FLAGS.txt` in the project root directory, and modify the first three lines as follows:
59
-
60
-
```text
61
-
--infer
62
-
# --api
63
-
# --listen ...
64
-
...
65
-
```
66
-
67
-
- Want to start the API server? Edit the API_FLAGS.txt in the project root directory, and modify the first three lines as follows:
68
-
69
-
```text
70
-
# --infer
71
-
--api
72
-
--listen ...
73
-
...
74
-
```
75
-
76
-
4. (Optional) Double-click run_cmd.bat to enter the conda/python command line environment of this project.
35
+
<ol>
36
+
<li>Unzip the project package.</li>
37
+
<li>Click <code>install_env.bat</code> to install the environment.
38
+
<ul>
39
+
<li>You can decide whether to use a mirror site for downloads by editing the <code>USE_MIRROR</code> item in <code>install_env.bat</code>.</li>
40
+
<li><code>USE_MIRROR=false</code> downloads the latest stable version of <code>torch</code> from the original site. <code>USE_MIRROR=true</code> downloads the latest version of <code>torch</code> from a mirror site. The default is <code>true</code>.</li>
41
+
<li>You can decide whether to enable the compiled environment download by editing the <code>INSTALL_TYPE</code> item in <code>install_env.bat</code>.</li>
42
+
<li><code>INSTALL_TYPE=preview</code> downloads the preview version with the compiled environment. <code>INSTALL_TYPE=stable</code> downloads the stable version without the compiled environment.</li>
43
+
</ul>
44
+
</li>
45
+
<li>If step 2 has <code>USE_MIRROR=preview</code>, execute this step (optional, for activating the compiled model environment):
46
+
<ol>
47
+
<li>Download the LLVM compiler using the following links:
48
+
<ul>
49
+
<li><a href="https://huggingface.co/fishaudio/fish-speech-1/resolve/main/LLVM-17.0.6-win64.exe?download=true">LLVM-17.0.6 (original site download)</a></li>
50
+
<li><a href="https://hf-mirror.com/fishaudio/fish-speech-1/resolve/main/LLVM-17.0.6-win64.exe?download=true">LLVM-17.0.6 (mirror site download)</a></li>
51
+
<li>After downloading <code>LLVM-17.0.6-win64.exe</code>, double-click to install it, choose an appropriate installation location, and most importantly, check <code>Add Path to Current User</code> to add to the environment variables.</li>
52
+
<li>Confirm the installation is complete.</li>
53
+
</ul>
54
+
</li>
55
+
<li>Download and install the Microsoft Visual C++ Redistributable package to resolve potential .dll missing issues.
<li>Download and install Visual Studio Community Edition to obtain MSVC++ build tools, resolving LLVM header file dependencies.
61
+
<ul>
62
+
<li><a href="https://visualstudio.microsoft.com/zh-hans/downloads/">Visual Studio Download</a></li>
63
+
<li>After installing Visual Studio Installer, download Visual Studio Community 2022.</li>
64
+
<li>Click the <code>Modify</code> button as shown below, find the <code>Desktop development with C++</code> option, and check it for download.</li>
65
+
<p align="center">
66
+
<img src="/assets/figs/VS_1.jpg" width="75%">
67
+
</p>
68
+
</ul>
69
+
</li>
70
+
</ol>
71
+
</li>
72
+
<li>Double-click <code>start.bat</code> to enter the Fish-Speech training inference configuration WebUI page.
73
+
<ul>
74
+
<li>(Optional) Want to go directly to the inference page? Edit the <code>API_FLAGS.txt</code> in the project root directory and modify the first three lines as follows:
75
+
<pre><code>--infer
76
+
# --api
77
+
# --listen ...
78
+
...</code></pre>
79
+
</li>
80
+
<li>(Optional) Want to start the API server? Edit the <code>API_FLAGS.txt</code> in the project root directory and modify the first three lines as follows:
81
+
<pre><code># --infer
82
+
--api
83
+
--listen ...
84
+
...</code></pre>
85
+
</li>
86
+
</ul>
87
+
</li>
88
+
<li>(Optional) Double-click <code>run_cmd.bat</code> to enter the conda/python command line environment of this project.</li>
0 commit comments