Skip to content

Commit d7b6763

Browse files
Tts deploy doc update (#181)
* 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>
1 parent 876c23c commit d7b6763

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

tts-deploy.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@
130130
" f\"notebook. NGC message: {ngc_output_formatted}\"\n",
131131
" )\n",
132132
" return None\n",
133-
" riva_files_in_dir = list(output.glob(\"*.riva\"))\n",
134-
" if len(riva_files_in_dir) > 0:\n",
135-
" output = riva_files_in_dir[0]\n",
133+
" if \"model\" in resource_type:\n",
134+
" riva_files_in_dir = list(output.glob(\"*.riva\"))\n",
135+
" if len(riva_files_in_dir) > 0:\n",
136+
" output = riva_files_in_dir[0]\n",
136137
" if output is not None and var is not None:\n",
137138
" warnings.warn(\n",
138139
" f\"`{var_name}` had a non-default value of `{var}`. `{var_name}` will be updated to `{var}`\"\n",
@@ -536,7 +537,7 @@
536537
"name": "python",
537538
"nbconvert_exporter": "python",
538539
"pygments_lexer": "ipython3",
539-
"version": "3.8.10"
540+
"version": "3.8.0"
540541
},
541542
"vscode": {
542543
"interpreter": {

tts-finetune-nemo.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,10 +671,13 @@
671671
"metadata": {},
672672
"outputs": [],
673673
"source": [
674+
"hifigan_full_ds = f\"{finetune_data_path}/mels/merged_full_mel.json\"\n",
674675
"hifigan_train_ds = f\"{finetune_data_path}/mels/merged_train_mel.json\"\n",
675676
"hifigan_val_ds = f\"{finetune_data_path}/mels/merged_val_mel.json\"\n",
676677
"\n",
677-
"! cat {hifigan_train_ds} | tail -n 2 > {hifigan_val_ds}"
678+
"! cat {hifigan_train_ds} > {hifigan_full_ds}\n",
679+
"! cat {hifigan_full_ds} | tail -n 2 > {hifigan_val_ds}\n",
680+
"! cat {hifigan_full_ds} | head -n -2 > {hifigan_train_ds}"
678681
]
679682
},
680683
{
@@ -878,7 +881,6 @@
878881
]
879882
},
880883
{
881-
"attachments": {},
882884
"cell_type": "markdown",
883885
"metadata": {},
884886
"source": [
@@ -893,7 +895,7 @@
893895
"hash": "741d73fab70d7eb29e7b56260ebaa567f0620f4d2780830ca385f600e5120e14"
894896
},
895897
"kernelspec": {
896-
"display_name": "Python 3",
898+
"display_name": "Python 3 (ipykernel)",
897899
"language": "python",
898900
"name": "python3"
899901
},
@@ -907,7 +909,7 @@
907909
"name": "python",
908910
"nbconvert_exporter": "python",
909911
"pygments_lexer": "ipython3",
910-
"version": "3.7.6"
912+
"version": "3.8.0"
911913
}
912914
},
913915
"nbformat": 4,

0 commit comments

Comments
 (0)