Skip to content

AttributeError: module 'librosa' has no attribute 'output' #239

@ljy-002

Description

@ljy-002

"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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions