-
Notifications
You must be signed in to change notification settings - Fork 693
AttributeError: module 'librosa' has no attribute 'output' #239
Description
"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'