Skip to content
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

Cloning voice, RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory #3605

Closed
ciaotesla opened this issue Feb 23, 2024 · 2 comments
Labels
bug Something isn't working wontfix This will not be worked on but feel free to help.

Comments

@ciaotesla
Copy link

Describe the bug

I am testing cloning but I am getting into an issue. This the code I am running

`
import torch
from TTS.api import TTS

tts = TTS(model_name="tts_models/en/ljspeech/tacotron2-DCA", progress_bar=True).device("cpu")
tts.tts_with_vc_to_file(
"Ciao Tesla how are you?",
speaker_wav="voices/testvoice/TeslaHaloBLKHaloStation_000.wav",
file_path="voices/cloning/TeslaHaloBLKHaloStation_000_cloned.wav"
)`

I am getting the following error:

File "/home/pi4/test/.venv/lib/python3.11/site-packages/torch/serialization.py", line 1007, in load with _open_zipfile_reader(opened_file) as opened_zipfile: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi4/test/.venv/lib/python3.11/site-packages/torch/serialization.py", line 458, in __init__ super().__init__(torch._C.PyTorchFileReader(name_or_buffer)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Any ideas?

To Reproduce

Not sure is possible

Expected behavior

Getting output waves

Logs

No response

Environment

{
    "CUDA": {
        "GPU": [],
        "available": false,
        "version": null
    },
    "Packages": {
        "PyTorch_debug": false,
        "PyTorch_version": "2.2.1",
        "TTS": "0.22.0",
        "numpy": "1.26.4"
    },
    "System": {
        "OS": "Linux",
        "architecture": [
            "64bit",
            "ELF"
        ],
        "processor": "",
        "python": "3.11.2",
        "version": "#1725 SMP PREEMPT Mon Jan 22 13:35:32 GMT 2024"
    }
}

Additional context

Testing on RPI4.

@ciaotesla ciaotesla added the bug Something isn't working label Feb 23, 2024
Copy link

stale bot commented Apr 22, 2024

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.

@stale stale bot added the wontfix This will not be worked on but feel free to help. label Apr 22, 2024
@hardikbeladiya
Copy link

hardikbeladiya commented Apr 24, 2024

@ciaotesla this is due to your model file or .pth file is corrupted. redownload the model and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on but feel free to help.
Projects
None yet
Development

No branches or pull requests

2 participants