coqui-ai / TTS

🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production
http://coqui.ai
Mozilla Public License 2.0
35.62k stars 4.36k forks source link

[Bug] atttributeError: 'Tacotron2' object has no attribute 'args' #3617

Open MariahWest01 opened 8 months ago

MariahWest01 commented 8 months ago

Describe the bug

Traceback (most recent call last): File "/home/mariah/.local/bin/tts", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/mariah/Applications/tts/TTS/bin/synthesize.py", line 468, in main wav = synthesizer.tts( ^^^^^^^^^^^^^^^^ File "/home/mariah/Applications/tts/TTS/utils/synthesizer.py", line 463, in tts outputs = transfer_voice( ^^^^^^^^^^^^^^^ File "/home/mariah/Applications/tts/TTS/tts/utils/synthesis.py", line 319, in transfer_voice reference_wav, sr=model.args.encoder_sample_rate if model.args.encoder_sample_rate else model.ap.sample_rate ^^^^^^^^^^ File "/home/mariah/.local/pipx/venvs/tts/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1688, in getattr raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'") AttributeError: 'Tacotron2' object has no attribute 'args'

To Reproduce

\ 9-year-old\ Doctor\ Who\ fan\ \[VS0iFWwvDbs\].wav --text "test" --pipe_out --out_path t.wav > error.txt

### Expected behavior

_No response_

### Logs

_No response_

### Environment

```shell
I tried running collect_env_info.py but it says no module found torch
```

### Additional context

_No response_            
stale[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels.