Skip to content

Commit f6721a7

Browse files
authored
Merge pull request #330 from OscarVanL/master
Replaced hardcoded path separator for multiple OS support
2 parents cfcc57a + f0955f1 commit f6721a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/fastspeech2_libritts/libri_experiment/prepare_libri.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"for sp_id, v in poss_speakers.items():\n",
118118
" if sp_id in to_move:\n",
119119
" for j in v:\n",
120-
" f_name = j.split(\"/\")[-1]\n",
120+
" f_name = j.split(os.path.sep)[-1]\n",
121121
" text_f_name = f_name.split(\".wav\")[0] + \".txt\"\n",
122122
" os.makedirs(os.path.join(dataset_path, sp_id), exist_ok=True)\n",
123123
" shutil.copy(j, os.path.join(dataset_path, sp_id, f_name))\n",

0 commit comments

Comments
 (0)