Skip to content

Commit

Permalink
Tts deploy doc update (#181)
Browse files Browse the repository at this point in the history
* return .riva path only in case of models in ngc_download_and_get_dir

* Removed train and val set overlap

* Cleared output

---------

Co-authored-by: Siddharth Tyagi <siddhartht@nvidia.com>
  • Loading branch information
styagi130 and siddhartht130 authored Nov 6, 2023
1 parent 876c23c commit d7b6763
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 5 additions & 4 deletions tts-deploy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@
" f\"notebook. NGC message: {ngc_output_formatted}\"\n",
" )\n",
" return None\n",
" riva_files_in_dir = list(output.glob(\"*.riva\"))\n",
" if len(riva_files_in_dir) > 0:\n",
" output = riva_files_in_dir[0]\n",
" if \"model\" in resource_type:\n",
" riva_files_in_dir = list(output.glob(\"*.riva\"))\n",
" if len(riva_files_in_dir) > 0:\n",
" output = riva_files_in_dir[0]\n",
" if output is not None and var is not None:\n",
" warnings.warn(\n",
" f\"`{var_name}` had a non-default value of `{var}`. `{var_name}` will be updated to `{var}`\"\n",
Expand Down Expand Up @@ -536,7 +537,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.8.0"
},
"vscode": {
"interpreter": {
Expand Down
10 changes: 6 additions & 4 deletions tts-finetune-nemo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -671,10 +671,13 @@
"metadata": {},
"outputs": [],
"source": [
"hifigan_full_ds = f\"{finetune_data_path}/mels/merged_full_mel.json\"\n",
"hifigan_train_ds = f\"{finetune_data_path}/mels/merged_train_mel.json\"\n",
"hifigan_val_ds = f\"{finetune_data_path}/mels/merged_val_mel.json\"\n",
"\n",
"! cat {hifigan_train_ds} | tail -n 2 > {hifigan_val_ds}"
"! cat {hifigan_train_ds} > {hifigan_full_ds}\n",
"! cat {hifigan_full_ds} | tail -n 2 > {hifigan_val_ds}\n",
"! cat {hifigan_full_ds} | head -n -2 > {hifigan_train_ds}"
]
},
{
Expand Down Expand Up @@ -878,7 +881,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -893,7 +895,7 @@
"hash": "741d73fab70d7eb29e7b56260ebaa567f0620f4d2780830ca385f600e5120e14"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -907,7 +909,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.8.0"
}
},
"nbformat": 4,
Expand Down

0 comments on commit d7b6763

Please sign in to comment.