Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
quocanh199 authored Nov 16, 2020
1 parent c6d0fa2 commit 636ffe8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions hparams.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import os

# Dataset
dataset = "LJSpeech"
data_path = "./data/LJSpeech-1.1/"
# dataset = "LJSpeech"
# data_path = "./data/LJSpeech-1.1/"
dataset = "HaPhuong"
data_path = "./data/HaPhuong/"
#dataset = "Blizzard2013"
#data_path = "./Blizzard-2013/train/segmented/"

Expand Down Expand Up @@ -87,7 +89,6 @@
# Vocoder
vocoder = 'melgan' # 'waveglow' or 'melgan'


# Log-scaled duration
log_offset = 1.

Expand Down
2 changes: 1 addition & 1 deletion prepare_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ def main():
ljspeech.prepare_align(in_dir)
if hp.dataset == "Blizzard2013":
blizzard2013.prepare_align(in_dir)

ljspeech.prepare_align(in_dir)
if __name__ == "__main__":
main()
1 change: 1 addition & 0 deletions preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def main():
train, val = ljspeech.build_from_path(in_dir, out_dir)
if hp.dataset == "Blizzard2013":
train, val = blizzard2013.build_from_path(in_dir, out_dir)
ljspeech.build_from_path(in_dir, out_dir)
write_metadata(train, val, out_dir)

if __name__ == "__main__":
Expand Down

0 comments on commit 636ffe8

Please sign in to comment.