µö·¯´× À½¼ºÇÕ¼º Áú¹®µå¸³´Ï´Ù.
https://github.com/carpedm20/multi-speaker-tacotron-tensorflow (419)
안녕하세요! 대학교 졸업을 앞두고 있는 4학년 학생입니다.
제가 지금 졸업작품으로 깃허브에 있는 것을 따라하고 있는데요. 알 수 없는 오류가 자꾸 떠서 질문드립니다. 구글링을 해도 모르겠습니다ㅠ
개발환경은 아나콘다 가상환경을 사용하고 있고 개발환경 이름이 stt입니다.
개발 툴은 파이참을 사용하고 있습니다.
아! 링크를 걸겠습니다.
https://github.com/carpedm20/multi-speaker-tacotron-tensorflow
링크와 같이 텐서플로우도 1.3.0, 파이썬도 3.6 버전 사용하고 있습니다.
여기서
python train.py --data_path=datasets/son
이 명령어를 진행하는데 있어서 정말 엄청난 오류가 뜹니다. 같은 오류가 계속 나는 것 같아서 Ctrl+C로 멈췄는데 이런 오류가 나옵니다.
python3 train.py --data_path=datasets/son
으로 깃허브엔 명시되어있지만 3만 지우고 이렇게 사용하고 있습니다.
명령어 눈뽕 죄송합니다ㅠ
(stt) C:\Users\COM\PycharmProjects\stt>python train.py --data_path=datasets/son
[*] MODEL dir: logs\son_2021-10-22_21-31-31
[*] PARAM path: logs\son_2021-10-22_21-31-31\params.json
['datasets/son']
========================================
[!] Detect non-krbook dataset. May need to set sampling rate from 22050 to 20000
========================================
==================================================
==================================================
[*] Checkpoint path: logs\son_2021-10-22_21-31-31\model.ckpt
[*] Loading training data from: ['datasets/son\\data']
[*] Using model: logs\son_2021-10-22_21-31-31
Hyperparameters:
adam_beta1: 0.9
adam_beta2: 0.999
attention_size: 128
attention_state_size: 256
attention_type: bah_mon
batch_size: 32
cleaners: korean_cleaners
dec_layer_num: 2
dec_prenet_sizes: [256, 128]
dec_rnn_size: 256
decay_learning_rate_mode: 0
dropout_prob: 0.5
embedding_size: 256
enc_bank_channel_size: 128
enc_bank_size: 16
enc_highway_depth: 4
enc_maxpool_width: 2
enc_prenet_sizes: [256, 128]
enc_proj_sizes: [128, 128]
enc_proj_width: 3
enc_rnn_size: 128
frame_length_ms: 50
frame_shift_ms: 12.5
griffin_lim_iters: 60
ignore_recognition_level: 0
initial_data_greedy: True
initial_learning_rate: 0.001
initial_phase_step: 8000
main_data: ['']
main_data_greedy_factor: 0
max_iters: 200
min_iters: 30
min_level_db: -100
min_tokens: 50
model_type: single
num_freq: 1025
num_mels: 80
post_bank_channel_size: 128
post_bank_size: 8
post_highway_depth: 4
post_maxpool_width: 2
post_proj_sizes: [256, 80]
post_proj_width: 3
post_rnn_size: 128
power: 1.5
preemphasis: 0.97
prioritize_loss: False
recognition_loss_coeff: 0.2
reduction_factor: 5
ref_level_db: 20
sample_rate: 22050
skip_inadequate: False
speaker_embedding_size: 16
use_fixed_test_inputs: False
filter_by_min_max_frame_batch: 0%| | 0/49601 [00:00
raceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
Traceback (most recent call last):
File "", line 1, in
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
with open(fname, "rb", encoding='UTF-8' ) as f:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
ValueError: binary mode doesn't take an encoding argument
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
run_name="__mp_main__")
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
Failed to import the site module
Failed to import the site module
Failed to import the site module
Traceback (most recent call last):
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 545, in
Failed to import the site module
Traceback (most recent call last):
File "", line 88, in _path_is_mode_type
main()
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 532, in main
Traceback (most recent call last):
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 545, in
Traceback (most recent call last):
File "", line 88, in _path_is_mode_type
File "", line 82, in _path_stat
known_paths = addsitepackages(known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 320, in addsitepackages
main()
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 532, in main
File "", line 82, in _path_stat
FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다: 'C:\\Users\\COM\\anaconda3\\envs\\stt\\lib\\site-packages\\google\\cloud\\proto\\logging\\__init__.py
'
FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다: 'C:\\Users\\COM\\anaconda3\\envs\\stt\\lib\\site-packages\\google\\cloud\\gapic\\__init__.pyw'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
addsitedir(sitedir, known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 207, in addsitedir
addpackage(sitedir, name, known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 168, in addpackage
exec(line)
File "", line 1, in
File "", line 576, in module_from_spec
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 545, in
main()
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 532, in main
known_paths = addsitepackages(known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 320, in addsitepackages
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 545, in
known_paths = addsitepackages(known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 320, in addsitepackages
main()
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 532, in main
addsitedir(sitedir, known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 207, in addsitedir
addsitedir(sitedir, known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 207, in addsitedir
addpackage(sitedir, name, known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 168, in addpackage
exec(line)
known_paths = addsitepackages(known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 320, in addsitepackages
File "", line 1, in
addpackage(sitedir, name, known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 168, in addpackage
File "", line 1157, in find_spec
exec(line)
File "", line 1, in
addsitedir(sitedir, known_paths)
KeyboardInterrupt
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 207, in addsitedir
File "", line 1129, in _get_spec
addpackage(sitedir, name, known_paths)
File "C:\Users\COM\anaconda3\envs\stt\lib\site.py", line 168, in addpackage
File "", line 1260, in find_spec
File "", line 96, in _path_isfile
exec(line)
File "", line 1, in
File "", line 1157, in find_spec
File "", line 88, in _path_is_mode_type
File "", line 1129, in _get_spec
File "", line 1260, in find_spec
File "", line 96, in _path_isfile
File "", line 88, in _path_is_mode_type
KeyboardInterrupt
KeyboardInterrupt
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
ValueError: binary mode doesn't take an encoding argument
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C:\Users\COM\anaconda3\envs\stt\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb", encoding='UTF-8' ) as f:
ValueError: binary mode doesn't take an encoding argument
forrtl: error (200): program aborting due to control-C event
Image PC Routine Line Source
libifcoremd.dll 00007FFDFFED3B58 Unknown Unknown Unknown
KERNELBASE.dll 00007FFE3DBBBA33 Unknown Unknown Unknown
KERNEL32.DLL 00007FFE3E7E7034 Unknown Unknown Unknown
ntdll.dll 00007FFE40462651 Unknown Unknown Unknown
(stt) C:\Users\COM\PycharmProjects\stt>Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 99, in spawn_main
new_handle = reduction.steal_handle(parent_pid, pipe_handle)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\reduction.py", line 82, in steal_handle
_winapi.PROCESS_DUP_HANDLE, False, source_pid)
OSError: [WinError 87] 매개 변수가 틀립니다
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 99, in spawn_main
new_handle = reduction.steal_handle(parent_pid, pipe_handle)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\reduction.py", line 82, in steal_handle
_winapi.PROCESS_DUP_HANDLE, False, source_pid)
OSError: [WinError 87] 매개 변수가 틀립니다
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\spawn.py", line 99, in spawn_main
new_handle = reduction.steal_handle(parent_pid, pipe_handle)
File "C:\Users\COM\anaconda3\envs\stt\lib\multiprocessing\reduction.py", line 82, in steal_handle
_winapi.PROCESS_DUP_HANDLE, False, source_pid)
OSError: [WinError 87] 매개 변수가 틀립니다.
중요한건 FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다: 'C:\\Users\\COM\\anaconda3\\envs\\stt\\lib\\site-packages\\google\\cloud\\gapic\\__init__.pyw' 이거랑 매개변수가 틀린 것 같은데...
또 이전에 제가 들여쓰기 오류랑 디코딩 오류로 encoding="utf-8" 을 삽입했는데 이게 뜨는거보니까 이게 문제인 것 같기도하고... 전혀 모르겠습니다.
관리자 권한으로 실행해도 같은 오류가 뜨네요... 혹시 아는 분 계신가요?
긴 글 읽어주셔서 감사합니다. 죄송합니다.
python3 ¸¦ ¾²´Â ÀÌÀ¯°¡ Àִ°¡¿ä? ÇöÀç activation µÈ ȯ°æÀÇ ÀÎÅÍÇÁ¸®Å͸¦ ¾²°í ÀÖ´ÂÁö È®ÀÎÇغ¸¼¼¿ä
pip3 install -r requirements.txt
python -c "import nltk; nltk.download('punkt')"
Á¦ »ý°¢¿£ °ü·ÃµÈ Äڵ尡 ¾Æ´Ï¶ó°í »ý°¢ÇÏ°í ¹«½ÃÇßÀ» °Í °°¾Æ °¡Àå »ó´Ü¿¡ ¼³¸í¿¡ ÀÖ´Â °ÍºÎÅÍ ½ÇÇàÇغ¸¼¼¿ä.
ÄÄÆÄÀÏ ¿¡·¯»óÀ¸·Ð ±¸±Û API°¡ ´©¶ôµÈ °Í°ú µû¸¥ ¹®Á¦µµ ´õ ÀÖ´Â°Í °°Àºµ¥ ´Ù¸¥ ¹®Á¦Á¡Àº Àß ¸ð¸£°Ú³×¿ä.