使用训练库时出现问题
- Dominant language
- Python
- Stars
- 36.9k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
ERROR in app: Exception on /api/synthesize [POST]
Traceback (most recent call last):
File "d:\Anaconda3\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "d:\Anaconda3\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "d:\Anaconda3\lib\site-packages\flask_restx\api.py", line 672, in error_router
return original_handler(e)
File "d:\Anaconda3\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "d:\Anaconda3\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "d:\Anaconda3\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "d:\Anaconda3\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "D:\声音模仿\web\__init__.py", line 111, in synthesize
wav = rnn_vocoder.infer_waveform(spec)
File "D:\声音模仿\vocoder\wavernn\inference.py", line 63, in infer_waveform
wav = _model.generate(mel, batched, target, overlap, hp.mu_law, progress_callback)
File "D:\声音模仿\vocoder\wavernn\models\fatchord_version.py", line 253, in generate
output[-20 * self.hop_length:] *= fade_out
ValueError: operands could not be broadcast together with shapes (2400,) (4000,) (2400,)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the POST /api/synthesize handler in web/__init__.py, then trace inference.py into vocoder/wavernn/models/fatchord_version.py and its generate method. Reproduce the request that reaches the fade-out operation and determine why the two waveform slices have different lengths. Done means synthesis completes without the broadcasting exception and the resulting waveform remains valid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flask, python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100