-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'librosa' has no attribute 'output' #239
Comments
I forgot what I spent an hour doing on the computer The error changed: |
Oh, I remembered, I changed the requirements.txt |
|
Update the save_wav function: 3.Open your dsp.py file and locate the save_wav function. Replace its content with the following updated code:
|
"librosa.output" was removed in librosa version 0.8.0. This is documented in their changelog
F:\【密】AI-人工智能\WaveRNN>python quick_start.py
Using device: cpu
Initialising WaveRNN Model...
Trainable Parameters: 4.234M
Initialising Tacotron Model...
Trainable Parameters: 11.088M
F:\【密】AI-人工智能\WaveRNN\models\tacotron.py:308: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than tensor.new_tensor(sourceTensor).
self.decoder.r = self.decoder.r.new_tensor(value, requires_grad=False)
+---------+---------------+-----------------+----------------+-----------------+
| WaveRNN | Tacotron(r=2) | Generation Mode | Target Samples | Overlap Samples |
+---------+---------------+-----------------+----------------+-----------------+
| 797k | 180k | Unbatched | N/A | N/A |
+---------+---------------+-----------------+----------------+-----------------+
| Generating 1/6
| ████████████████ 87400/87450 | Batch Size: 1 | Gen Rate: 0.0kHz | Traceback (most recent call last):
File "F:\【密】AI-人工智能\WaveRNN\quick_start.py", line 120, in
voc_model.generate(m, save_path, batched, 11_000, 550, hp.mu_law)
File "F:\【密】AI-人工智能\WaveRNN\models\fatchord_version.py", line 260, in generate
save_wav(output, save_path)
File "F:\【密】AI-人工智能\WaveRNN\utils\dsp.py", line 23, in save_wav
librosa.output.write_wav(path, x.astype(np.float32), sr=hp.sample_rate)
AttributeError: module 'librosa' has no attribute 'output'
The text was updated successfully, but these errors were encountered: