-
Notifications
You must be signed in to change notification settings - Fork 341
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
학습 스텝 완료 후 에러(Could not synthesize characters to Hangul.) #78
Comments
synthesize 어떤 문구 하셨나요? input으로 들어온 텍스트를 변환하는 과정에서 생기는 문제같은데 |
학습 후 파일 저장 시 이 에러가 뜹니다
2020년 5월 18일 (월) 오후 5:51, LEE SORA <[email protected]>님이 작성:
… synthesize 어떤 문구 하셨나요? input으로 들어온 텍스트를 변환하는 과정에서 생기는 문제같은데
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#78 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO25MHOQVVNV7KHGXPUWGFLRSDZKFANCNFSM4NDU5AKA>
.
|
#10 참고해보세요~ |
이 문제 해결했더니 list index out of range 에러뜨네요.. |
train.py 를 실행했더니 Could not synthesize characters to Hangul. 에러가 뜨신건가요 ? |
[root@dhmowiki tts]# python3 train.py --data_path=datasets/ksw
|
Loaded metadata for 11 examples을 보니 사용할 데이터는 11개 밖에 없는 것 같네요. |
어떻게 조절하는지 아시나요? batch size는 train.py에서 조절하는 것 같은데 32와 8 두가지가 있네요...
2020년 5월 20일 (수) 오후 1:49, LEE SORA <[email protected]>님이 작성:
… Loaded metadata for 11 examples을 보니 사용할 데이터는 11개 밖에 없는 것 같네요.
다음 batch를 가져오지 못해서 나오는 에러인 것 같습니다.
경로에 데이터가 잘 있는지 확인해보시거나 batch_size를 조절하거나 batches_per_group을 조절해보세요.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#78 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO25MHLHA2O6CXRINHH7NLLRSNOOFANCNFSM4NDU5AKA>
.
|
batch_size는 hparams.py에서 수정하시면 됩니다. |
Exiting due to exception: Could not synthesize characters to Hangul.
Traceback (most recent call last):
File "train.py", line 268, in train
log_dir, step, loss, "train")
File "train.py", line 104, in save_and_plot
parallel_run(fn, items, parallel=False)
File "/root/tts/multi-speaker-tacotron-tensorflow/utils/init.py", line 151, in parallel_run
out = fn(item)
File "train.py", line 95, in save_and_plot_fn
skip_eos_and_pad=True, combine_jamo=True))
File "/root/tts/multi-speaker-tacotron-tensorflow/text/init.py", line 77, in sequence_to_text
return jamo_to_korean(result)
File "/root/tts/multi-speaker-tacotron-tensorflow/text/korean.py", line 64, in jamo_to_korean
new_text += _get_text_from_candidates(candidates)
File "/root/tts/multi-speaker-tacotron-tensorflow/text/korean.py", line 53, in _get_text_from_candidates
return j2h(**dict(zip(["lead", "vowel", "tail"], candidates)))
File "/usr/local/lib/python3.6/site-packages/jamo/jamo.py", line 290, in j2h
return jamo_to_hangul(lead, vowel, tail)
File "/usr/local/lib/python3.6/site-packages/jamo/jamo.py", line 277, in jamo_to_hangul
'\x00')
jamo.jamo.InvalidJamoError: Could not synthesize characters to Hangul.
2020-05-18 10:29:45.504211: W tensorflow/core/kernels/queue_base.cc:295] _0_datafeeder/input_queue_1: Skipping cancelled enqueue attempt with queue not closed
2020-05-18 10:29:45.504287: W tensorflow/core/kernels/queue_base.cc:295] _1_datafeeder/input_queue: Skipping cancelled enqueue attempt with queue not closed
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1327, in _do_call
return fn(*args)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1327, in _do_call
return fn(*args)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1306, in _run_fn
status, run_metadata)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1306, in _run_fn
status, run_metadata)
File "/usr/lib64/python3.6/contextlib.py", line 88, in exit
next(self.gen)
File "/usr/lib64/python3.6/contextlib.py", line 88, in exit
next(self.gen)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.CancelledError: Enqueue operation was cancelled
[[Node: datafeeder/input_queue_enqueue = QueueEnqueueV2[Tcomponents=[DT_INT32, DT_INT32, DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](datafeeder/input_queue, _arg_datafeeder/inputs_0_1, _arg_datafeeder/input_lengths_0_0, _arg_datafeeder/loss_coeff_0_3, _arg_datafeeder/mel_targets_0_4, _arg_datafeeder/linear_targets_0_2)]]
tensorflow.python.framework.errors_impl.CancelledError: Enqueue operation was cancelled
[[Node: datafeeder/input_queue_1_enqueue = QueueEnqueueV2[Tcomponents=[DT_INT32, DT_INT32, DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](datafeeder/input_queue_1, _arg_datafeeder/inputs_1_0_1, _arg_datafeeder/input_lengths_1_0_0, _arg_datafeeder/loss_coeff_1_0_3, _arg_datafeeder/mel_targets_1_0_4, _arg_datafeeder/linear_targets_1_0_2)]]
During handling of the above exception, another exception occurred:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
Traceback (most recent call last):
File "/root/tts/multi-speaker-tacotron-tensorflow/datasets/datafeeder.py", line 204, in run
self._enqueue_next_group()
File "/root/tts/multi-speaker-tacotron-tensorflow/datasets/datafeeder.py", line 204, in run
self._enqueue_next_group()
File "/root/tts/multi-speaker-tacotron-tensorflow/datasets/datafeeder.py", line 242, in _enqueue_next_group
self._session.run(self._enqueue_op, feed_dict=feed_dict)
File "/root/tts/multi-speaker-tacotron-tensorflow/datasets/datafeeder.py", line 242, in _enqueue_next_group
self._session.run(self._enqueue_op, feed_dict=feed_dict)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 895, in run
run_metadata_ptr)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 895, in run
run_metadata_ptr)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1124, in _run
feed_dict_tensor, options, run_metadata)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1124, in _run
feed_dict_tensor, options, run_metadata)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run
options, run_metadata)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run
options, run_metadata)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call
raise type(e)(node_def, op, message)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.CancelledError: Enqueue operation was cancelled
[[Node: datafeeder/input_queue_enqueue = QueueEnqueueV2[Tcomponents=[DT_INT32, DT_INT32, DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](datafeeder/input_queue, _arg_datafeeder/inputs_0_1, _arg_datafeeder/input_lengths_0_0, _arg_datafeeder/loss_coeff_0_3, _arg_datafeeder/mel_targets_0_4, _arg_datafeeder/linear_targets_0_2)]]
Caused by op 'datafeeder/input_queue_enqueue', defined at:
File "train.py", line 322, in
main()
File "train.py", line 318, in main
train(config.model_dir, config)
File "train.py", line 136, in train
data_type='train', batch_size=hparams.batch_size)
File "/root/tts/multi-speaker-tacotron-tensorflow/datasets/datafeeder.py", line 160, in init
self._enqueue_op = queue.enqueue(self._placeholders)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/data_flow_ops.py", line 321, in enqueue
self._queue_ref, vals, name=scope)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/gen_data_flow_ops.py", line 1587, in _queue_enqueue_v2
name=name)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1204, in init
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
CancelledError (see above for traceback): Enqueue operation was cancelled
[[Node: datafeeder/input_queue_enqueue = QueueEnqueueV2[Tcomponents=[DT_INT32, DT_INT32, DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](datafeeder/input_queue, _arg_datafeeder/inputs_0_1, _arg_datafeeder/input_lengths_0_0, _arg_datafeeder/loss_coeff_0_3, _arg_datafeeder/mel_targets_0_4, _arg_datafeeder/linear_targets_0_2)]]
tensorflow.python.framework.errors_impl.CancelledError: Enqueue operation was cancelled
[[Node: datafeeder/input_queue_1_enqueue = QueueEnqueueV2[Tcomponents=[DT_INT32, DT_INT32, DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](datafeeder/input_queue_1, _arg_datafeeder/inputs_1_0_1, _arg_datafeeder/input_lengths_1_0_0, _arg_datafeeder/loss_coeff_1_0_3, _arg_datafeeder/mel_targets_1_0_4, _arg_datafeeder/linear_targets_1_0_2)]]
Caused by op 'datafeeder/input_queue_1_enqueue', defined at:
File "train.py", line 322, in
main()
File "train.py", line 318, in main
train(config.model_dir, config)
File "train.py", line 139, in train
data_type='test', batch_size=config.num_test)
File "/root/tts/multi-speaker-tacotron-tensorflow/datasets/datafeeder.py", line 160, in init
self._enqueue_op = queue.enqueue(self._placeholders)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/data_flow_ops.py", line 321, in enqueue
self._queue_ref, vals, name=scope)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/gen_data_flow_ops.py", line 1587, in _queue_enqueue_v2
name=name)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1204, in init
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
CancelledError (see above for traceback): Enqueue operation was cancelled
[[Node: datafeeder/input_queue_1_enqueue = QueueEnqueueV2[Tcomponents=[DT_INT32, DT_INT32, DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](datafeeder/input_queue_1, _arg_datafeeder/inputs_1_0_1, _arg_datafeeder/input_lengths_1_0_0, _arg_datafeeder/loss_coeff_1_0_3, _arg_datafeeder/mel_targets_1_0_4, _arg_datafeeder/linear_targets_1_0_2)]]
위와 같이 뜹니다.. 어떻게 해야 하나요?
The text was updated successfully, but these errors were encountered: