Hiroshiba / become-yukarin

Convert your voice to favorite voice
https://hiroshiba.github.io/blog/became-yuduki-yukari-with-deep-learning-power/
MIT License
576 stars 88 forks source link

-o1のファイル名もしくはディレクトリ名の指定ミス? #8

Closed BURI55 closed 6 years ago

BURI55 commented 6 years ago

C:\become-yukarin\become-yukarin>python scripts\extract_acoustic_feature.py -i1 ../My_ATR503/.wav -i2 ../Sasara_ATR503/.wav -o1 ../out_MyATR503/.npy -o2 ../out_SasaraATR503/.npy C:\Anaconda3\lib\site-packages\h5py__init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters ['class', 'contains', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref__', '_get_args', '_get_kwargs', 'alpha', 'disable_alignment', 'enable_overwrite', 'f0_ceil1', 'f0_ceil2', 'f0_estimating_method', 'f0_floor1', 'f0_floor2', 'frame_period', 'ignore_feature', 'input1_directory', 'input2_directory', 'order', 'output1_directory', 'output2_directory', 'pad_second', 'pre_converter1_config', 'pre_converter1_model', 'sample_rate', 'top_db'] Traceback (most recent call last): File "C:\Anaconda3\lib\pathlib.py", line 1226, in mkdir self._accessor.mkdir(self, mode) File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped return strfunc(str(pathobj), args) OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\.npy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "scripts\extract_acoustic_feature.py", line 208, in main() File "scripts\extract_acoustic_feature.py", line 197, in main arguments.output1_directory.mkdir(exist_ok=True) File "C:\Anaconda3\lib\pathlib.py", line 1235, in mkdir if not exist_ok or not self.is_dir(): File "C:\Anaconda3\lib\pathlib.py", line 1326, in is_dir return S_ISDIR(self.stat().st_mode) File "C:\Anaconda3\lib\pathlib.py", line 1136, in stat return self._accessor.stat(self) File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped return strfunc(str(pathobj), args) OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\*.npy' C:\become-yukarin\become-yukarin>python scripts\extract_acoustic_feature.py -i1 ../My_ATR503/.wav -i2 ../Sasara_ATR503/.wav -o1 ../out_MyATR503/.npy -o2 ../out_SasaraATR503/.npy C:\Anaconda3\lib\site-packages\h5py__init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters ['class', 'contains', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref__', '_get_args', '_get_kwargs', 'alpha', 'disable_alignment', 'enable_overwrite', 'f0_ceil1', 'f0_ceil2', 'f0_estimating_method', 'f0_floor1', 'f0_floor2', 'frame_period', 'ignore_feature', 'input1_directory', 'input2_directory', 'order', 'output1_directory', 'output2_directory', 'pad_second', 'pre_converter1_config', 'pre_converter1_model', 'sample_rate', 'top_db'] Traceback (most recent call last): File "C:\Anaconda3\lib\pathlib.py", line 1226, in mkdir self._accessor.mkdir(self, mode) File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped return strfunc(str(pathobj), args) OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\*.npy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "scripts\extract_acoustic_feature.py", line 208, in main() File "scripts\extract_acoustic_feature.py", line 197, in main arguments.output1_directory.mkdir(exist_ok=True) File "C:\Anaconda3\lib\pathlib.py", line 1235, in mkdir if not exist_ok or not self.is_dir(): File "C:\Anaconda3\lib\pathlib.py", line 1326, in is_dir return S_ISDIR(self.stat().st_mode) File "C:\Anaconda3\lib\pathlib.py", line 1136, in stat return self._accessor.stat(self) File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped return strfunc(str(pathobj), args) OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\.npy'

-o1 ../out/MyATR503/*.npyが間違っていますか?

Hiroshiba commented 6 years ago

出力パスはディレクトリを想定しています。ディレクトリのパスを指定してください。 あと、重要そうなエラーメッセージのみを書くようにしていただけると、後から見直しやすいので助かります。