mirror of https://github.com/coqui-ai/TTS.git
Run ready
This commit is contained in:
parent
d7592621d1
commit
69e158c81a
|
@ -25,5 +25,5 @@
|
||||||
"checkpoint": false,
|
"checkpoint": false,
|
||||||
"save_step": 69,
|
"save_step": 69,
|
||||||
"data_path": "/run/shm/erogol/LJSpeech-1.0",
|
"data_path": "/run/shm/erogol/LJSpeech-1.0",
|
||||||
"output_path": "result",
|
"output_path": "result"
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@ class LJSpeechDataset(Dataset):
|
||||||
|
|
||||||
with open(csv_file, "r") as f:
|
with open(csv_file, "r") as f:
|
||||||
self.frames = [line.split('|') for line in f]
|
self.frames = [line.split('|') for line in f]
|
||||||
self.frames = self.frames[:256]
|
|
||||||
self.root_dir = root_dir
|
self.root_dir = root_dir
|
||||||
self.outputs_per_step = outputs_per_step
|
self.outputs_per_step = outputs_per_step
|
||||||
self.sample_rate = sample_rate
|
self.sample_rate = sample_rate
|
||||||
|
|
2
train.py
2
train.py
|
@ -285,6 +285,7 @@ def evaluate(model, criterion, data_loader, current_step):
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
|
|
||||||
|
# Setup the dataset
|
||||||
train_dataset = LJSpeechDataset(os.path.join(c.data_path, 'metadata_train.csv'),
|
train_dataset = LJSpeechDataset(os.path.join(c.data_path, 'metadata_train.csv'),
|
||||||
os.path.join(c.data_path, 'wavs'),
|
os.path.join(c.data_path, 'wavs'),
|
||||||
c.r,
|
c.r,
|
||||||
|
@ -325,6 +326,7 @@ def main(args):
|
||||||
drop_last=True, num_workers= 4,
|
drop_last=True, num_workers= 4,
|
||||||
pin_memory=True)
|
pin_memory=True)
|
||||||
|
|
||||||
|
model = Tacotron(c.embedding_size,
|
||||||
c.hidden_size,
|
c.hidden_size,
|
||||||
c.num_mels,
|
c.num_mels,
|
||||||
c.num_freq,
|
c.num_freq,
|
||||||
|
|
Loading…
Reference in New Issue