Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed typo in Demo/Ipython_L* code #192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Demo/Inference_LJSpeech.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"from models import *\n",
"from utils import *\n",
"from text_utils import TextCleaner\n",
"textclenaer = TextCleaner()\n",
"textcleaner = TextCleaner()\n",
"\n",
"%matplotlib inline"
]
Expand Down Expand Up @@ -272,7 +272,7 @@
" ps = word_tokenize(ps[0])\n",
" ps = ' '.join(ps)\n",
"\n",
" tokens = textclenaer(ps)\n",
" tokens = textcleaner(ps)\n",
" tokens.insert(0, 0)\n",
" tokens = torch.LongTensor(tokens).to(device).unsqueeze(0)\n",
" \n",
Expand Down Expand Up @@ -465,7 +465,7 @@
" ps = word_tokenize(ps[0])\n",
" ps = ' '.join(ps)\n",
"\n",
" tokens = textclenaer(ps)\n",
" tokens = textcleaner(ps)\n",
" tokens.insert(0, 0)\n",
" tokens = torch.LongTensor(tokens).to(device).unsqueeze(0)\n",
" \n",
Expand Down
10 changes: 5 additions & 5 deletions Demo/Inference_LibriTTS.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"from models import *\n",
"from utils import *\n",
"from text_utils import TextCleaner\n",
"textclenaer = TextCleaner()\n",
"textcleaner = TextCleaner()\n",
"\n",
"%matplotlib inline"
]
Expand Down Expand Up @@ -260,7 +260,7 @@
" ps = global_phonemizer.phonemize([text])\n",
" ps = word_tokenize(ps[0])\n",
" ps = ' '.join(ps)\n",
" tokens = textclenaer(ps)\n",
" tokens = textcleaner(ps)\n",
" tokens.insert(0, 0)\n",
" tokens = torch.LongTensor(tokens).to(device).unsqueeze(0)\n",
" \n",
Expand Down Expand Up @@ -691,7 +691,7 @@
" ps = ps.replace('``', '\"')\n",
" ps = ps.replace(\"''\", '\"')\n",
"\n",
" tokens = textclenaer(ps)\n",
" tokens = textcleaner(ps)\n",
" tokens.insert(0, 0)\n",
" tokens = torch.LongTensor(tokens).to(device).unsqueeze(0)\n",
" \n",
Expand Down Expand Up @@ -815,7 +815,7 @@
" ps = word_tokenize(ps[0])\n",
" ps = ' '.join(ps)\n",
"\n",
" tokens = textclenaer(ps)\n",
" tokens = textcleaner(ps)\n",
" tokens.insert(0, 0)\n",
" tokens = torch.LongTensor(tokens).to(device).unsqueeze(0)\n",
" \n",
Expand All @@ -824,7 +824,7 @@
" ps = word_tokenize(ps[0])\n",
" ps = ' '.join(ps)\n",
"\n",
" ref_tokens = textclenaer(ps)\n",
" ref_tokens = textcleaner(ps)\n",
" ref_tokens.insert(0, 0)\n",
" ref_tokens = torch.LongTensor(ref_tokens).to(device).unsqueeze(0)\n",
" \n",
Expand Down