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

[Bug] Cant load xtts #4121

Open
CrackerHax opened this issue Jan 3, 2025 · 1 comment
Open

[Bug] Cant load xtts #4121

CrackerHax opened this issue Jan 3, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@CrackerHax
Copy link

CrackerHax commented Jan 3, 2025

Describe the bug

Error when loading xtts model

To Reproduce

from TTS.api import TTS
model = TTS("xtts", gpu=True)

Expected behavior

Expect it to load model without throwing an error

Logs

raise pickle.UnpicklingError(_get_wo_message(str(e))) from None
_pickle.UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint.
        (1) Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
        (2) Alternatively, to load with `weights_only=True` please check the recommended steps in the following error message.
        WeightsUnpickler error: Unsupported global: GLOBAL TTS.tts.configs.xtts_config.XttsConfig was not an allowed global by default. Please use `torch.serialization.add_safe_globals([XttsConfig])` or the `torch.serialization.safe_globals([XttsConfig])` context manager to allowlist this global if you trust this class/function.
111

Environment

{
    "CUDA": {
        "GPU": [
            "NVIDIA GeForce RTX 3080",
            "NVIDIA GeForce RTX 3080"
        ],
        "available": true,
        "version": "12.4"
    },
    "Packages": {
        "PyTorch_debug": false,
        "PyTorch_version": "2.6.0.dev20241119+cu124",
        "TTS": "0.22.0",
        "numpy": "1.22.0"
    },
    "System": {
        "OS": "Linux",
        "architecture": [
            "64bit",
            "ELF"
        ],
        "processor": "x86_64",
        "python": "3.10.14",
        "version": "#1 SMP Thu Jan 11 04:09:03 UTC 2024"
    }
}

Additional context

No response

@CrackerHax CrackerHax added the bug Something isn't working label Jan 3, 2025
@eginhard
Copy link
Contributor

eginhard commented Jan 4, 2025

You should install our fork (via pip install coqui-tts), it should work with the latest Pytorch versions (but I haven't tested 2.6 yet). This repo is not updated anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants