-
Notifications
You must be signed in to change notification settings - Fork 44
Description
According to procedure, I run:
python3 train.py --input_dir ../dataset/training_data --tacotron_input ../dataset/training_data/train.txt --model='Tacotron'
But ValueError: cannot reshape array of size 137996 into shape (20) exists.
--------------in detail----------------
Tacotron training set to a maximum of 500000 steps
No model to load at logs-Tacotron/taco_pretrained/
Exception in thread background:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/new-data/lfsun/accentconversion/tts/LPCTron-master/Tacotron-2/tacotron/feeder.py", line 172, in _enqueue_next_test_group
test_batches, r = self.make_test_batches()
File "/new-data/lfsun/accentconversion/tts/LPCTron-master/Tacotron-2/tacotron/feeder.py", line 141, in make_test_batches
examples = [self._get_test_groups() for i in range(len(self._test_meta))]
File "/new-data/lfsun/accentconversion/tts/LPCTron-master/Tacotron-2/tacotron/feeder.py", line 141, in
examples = [self._get_test_groups() for i in range(len(self._test_meta))]
File "/new-data/lfsun/accentconversion/tts/LPCTron-master/Tacotron-2/tacotron/feeder.py", line 127, in _get_test_groups
mel_target = np.resize(mel_target, (-1, self._hparams.num_mels))
File "/new-data/lfsun/python3-env/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 1187, in resize
return reshape(a, new_shape)
File "/new-data/lfsun/python3-env/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 257, in reshape
return _wrapfunc(a, 'reshape', newshape, order=order)
File "/new-data/lfsun/python3-env/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 52, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: cannot reshape array of size 137996 into shape (20)
Do you know how to figure it out? Thanks!