You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "train.py", line 329, in
main()
File "train.py", line 257, in main
for fids, texts, mels, t_lengths, m_lengths in train_set.take(1):
File "/home/wuyx/miniconda3/envs/vc/lib/python3.6/site-packages/tensorflow/python/data/ops/iterator_ops.py", line 761, in next
return self._next_internal()
File "/home/wuyx/miniconda3/envs/vc/lib/python3.6/site-packages/tensorflow/python/data/ops/iterator_ops.py", line 747, in _next_internal
output_shapes=self._flat_output_shapes)
File "/home/wuyx/miniconda3/envs/vc/lib/python3.6/site-packages/tensorflow/python/ops/gen_dataset_ops.py", line 2728, in iterator_get_next
_ops.raise_from_not_ok_status(e, name)
File "/home/wuyx/miniconda3/envs/vc/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 6897, in raise_from_not_ok_status
six.raise_from(core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: Type mismatch between parsed tensor (float) and dtype (double)
[[{{node ParseTensor_1}}]] [Op:IteratorGetNext]
The text was updated successfully, but these errors were encountered:
Hi @wuyx517! Could you check the data type of your extracted Mel-spectrogram, by default they are under the ./ljspeech/mels/ directory and should be of float64 data type if you follow the provided environment settings.
If yours are of float32 data type, then try to change float64 in this line to float32 and see if your problem could be solved.
Thank you @light1726 !I use Databaker's data set. So when extracting the Mel-spectorgram stage, the data is float32. I changed the code in mels = self.audio_processor.melspectrogram(wav_arr) (./datasets/datasets.py line 154) to mels = self.audio_processor.melspectrogram(wav_arr).astype('float64') and regenerated Mel, which solved the problem. Thank you very much for helping me solve the problem.
在运行 preprocess.py 这步时出现异常
Traceback (most recent call last):
File "train.py", line 329, in
main()
File "train.py", line 257, in main
for fids, texts, mels, t_lengths, m_lengths in train_set.take(1):
File "/home/wuyx/miniconda3/envs/vc/lib/python3.6/site-packages/tensorflow/python/data/ops/iterator_ops.py", line 761, in next
return self._next_internal()
File "/home/wuyx/miniconda3/envs/vc/lib/python3.6/site-packages/tensorflow/python/data/ops/iterator_ops.py", line 747, in _next_internal
output_shapes=self._flat_output_shapes)
File "/home/wuyx/miniconda3/envs/vc/lib/python3.6/site-packages/tensorflow/python/ops/gen_dataset_ops.py", line 2728, in iterator_get_next
_ops.raise_from_not_ok_status(e, name)
File "/home/wuyx/miniconda3/envs/vc/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 6897, in raise_from_not_ok_status
six.raise_from(core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: Type mismatch between parsed tensor (float) and dtype (double)
[[{{node ParseTensor_1}}]] [Op:IteratorGetNext]
The text was updated successfully, but these errors were encountered: