Utf-8 characters for non English words.
Closed this issue · 1 comments
I replaced the open commands with codecs.open(txt_file, 'r', 'utf-8') to support non English characters.
Everything works fine. But if I use non English characters in prompts.txt when using test.py I get an error :
"xxxx" is not a valid scope name
If I remove the non English characters, script runs without errors, but no speech is generated only noise.
Only except tf.errors.OutOfRangeError: is raised which I think is intentional?
c:\tf_jenkins\home\workspace\release-win\m\windows-gpu\py\35\tensorflow\core\framework\op_kernel.cc:1158]
Out of range: FIFOQueue '_1_batch/fifo_queue' is closed and has insufficient elements (requested 32, current size 0)
[[Node: batch = QueueDequeueUpToV2[component_types=[DT_INT32, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](batch/fifo_queue, batch/n)]]
An empty line in prompts.txt caused the issue. Removing it solves it.