mirror of https://github.com/coqui-ai/TTS.git
Fix: Add weights_only=False for PyTorch 2.6+ compatibility
This commit is contained in:
parent
dbf1a08a0d
commit
662c0ea783
|
@ -48,10 +48,10 @@ def load_fsspec(
|
||||||
filecache={"cache_storage": str(get_user_data_dir("tts_cache"))},
|
filecache={"cache_storage": str(get_user_data_dir("tts_cache"))},
|
||||||
mode="rb",
|
mode="rb",
|
||||||
) as f:
|
) as f:
|
||||||
return torch.load(f, map_location=map_location, **kwargs)
|
return torch.load(f, map_location=map_location, **kwargs, weights_only=False)
|
||||||
else:
|
else:
|
||||||
with fsspec.open(path, "rb") as f:
|
with fsspec.open(path, "rb") as f:
|
||||||
return torch.load(f, map_location=map_location, **kwargs)
|
return torch.load(f, map_location=map_location, **kwargs, weights_only=False)
|
||||||
|
|
||||||
|
|
||||||
def load_checkpoint(
|
def load_checkpoint(
|
||||||
|
|
Loading…
Reference in New Issue