質問編集履歴

12

書式の改善

2018/03/10 23:34

投稿

BURI55
BURI55

スコア25

test CHANGED
File without changes
test CHANGED
@@ -166,50 +166,42 @@
166
166
 
167
167
  ```
168
168
 
169
+  元のソースコード
170
+
171
+ ---
172
+
173
+
174
+
175
+ ```cmd
176
+
177
+ C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503 -o1 \out_MyATR503 -o2 \out_SasaraATR503
178
+
179
+ ```
180
+
181
+
182
+
183
+  試したこと
184
+
185
+ ---
186
+
187
+ extract_acoustic_feature.pyに引数で学習データの入力を指定した。
188
+
189
+ 193行lobになっていたのでglobに修正
190
+
191
+ 引数を4つにした。
192
+
193
+ *.wavを追加
194
+
195
+
196
+
197
+  補足情報(FW/ツールのバージョンなど)
198
+
199
+ ---
200
+
201
+ Python3.6(Anaconda)
202
+
169
203
  ## ファイル構造
170
204
 
171
- ```
172
-
173
-  元のソースコード
174
-
175
- ---
176
-
177
-
178
-
179
- ```cmd
180
-
181
- C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503 -o1 \out_MyATR503 -o2 \out_SasaraATR503
182
-
183
- ```
184
-
185
-
186
-
187
-  試したこと
188
-
189
- ---
190
-
191
- extract_acoustic_feature.pyに引数で学習データの入力を指定した。
192
-
193
- 193行lobになっていたのでglobに修正
194
-
195
- 引数を4つにした。
196
-
197
- *.wavを追加
198
-
199
-
200
-
201
-  補足情報(FW/ツールのバージョンなど)
202
-
203
- ---
204
-
205
- Python3.6(Anaconda)
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
205
  ├── become_yukarin # このディレクトリは外から使えることを想定
214
206
 
215
207
  │   ├── __init__.py

11

引用位置を変更

2018/03/10 23:34

投稿

BURI55
BURI55

スコア25

test CHANGED
File without changes
test CHANGED
@@ -14,10 +14,162 @@
14
14
 
15
15
  ```cmd
16
16
 
17
-
17
+ C:\become-yukarin\become-yukarin>python scripts\extract_acoustic_feature.py -i1 ../My_ATR503/*.wav -i2 ../Sasara_ATR503/*.wav -o1 ../out_MyATR503/*.wav -o2 ../out_SasaraATR503/*.wav
18
+
19
+ 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`.
20
+
21
+ from ._conv import register_converters as _register_converters
22
+
23
+ ['__class__',
24
+
25
+ '__contains__',
26
+
27
+ '__delattr__',
28
+
29
+ '__dict__',
30
+
31
+ '__dir__',
32
+
33
+ '__doc__',
34
+
35
+ '__eq__',
36
+
37
+ '__format__',
38
+
39
+ '__ge__',
40
+
41
+ '__getattribute__',
42
+
43
+ '__gt__',
44
+
45
+ '__hash__',
46
+
47
+ '__init__',
48
+
49
+ '__init_subclass__',
50
+
51
+ '__le__',
52
+
53
+ '__lt__',
54
+
55
+ '__module__',
56
+
57
+ '__ne__',
58
+
59
+ '__new__',
60
+
61
+ '__reduce__',
62
+
63
+ '__reduce_ex__',
64
+
65
+ '__repr__',
66
+
67
+ '__setattr__',
68
+
69
+ '__sizeof__',
70
+
71
+ '__str__',
72
+
73
+ '__subclasshook__',
74
+
75
+ '__weakref__',
76
+
77
+ '_get_args',
78
+
79
+ '_get_kwargs',
80
+
81
+ 'alpha',
82
+
83
+ 'disable_alignment',
84
+
85
+ 'enable_overwrite',
86
+
87
+ 'f0_ceil1',
88
+
89
+ 'f0_ceil2',
90
+
91
+ 'f0_estimating_method',
92
+
93
+ 'f0_floor1',
94
+
95
+ 'f0_floor2',
96
+
97
+ 'frame_period',
98
+
99
+ 'ignore_feature',
100
+
101
+ 'input1_directory',
102
+
103
+ 'input2_directory',
104
+
105
+ 'order',
106
+
107
+ 'output1_directory',
108
+
109
+ 'output2_directory',
110
+
111
+ 'pad_second',
112
+
113
+ 'pre_converter1_config',
114
+
115
+ 'pre_converter1_model',
116
+
117
+ 'sample_rate',
118
+
119
+ 'top_db']
120
+
121
+ Traceback (most recent call last):
122
+
123
+ File "C:\Anaconda3\lib\pathlib.py", line 1226, in mkdir
124
+
125
+ self._accessor.mkdir(self, mode)
126
+
127
+ File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped
128
+
129
+ return strfunc(str(pathobj), *args)
130
+
131
+ OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\*.wav'
132
+
133
+
134
+
135
+ During handling of the above exception, another exception occurred:
136
+
137
+
138
+
139
+ Traceback (most recent call last):
140
+
141
+ File "scripts\extract_acoustic_feature.py", line 208, in <module>
142
+
143
+ main()
144
+
145
+ File "scripts\extract_acoustic_feature.py", line 197, in main
146
+
147
+ arguments.output1_directory.mkdir(exist_ok=True)
148
+
149
+ File "C:\Anaconda3\lib\pathlib.py", line 1235, in mkdir
150
+
151
+ if not exist_ok or not self.is_dir():
152
+
153
+ File "C:\Anaconda3\lib\pathlib.py", line 1326, in is_dir
154
+
155
+ return S_ISDIR(self.stat().st_mode)
156
+
157
+ File "C:\Anaconda3\lib\pathlib.py", line 1136, in stat
158
+
159
+ return self._accessor.stat(self)
160
+
161
+ File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped
162
+
163
+ return strfunc(str(pathobj), *args)
164
+
165
+ OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\*.wav'
18
166
 
19
167
  ```
20
168
 
169
+ ## ファイル構造
170
+
171
+ ```
172
+
21
173
   元のソースコード
22
174
 
23
175
  ---
@@ -54,157 +206,7 @@
54
206
 
55
207
 
56
208
 
57
- C:\become-yukarin\become-yukarin>python scripts\extract_acoustic_feature.py -i1 ../My_ATR503/*.wav -i2 ../Sasara_ATR503/*.wav -o1 ../out_MyATR503/*.wav -o2 ../out_SasaraATR503/*.wav
58
-
59
- 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`.
60
-
61
- from ._conv import register_converters as _register_converters
62
-
63
- ['__class__',
64
-
65
- '__contains__',
66
-
67
- '__delattr__',
68
-
69
- '__dict__',
70
-
71
- '__dir__',
72
-
73
- '__doc__',
74
-
75
- '__eq__',
76
-
77
- '__format__',
78
-
79
- '__ge__',
80
-
81
- '__getattribute__',
82
-
83
- '__gt__',
84
-
85
- '__hash__',
86
-
87
- '__init__',
88
-
89
- '__init_subclass__',
90
-
91
- '__le__',
92
-
93
- '__lt__',
94
-
95
- '__module__',
96
-
97
- '__ne__',
98
-
99
- '__new__',
100
-
101
- '__reduce__',
102
-
103
- '__reduce_ex__',
104
-
105
- '__repr__',
106
-
107
- '__setattr__',
108
-
109
- '__sizeof__',
110
-
111
- '__str__',
112
-
113
- '__subclasshook__',
114
-
115
- '__weakref__',
116
-
117
- '_get_args',
118
-
119
- '_get_kwargs',
120
-
121
- 'alpha',
122
-
123
- 'disable_alignment',
124
-
125
- 'enable_overwrite',
126
-
127
- 'f0_ceil1',
128
-
129
- 'f0_ceil2',
130
-
131
- 'f0_estimating_method',
132
-
133
- 'f0_floor1',
134
-
135
- 'f0_floor2',
136
-
137
- 'frame_period',
138
-
139
- 'ignore_feature',
140
-
141
- 'input1_directory',
142
-
143
- 'input2_directory',
144
-
145
- 'order',
146
-
147
- 'output1_directory',
148
-
149
- 'output2_directory',
150
-
151
- 'pad_second',
152
-
153
- 'pre_converter1_config',
154
-
155
- 'pre_converter1_model',
156
-
157
- 'sample_rate',
158
-
159
- 'top_db']
160
-
161
- Traceback (most recent call last):
162
-
163
- File "C:\Anaconda3\lib\pathlib.py", line 1226, in mkdir
164
-
165
- self._accessor.mkdir(self, mode)
166
-
167
- File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped
168
-
169
- return strfunc(str(pathobj), *args)
170
-
171
- OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\*.wav'
172
-
173
-
174
-
175
- During handling of the above exception, another exception occurred:
176
-
177
-
178
-
179
- Traceback (most recent call last):
180
-
181
- File "scripts\extract_acoustic_feature.py", line 208, in <module>
182
-
183
- main()
184
-
185
- File "scripts\extract_acoustic_feature.py", line 197, in main
186
-
187
- arguments.output1_directory.mkdir(exist_ok=True)
188
-
189
- File "C:\Anaconda3\lib\pathlib.py", line 1235, in mkdir
190
-
191
- if not exist_ok or not self.is_dir():
192
-
193
- File "C:\Anaconda3\lib\pathlib.py", line 1326, in is_dir
194
-
195
- return S_ISDIR(self.stat().st_mode)
196
-
197
- File "C:\Anaconda3\lib\pathlib.py", line 1136, in stat
198
-
199
- return self._accessor.stat(self)
200
-
201
- File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped
202
-
203
- return strfunc(str(pathobj), *args)
204
-
205
- OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\*.wav'
206
-
207
- ## ファイル構造
209
+
208
210
 
209
211
 
210
212
 

10

タイトル変更

2018/03/10 23:32

投稿

BURI55
BURI55

スコア25

test CHANGED
@@ -1 +1 @@
1
- Win+Pythonで機械学習で声質変換するシステムでunrecognized arguments Errorで困っています。
1
+ Win+Pythonで機械学習で声質変換するシステムでErrorで困っています。
test CHANGED
File without changes

9

エラーの追記

2018/03/10 23:30

投稿

BURI55
BURI55

スコア25

test CHANGED
File without changes
test CHANGED
@@ -14,87 +14,195 @@
14
14
 
15
15
  ```cmd
16
16
 
17
+
18
+
19
+ ```
20
+
21
+  元のソースコード
22
+
23
+ ---
24
+
25
+
26
+
27
+ ```cmd
28
+
17
- C:\become-yukarin\become-yukarin>python scripts\extract_acoustic_feature.py -i1 My_ATR503 *.wav -i2 Sasara_ATR503 *.wav -o1 out_MyATR503 *.wav -o2 out_SasaraATR503 *.wav
29
+ C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503 -o1 \out_MyATR503 -o2 \out_SasaraATR503
30
+
31
+ ```
32
+
33
+
34
+
35
+  試したこと
36
+
37
+ ---
38
+
39
+ extract_acoustic_feature.pyに引数で学習データの入力を指定した。
40
+
41
+ 193行lobになっていたのでglobに修正
42
+
43
+ 引数を4つにした。
44
+
45
+ *.wavを追加
46
+
47
+
48
+
49
+  補足情報(FW/ツールのバージョンなど)
50
+
51
+ ---
52
+
53
+ Python3.6(Anaconda)
54
+
55
+
56
+
57
+ C:\become-yukarin\become-yukarin>python scripts\extract_acoustic_feature.py -i1 ../My_ATR503/*.wav -i2 ../Sasara_ATR503/*.wav -o1 ../out_MyATR503/*.wav -o2 ../out_SasaraATR503/*.wav
18
58
 
19
59
  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`.
20
60
 
21
61
  from ._conv import register_converters as _register_converters
22
62
 
23
- usage: extract_acoustic_feature.py [-h] [--input1_directory INPUT1_DIRECTORY]
24
-
25
- [--input2_directory INPUT2_DIRECTORY]
26
-
27
- [--output1_directory OUTPUT1_DIRECTORY]
28
-
29
- [--output2_directory OUTPUT2_DIRECTORY]
30
-
31
- [--pre_converter1_config PRE_CONVERTER1_CONFIG]
32
-
33
- [--pre_converter1_model PRE_CONVERTER1_MODEL]
34
-
35
- [--sample_rate SAMPLE_RATE]
36
-
37
- [--top_db TOP_DB] [--pad_second PAD_SECOND]
38
-
39
- [--frame_period FRAME_PERIOD]
40
-
41
- [--order ORDER] [--alpha ALPHA]
42
-
43
- [--f0_estimating_method F0_ESTIMATING_METHOD]
44
-
45
- [--f0_floor1 F0_FLOOR1]
46
-
47
- [--f0_ceil1 F0_CEIL1]
48
-
49
- [--f0_floor2 F0_FLOOR2]
50
-
51
- [--f0_ceil2 F0_CEIL2]
52
-
53
- [--ignore_feature IGNORE_FEATURE [IGNORE_FEATURE ...]]
54
-
55
- [--disable_alignment] [--enable_overwrite]
56
-
57
- extract_acoustic_feature.py: error: unrecognized arguments: *.wav *.wav *.wav *.wav
58
-
59
- ```
60
-
61
-  元のソースコード
62
-
63
- ---
64
-
65
-
66
-
67
- ```cmd
68
-
69
- C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503 -o1 \out_MyATR503 -o2 \out_SasaraATR503
70
-
71
- ```
72
-
73
-
74
-
75
-  試したこと
76
-
77
- ---
78
-
79
- extract_acoustic_feature.pyに引数で学習データの入力を指定した。
80
-
81
- 193行lobになっていたのでglobに修正
82
-
83
- 引数を4つにした。
84
-
85
- *.wavを追加
86
-
87
-
88
-
89
-  補足情報(FW/ツールのバージョンなど)
90
-
91
- ---
92
-
93
- Python3.6(Anaconda)
94
-
95
-
96
-
97
-
63
+ ['__class__',
64
+
65
+ '__contains__',
66
+
67
+ '__delattr__',
68
+
69
+ '__dict__',
70
+
71
+ '__dir__',
72
+
73
+ '__doc__',
74
+
75
+ '__eq__',
76
+
77
+ '__format__',
78
+
79
+ '__ge__',
80
+
81
+ '__getattribute__',
82
+
83
+ '__gt__',
84
+
85
+ '__hash__',
86
+
87
+ '__init__',
88
+
89
+ '__init_subclass__',
90
+
91
+ '__le__',
92
+
93
+ '__lt__',
94
+
95
+ '__module__',
96
+
97
+ '__ne__',
98
+
99
+ '__new__',
100
+
101
+ '__reduce__',
102
+
103
+ '__reduce_ex__',
104
+
105
+ '__repr__',
106
+
107
+ '__setattr__',
108
+
109
+ '__sizeof__',
110
+
111
+ '__str__',
112
+
113
+ '__subclasshook__',
114
+
115
+ '__weakref__',
116
+
117
+ '_get_args',
118
+
119
+ '_get_kwargs',
120
+
121
+ 'alpha',
122
+
123
+ 'disable_alignment',
124
+
125
+ 'enable_overwrite',
126
+
127
+ 'f0_ceil1',
128
+
129
+ 'f0_ceil2',
130
+
131
+ 'f0_estimating_method',
132
+
133
+ 'f0_floor1',
134
+
135
+ 'f0_floor2',
136
+
137
+ 'frame_period',
138
+
139
+ 'ignore_feature',
140
+
141
+ 'input1_directory',
142
+
143
+ 'input2_directory',
144
+
145
+ 'order',
146
+
147
+ 'output1_directory',
148
+
149
+ 'output2_directory',
150
+
151
+ 'pad_second',
152
+
153
+ 'pre_converter1_config',
154
+
155
+ 'pre_converter1_model',
156
+
157
+ 'sample_rate',
158
+
159
+ 'top_db']
160
+
161
+ Traceback (most recent call last):
162
+
163
+ File "C:\Anaconda3\lib\pathlib.py", line 1226, in mkdir
164
+
165
+ self._accessor.mkdir(self, mode)
166
+
167
+ File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped
168
+
169
+ return strfunc(str(pathobj), *args)
170
+
171
+ OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\*.wav'
172
+
173
+
174
+
175
+ During handling of the above exception, another exception occurred:
176
+
177
+
178
+
179
+ Traceback (most recent call last):
180
+
181
+ File "scripts\extract_acoustic_feature.py", line 208, in <module>
182
+
183
+ main()
184
+
185
+ File "scripts\extract_acoustic_feature.py", line 197, in main
186
+
187
+ arguments.output1_directory.mkdir(exist_ok=True)
188
+
189
+ File "C:\Anaconda3\lib\pathlib.py", line 1235, in mkdir
190
+
191
+ if not exist_ok or not self.is_dir():
192
+
193
+ File "C:\Anaconda3\lib\pathlib.py", line 1326, in is_dir
194
+
195
+ return S_ISDIR(self.stat().st_mode)
196
+
197
+ File "C:\Anaconda3\lib\pathlib.py", line 1136, in stat
198
+
199
+ return self._accessor.stat(self)
200
+
201
+ File "C:\Anaconda3\lib\pathlib.py", line 387, in wrapped
202
+
203
+ return strfunc(str(pathobj), *args)
204
+
205
+ OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '..\out_MyATR503\*.wav'
98
206
 
99
207
  ## ファイル構造
100
208
 

8

追加情報

2018/03/10 23:29

投稿

BURI55
BURI55

スコア25

test CHANGED
@@ -1 +1 @@
1
- Win+Pythonで機械学習で声質変換するシステムでnumpyのRuntime Errorで困っています。
1
+ Win+Pythonで機械学習で声質変換するシステムでunrecognized arguments Errorで困っています。
test CHANGED
@@ -14,133 +14,51 @@
14
14
 
15
15
  ```cmd
16
16
 
17
- C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503 -o1 \out_MyATR503 -o2 \out_SasaraATR503
17
+ C:\become-yukarin\become-yukarin>python scripts\extract_acoustic_feature.py -i1 My_ATR503 *.wav -i2 Sasara_ATR503 *.wav -o1 out_MyATR503 *.wav -o2 out_SasaraATR503 *.wav
18
18
 
19
19
  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`.
20
20
 
21
21
  from ._conv import register_converters as _register_converters
22
22
 
23
- ['__class__',
23
+ usage: extract_acoustic_feature.py [-h] [--input1_directory INPUT1_DIRECTORY]
24
24
 
25
- '__contains__',
25
+ [--input2_directory INPUT2_DIRECTORY]
26
26
 
27
- '__delattr__',
27
+ [--output1_directory OUTPUT1_DIRECTORY]
28
28
 
29
- '__dict__',
29
+ [--output2_directory OUTPUT2_DIRECTORY]
30
30
 
31
- '__dir__',
31
+ [--pre_converter1_config PRE_CONVERTER1_CONFIG]
32
32
 
33
- '__doc__',
33
+ [--pre_converter1_model PRE_CONVERTER1_MODEL]
34
34
 
35
- '__eq__',
35
+ [--sample_rate SAMPLE_RATE]
36
36
 
37
- '__format__',
37
+ [--top_db TOP_DB] [--pad_second PAD_SECOND]
38
38
 
39
- '__ge__',
39
+ [--frame_period FRAME_PERIOD]
40
40
 
41
- '__getattribute__',
41
+ [--order ORDER] [--alpha ALPHA]
42
42
 
43
- '__gt__',
43
+ [--f0_estimating_method F0_ESTIMATING_METHOD]
44
44
 
45
- '__hash__',
45
+ [--f0_floor1 F0_FLOOR1]
46
46
 
47
- '__init__',
47
+ [--f0_ceil1 F0_CEIL1]
48
48
 
49
- '__init_subclass__',
49
+ [--f0_floor2 F0_FLOOR2]
50
50
 
51
- '__le__',
51
+ [--f0_ceil2 F0_CEIL2]
52
52
 
53
- '__lt__',
53
+ [--ignore_feature IGNORE_FEATURE [IGNORE_FEATURE ...]]
54
54
 
55
- '__module__',
55
+ [--disable_alignment] [--enable_overwrite]
56
56
 
57
- '__ne__',
58
-
59
- '__new__',
60
-
61
- '__reduce__',
62
-
63
- '__reduce_ex__',
64
-
65
- '__repr__',
66
-
67
- '__setattr__',
68
-
69
- '__sizeof__',
70
-
71
- '__str__',
72
-
73
- '__subclasshook__',
74
-
75
- '__weakref__',
76
-
77
- '_get_args',
78
-
79
- '_get_kwargs',
80
-
81
- 'alpha',
82
-
83
- 'disable_alignment',
84
-
85
- 'enable_overwrite',
86
-
87
- 'f0_ceil1',
88
-
89
- 'f0_ceil2',
90
-
91
- 'f0_estimating_method',
92
-
93
- 'f0_floor1',
94
-
95
- 'f0_floor2',
96
-
97
- 'frame_period',
98
-
99
- 'ignore_feature',
100
-
101
- 'input1_directory',
102
-
103
- 'input2_directory',
104
-
105
- 'order',
106
-
107
- 'output1_directory',
108
-
109
- 'output2_directory',
110
-
111
- 'pad_second',
112
-
113
- 'pre_converter1_config',
114
-
115
- 'pre_converter1_model',
116
-
117
- 'sample_rate',
118
-
119
- 'top_db']
120
-
121
- C:\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py:2957: RuntimeWarning: Mean of empty slice.
57
+ extract_acoustic_feature.py: error: unrecognized arguments: *.wav *.wav *.wav *.wav
122
-
123
- out=out, **kwargs)
124
-
125
- C:\Anaconda3\lib\site-packages\numpy\core\_methods.py:73: RuntimeWarning: invalid value encountered in true_divide
126
-
127
- ret, rcount, out=ret, casting='unsafe', subok=False)
128
-
129
- C:\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py:3194: RuntimeWarning: Degrees of freedom <= 0 for slice
130
-
131
- **kwargs)
132
-
133
- C:\Anaconda3\lib\site-packages\numpy\core\_methods.py:105: RuntimeWarning: invalid value encountered in true_divide
134
-
135
- arrmean, rcount, out=arrmean, casting='unsafe', subok=False)
136
-
137
- C:\Anaconda3\lib\site-packages\numpy\core\_methods.py:125: RuntimeWarning: invalid value encountered in true_divide
138
-
139
- ret, rcount, out=ret, casting='unsafe', subok=False)
140
58
 
141
59
  ```
142
60
 
143
- 該当のソースコード
61
+  元のソースコード
144
62
 
145
63
  ---
146
64
 
@@ -154,7 +72,7 @@
154
72
 
155
73
 
156
74
 
157
- 試したこと
75
+  試したこと
158
76
 
159
77
  ---
160
78
 
@@ -164,7 +82,11 @@
164
82
 
165
83
  引数を4つにした。
166
84
 
85
+ *.wavを追加
86
+
87
+
88
+
167
- 補足情報(FW/ツールのバージョンなど)
89
+  補足情報(FW/ツールのバージョンなど)
168
90
 
169
91
  ---
170
92
 
@@ -174,9 +96,9 @@
174
96
 
175
97
 
176
98
 
177
- ## ファイル構造 My_ATR503とSasara_ATR503を追加しました。
99
+ ## ファイル構造
178
100
 
179
- ```
101
+
180
102
 
181
103
  ├── become_yukarin # このディレクトリは外から使えることを想定
182
104
 

7

情報追加

2018/03/10 22:54

投稿

BURI55
BURI55

スコア25

test CHANGED
File without changes
test CHANGED
@@ -148,7 +148,7 @@
148
148
 
149
149
  ```cmd
150
150
 
151
- C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503
151
+ C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503 -o1 \out_MyATR503 -o2 \out_SasaraATR503
152
152
 
153
153
  ```
154
154
 

6

タイトル変更

2018/03/10 13:53

投稿

BURI55
BURI55

スコア25

test CHANGED
@@ -1 +1 @@
1
- Win+PythonでるシステムでnumpyのErrorで困っています。
1
+ Win+Pythonで機械学習で声質変換するシステムでnumpyのRuntime Errorで困っています。
test CHANGED
File without changes

5

タグ追加

2018/03/10 13:21

投稿

BURI55
BURI55

スコア25

test CHANGED
File without changes
test CHANGED
File without changes

4

実行結果追加

2018/03/10 11:44

投稿

BURI55
BURI55

スコア25

test CHANGED
@@ -1 +1 @@
1
- Win+PythonであるシステムでAttributeErrorで困っています。
1
+ Win+PythonであるシステムでnumpyのErrorで困っています。
test CHANGED
@@ -14,160 +14,170 @@
14
14
 
15
15
  ```cmd
16
16
 
17
+ C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503 -o1 \out_MyATR503 -o2 \out_SasaraATR503
18
+
19
+ 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`.
20
+
21
+ from ._conv import register_converters as _register_converters
22
+
23
+ ['__class__',
24
+
25
+ '__contains__',
26
+
27
+ '__delattr__',
28
+
29
+ '__dict__',
30
+
31
+ '__dir__',
32
+
33
+ '__doc__',
34
+
35
+ '__eq__',
36
+
37
+ '__format__',
38
+
39
+ '__ge__',
40
+
41
+ '__getattribute__',
42
+
43
+ '__gt__',
44
+
45
+ '__hash__',
46
+
47
+ '__init__',
48
+
49
+ '__init_subclass__',
50
+
51
+ '__le__',
52
+
53
+ '__lt__',
54
+
55
+ '__module__',
56
+
57
+ '__ne__',
58
+
59
+ '__new__',
60
+
61
+ '__reduce__',
62
+
63
+ '__reduce_ex__',
64
+
65
+ '__repr__',
66
+
67
+ '__setattr__',
68
+
69
+ '__sizeof__',
70
+
71
+ '__str__',
72
+
73
+ '__subclasshook__',
74
+
75
+ '__weakref__',
76
+
77
+ '_get_args',
78
+
79
+ '_get_kwargs',
80
+
81
+ 'alpha',
82
+
83
+ 'disable_alignment',
84
+
85
+ 'enable_overwrite',
86
+
87
+ 'f0_ceil1',
88
+
89
+ 'f0_ceil2',
90
+
91
+ 'f0_estimating_method',
92
+
93
+ 'f0_floor1',
94
+
95
+ 'f0_floor2',
96
+
97
+ 'frame_period',
98
+
99
+ 'ignore_feature',
100
+
101
+ 'input1_directory',
102
+
103
+ 'input2_directory',
104
+
105
+ 'order',
106
+
107
+ 'output1_directory',
108
+
109
+ 'output2_directory',
110
+
111
+ 'pad_second',
112
+
113
+ 'pre_converter1_config',
114
+
115
+ 'pre_converter1_model',
116
+
117
+ 'sample_rate',
118
+
119
+ 'top_db']
120
+
121
+ C:\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py:2957: RuntimeWarning: Mean of empty slice.
122
+
123
+ out=out, **kwargs)
124
+
125
+ C:\Anaconda3\lib\site-packages\numpy\core\_methods.py:73: RuntimeWarning: invalid value encountered in true_divide
126
+
127
+ ret, rcount, out=ret, casting='unsafe', subok=False)
128
+
129
+ C:\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py:3194: RuntimeWarning: Degrees of freedom <= 0 for slice
130
+
131
+ **kwargs)
132
+
133
+ C:\Anaconda3\lib\site-packages\numpy\core\_methods.py:105: RuntimeWarning: invalid value encountered in true_divide
134
+
135
+ arrmean, rcount, out=arrmean, casting='unsafe', subok=False)
136
+
137
+ C:\Anaconda3\lib\site-packages\numpy\core\_methods.py:125: RuntimeWarning: invalid value encountered in true_divide
138
+
139
+ ret, rcount, out=ret, casting='unsafe', subok=False)
140
+
141
+ ```
142
+
143
+ 該当のソースコード
144
+
145
+ ---
146
+
147
+
148
+
149
+ ```cmd
150
+
17
151
  C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503
18
152
 
19
- 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`.
20
-
21
- from ._conv import register_converters as _register_converters
22
-
23
- ['__class__',
24
-
25
- '__contains__',
26
-
27
- '__delattr__',
28
-
29
- '__dict__',
30
-
31
- '__dir__',
32
-
33
- '__doc__',
34
-
35
- '__eq__',
36
-
37
- '__format__',
38
-
39
- '__ge__',
40
-
41
- '__getattribute__',
42
-
43
- '__gt__',
44
-
45
- '__hash__',
46
-
47
- '__init__',
48
-
49
- '__init_subclass__',
50
-
51
- '__le__',
52
-
53
- '__lt__',
54
-
55
- '__module__',
56
-
57
- '__ne__',
58
-
59
- '__new__',
60
-
61
- '__reduce__',
62
-
63
- '__reduce_ex__',
64
-
65
- '__repr__',
66
-
67
- '__setattr__',
68
-
69
- '__sizeof__',
70
-
71
- '__str__',
72
-
73
- '__subclasshook__',
74
-
75
- '__weakref__',
76
-
77
- '_get_args',
78
-
79
- '_get_kwargs',
80
-
81
- 'alpha',
82
-
83
- 'disable_alignment',
84
-
85
- 'enable_overwrite',
86
-
87
- 'f0_ceil1',
88
-
89
- 'f0_ceil2',
90
-
91
- 'f0_estimating_method',
92
-
93
- 'f0_floor1',
94
-
95
- 'f0_floor2',
96
-
97
- 'frame_period',
98
-
99
- 'ignore_feature',
100
-
101
- 'input1_directory',
102
-
103
- 'input2_directory',
104
-
105
- 'order',
106
-
107
- 'output1_directory',
108
-
109
- 'output2_directory',
110
-
111
- 'pad_second',
112
-
113
- 'pre_converter1_config',
114
-
115
- 'pre_converter1_model',
116
-
117
- 'sample_rate',
118
-
119
- 'top_db']
120
-
121
- Traceback (most recent call last):
122
-
123
- File "scripts/extract_acoustic_feature.py", line 208, in <module>
124
-
125
- main()
126
-
127
- File "scripts/extract_acoustic_feature.py", line 197, in main
128
-
129
- arguments.output1_directory.mkdir(exist_ok=True)
130
-
131
- AttributeError: 'NoneType' object has no attribute 'mkdir'
153
+ ```
154
+
155
+
156
+
157
+ 試したこと
158
+
159
+ ---
160
+
161
+ extract_acoustic_feature.pyに引数で学習データの入力を指定した。
162
+
163
+ 193行lobになっていたのでglobに修正
164
+
165
+ 引数を4つにした。
166
+
167
+ 補足情報(FW/ツールのバージョンなど)
168
+
169
+ ---
170
+
171
+ Python3.6(Anaconda)
172
+
173
+
174
+
175
+
176
+
177
+ ## ファイル構造 My_ATR503とSasara_ATR503を追加しました。
132
178
 
133
179
  ```
134
180
 
135
- 該当のソースコード
136
-
137
- ---
138
-
139
-
140
-
141
- ```cmd
142
-
143
- C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503
144
-
145
- ```
146
-
147
-
148
-
149
- 試したこと
150
-
151
- ---
152
-
153
- extract_acoustic_feature.pyに引数で学習データの入力を指定した。
154
-
155
- 193行lobになっていたのでglobに修正
156
-
157
- 補足情報(FW/ツールのバージョンなど)
158
-
159
- ---
160
-
161
- Python3.6(Anaconda)
162
-
163
-
164
-
165
-
166
-
167
- ## ファイル構造 My_ATR503とSasara_ATR503を追加しました。
168
-
169
- ```
170
-
171
181
  ├── become_yukarin # このディレクトリは外から使えることを想定
172
182
 
173
183
  │   ├── __init__.py

3

ソース修正

2018/03/10 11:43

投稿

BURI55
BURI55

スコア25

test CHANGED
File without changes
test CHANGED
@@ -124,11 +124,11 @@
124
124
 
125
125
  main()
126
126
 
127
- File "scripts/extract_acoustic_feature.py", line 193, in main
127
+ File "scripts/extract_acoustic_feature.py", line 197, in main
128
-
128
+
129
- paths1 = list(sorted( arguments.input1_directory.lob('*')))
129
+ arguments.output1_directory.mkdir(exist_ok=True)
130
-
130
+
131
- AttributeError: 'WindowsPath' object has no attribute 'lob'
131
+ AttributeError: 'NoneType' object has no attribute 'mkdir'
132
132
 
133
133
  ```
134
134
 
@@ -136,40 +136,38 @@
136
136
 
137
137
  ---
138
138
 
139
+
140
+
139
141
  ```cmd
140
142
 
141
143
  C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 \My_ATR503 -i2 \Sasara_ATR503
142
144
 
143
145
  ```
144
146
 
147
+
148
+
145
- ```python
149
+ 試したこと
150
+
146
-
151
+ ---
152
+
147
- paths1 = list(sorted( arguments.input1_directory.lob('*')))
153
+ extract_acoustic_feature.pyに引数で学習データの入力を指定した。
154
+
155
+ 193行lobになっていたのでglobに修正
156
+
157
+ 補足情報(FW/ツールのバージョンなど)
158
+
159
+ ---
160
+
161
+ Python3.6(Anaconda)
162
+
163
+
164
+
165
+
166
+
167
+ ## ファイル構造 My_ATR503とSasara_ATR503を追加しました。
148
168
 
149
169
  ```
150
170
 
151
- 試したこと
152
-
153
- ---
154
-
155
- extract_acoustic_feature.pyに引数で学習データの入力を指定した。
156
-
157
-
158
-
159
- 補足情報(FW/ツールのバージョンなど)
160
-
161
- ---
162
-
163
- Python3.6(Anaconda)
164
-
165
-
166
-
167
-
168
-
169
- ## ファイル構造 My_ATR503とSasara_ATR503を追加しました。
170
-
171
- ```
172
-
173
171
  ├── become_yukarin # このディレクトリは外から使えることを想定
174
172
 
175
173
  │   ├── __init__.py

2

ソース追記

2018/03/10 11:26

投稿

BURI55
BURI55

スコア25

test CHANGED
File without changes
test CHANGED
@@ -142,7 +142,11 @@
142
142
 
143
143
  ```
144
144
 
145
-
145
+ ```python
146
+
147
+ paths1 = list(sorted( arguments.input1_directory.lob('*')))
148
+
149
+ ```
146
150
 
147
151
  試したこと
148
152
 

1

書き足し

2018/03/10 10:01

投稿

BURI55
BURI55

スコア25

test CHANGED
@@ -1 +1 @@
1
- Win+PythonであるシステムでAttributeErrorが出ます。
1
+ Win+PythonであるシステムでAttributeErrorで困っています。
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Readme.mdに従い、Githubクローン、Python3.6(Anaconda)インストール、環境整備を行い、
8
8
 
9
- 音響特徴量の切り出しを行おうと、
9
+ 音響特徴量の切り出しを行おうと、scripts/extract_acoustic_feature.pyを引数付けて実行してみましたが、エラーが出ます。
10
10
 
11
11
 
12
12