Open madey83 opened 3 months ago
Thanks for raising this. It's just a warning, so you can ignore it for now. I'll eventually add a fix to our fork (this repo is not updated anymore), so that it will work with future Pytorch versions.
I also have get this error ModuleNotFoundError: No module named 'torch.privateuseone'
after installing lastest version of torch.
I also have get this error
ModuleNotFoundError: No module named 'torch.privateuseone'
after installing lastest version of torch.
@amira133 Could you post the full error stacktrace, not just the last line?
@eginhard here you are
FutureWarning: You are using torch.load
with weights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/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.
net.load_state_dict(torch.load(model_dir))
Traceback (most recent call last):
File ".\u2net_test.py", line 276, in
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.
Describe the bug
i have installed TTS by following this steps:
sudo apt-get update && sudo apt-get upgrade -y
git clone https://github.com/coqui-ai/TTS/ cd TTS make system-deps # only on Linux systems. make install
python3 -m venv TTS source ./TTS/bin/activate pip list pip3 install torch torchvision torchaudio pip install pysrt pydub
test if cuda is installed correclty and visible by python3
python import torch torch.cuda.is_available() torch.cuda.device_count() torch.cuda.current_device() torch.cuda.get_device_name(0)
pip install tts setuptools wheel -U
then i execute this command: tts --model_name tts_models/multilingual/multi-dataset/xtts_v2 --list_speaker_idx
and received this output:
/home/luke/TTS/TTS/lib/python3.10/site-packages/TTS/tts/layers/xtts/xtts_manager.py:5: FutureWarning: You are using
torch.load
withweights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value forweights_only
will be flipped toTrue
. 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 viatorch.serialization.add_safe_globals
. We recommend you start settingweights_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)/home/luke/TTS/TTS/lib/python3.10/site-packages/TTS/utils/io.py:54: FutureWarning: You are using
torch.load
withweights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value forweights_only
will be flipped toTrue
. 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 viatorch.serialization.add_safe_globals
. We recommend you start settingweights_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. return torch.load(f, map_location=map_location, **kwargs)i have no idea if i did installation wrongly or my WSL ubuntu is broken....
To Reproduce
as above described...
Expected behavior
No response
Logs
No response
Environment
Additional context
No response