runtime error
Exit code: 1. Reason: orch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. self.speakers = torch.load(speaker_file_path) Traceback (most recent call last): File "/home/user/app/app.py", line 56, in <module> tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device) File "/usr/local/lib/python3.10/site-packages/TTS/api.py", line 74, in __init__ self.load_tts_model_by_name(model_name, gpu) File "/usr/local/lib/python3.10/site-packages/TTS/api.py", line 177, in load_tts_model_by_name self.synthesizer = Synthesizer( File "/usr/local/lib/python3.10/site-packages/TTS/utils/synthesizer.py", line 109, in __init__ self._load_tts_from_dir(model_dir, use_cuda) File "/usr/local/lib/python3.10/site-packages/TTS/utils/synthesizer.py", line 164, in _load_tts_from_dir self.tts_model.load_checkpoint(config, checkpoint_dir=model_dir, eval=True) File "/usr/local/lib/python3.10/site-packages/TTS/tts/models/xtts.py", line 764, in load_checkpoint self.speaker_manager = SpeakerManager(speaker_file_path) File "/usr/local/lib/python3.10/site-packages/TTS/tts/layers/xtts/xtts_manager.py", line 5, in __init__ self.speakers = torch.load(speaker_file_path) File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1114, in load return _legacy_load( File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1338, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '{'.
Container logs:
Fetching error logs...