mirror of
https://github.com/jasonppy/VoiceCraft.git
synced 2025-06-05 21:49:11 +02:00
Add start-jupyter.bat for windows and fixup dependencies.
Thanks to [jay-c88](https://github.com/jasonppy/VoiceCraft/pull/25#issuecomment-2027980511) for the windows batch file! This does the thing to actually install the jupyter notebook kernel and instructs the user to refresh their browser to pickup the changes in the notebook.
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
"source": [
|
||||
"VoiceCraft Inference Text To Speech Demo\n",
|
||||
"===\n",
|
||||
"This will install a bunch of garbage all over so consider using a docker container to contain the cruft.\n",
|
||||
"This will install a ton of dependencies all over so consider using the provided docker container start-jupyter script to keep the cruft off your dev box.\n",
|
||||
"\n",
|
||||
"Run the next 5 cells one at a time then change the Jupyter Notebook Kernel to use the voicecraft environment."
|
||||
"Run the next cells one at a time up until the *STOP* and follow those instructions before continuing. You only have to do this the first time to setup the container."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -71,7 +71,12 @@
|
||||
"# okay setup the conda environment such that jupyter notebook can find the kernel\n",
|
||||
"!source ~/.bashrc && \\\n",
|
||||
" conda activate voicecraft && \\\n",
|
||||
" conda install -y -n voicecraft ipykernel --update-deps --force-reinstall"
|
||||
" conda install -y -n voicecraft ipykernel --update-deps --force-reinstall\n",
|
||||
"\n",
|
||||
"# installs the Jupyter kernel into /home/myusername/.local/share/jupyter/kernels/voicecraft\n",
|
||||
"!source ~/.bashrc && \\\n",
|
||||
" conda activate voicecraft && \\\n",
|
||||
" python3 -m ipykernel install --user --name=voicecraft"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -81,10 +86,11 @@
|
||||
"# STOP\n",
|
||||
"You have to do this part manually using the mouse/keyboard and the tabs at the top.\n",
|
||||
"\n",
|
||||
"* Refresh your browser to make sure it picks up the new kernel.\n",
|
||||
"* Kernel -> Change Kernel -> Select Kernel -> voicecraft\n",
|
||||
"* Kernel -> Restart Kernel -> Yes\n",
|
||||
"\n",
|
||||
"Now you can run the rest of the notebook and get an audio sample output. It will download more models and such."
|
||||
"Now you can run the rest of the notebook and get an audio sample output. It will automatically download more models and such. The next time you use this container, you can just start below here as the dependencies will remain available until you delete the docker container."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -153,7 +159,11 @@
|
||||
" mfa model download dictionary english_us_arpa && \\\n",
|
||||
" mfa model download acoustic english_us_arpa\n",
|
||||
"\n",
|
||||
"os.system(f\". ~/.bashrc && conda activate voicecraft && mfa align -j 1 --output_format csv {temp_folder} english_us_arpa english_us_arpa {align_temp}\")\n",
|
||||
"#os.system(f\". ~/.bashrc && conda activate voicecraft && mfa align -j 1 --output_format csv {temp_folder} english_us_arpa english_us_arpa {align_temp}\")\n",
|
||||
"!source ~/.bashrc && \\\n",
|
||||
" conda activate voicecraft && \\\n",
|
||||
" mfa align -v --clean -j 1 --output_format csv {temp_folder} \\\n",
|
||||
" english_us_arpa english_us_arpa {align_temp}\n",
|
||||
"\n",
|
||||
"# if the above fails, it could be because the audio is too hard for the alignment model, increasing the beam size usually solves the issue\n",
|
||||
"# os.system(f\"mfa align -j 1 --output_format csv {temp_folder} english_us_arpa english_us_arpa {align_temp} --beam 1000 --retry_beam 2000\")\n",
|
||||
|
Reference in New Issue
Block a user