-
Notifications
You must be signed in to change notification settings - Fork 613
Description
I have Ubuntu 22.04.
I have installed the Requirements once via the script and once manually.
Now I have the following issue:
How can I solve it, please?
python run_webcam.py dimp dimp50
/home/noone/pytracking/pytracking/../ltr/admin/loading.py:125: 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.
checkpoint_dict = torch.load(path, map_location='cpu')
Traceback (most recent call last):
File "/home/noone/pytracking/pytracking/run_webcam.py", line 41, in
main()
File "/home/noone/pytracking/pytracking/run_webcam.py", line 37, in main
run_webcam(args.tracker_name, args.tracker_param, args.debug, visdom_info)
File "/home/noone/pytracking/pytracking/run_webcam.py", line 22, in run_webcam
tracker.run_video_generic(debug=debug, visdom_info=visdom_info)
File "/home/noone/pytracking/pytracking/../pytracking/evaluation/tracker.py", line 285, in run_video_generic
tracker = MultiObjectWrapper(self.tracker_class, params, self.visdom, fast_load=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/noone/pytracking/pytracking/../pytracking/evaluation/multi_object_wrapper.py", line 21, in init
self.tracker_copy.initialize_features()
File "/home/noone/pytracking/pytracking/../pytracking/tracker/dimp/dimp.py", line 22, in initialize_features
self.params.net.initialize()
File "/home/noone/pytracking/pytracking/../pytracking/features/net_wrappers.py", line 53, in initialize
super().initialize()
File "/home/noone/pytracking/pytracking/../pytracking/features/net_wrappers.py", line 37, in initialize
self.load_network()
File "/home/noone/pytracking/pytracking/../pytracking/features/net_wrappers.py", line 31, in load_network
self.net = load_network(self.net_path, **self.net_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/noone/pytracking/pytracking/../pytracking/utils/loading.py", line 31, in load_network
net, _ = ltr_loading.load_network(path_full, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/noone/pytracking/pytracking/../ltr/admin/loading.py", line 91, in load_network
net_fun = getattr(importlib.import_module(net_constr.fun_module), net_constr.fun_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/noone/anaconda3/envs/pytracking/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/noone/pytracking/pytracking/../ltr/models/tracking/dimpnet.py", line 12, in
import ltr.models.backbone as backbones
File "/home/noone/pytracking/pytracking/../ltr/models/backbone/init.py", line 1, in
from .resnet import resnet18, resnet50, resnet101, resnet_baby
File "/home/noone/pytracking/pytracking/../ltr/models/backbone/resnet.py", line 5, in
from torchvision.models.resnet import model_urls
ImportError: cannot import name 'model_urls' from 'torchvision.models.resnet' (/home/noone/anaconda3/envs/pytracking/lib/python3.12/site-packages/torchvision/models/resnet.py)