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

running test_kitti.py #21

Open
darkdevahm opened this issue Oct 18, 2021 · 0 comments
Open

running test_kitti.py #21

darkdevahm opened this issue Oct 18, 2021 · 0 comments

Comments

@darkdevahm
Copy link

I'm getting the following error when running python3 test_kitti.py eventhough I have cuda and torch, I have also verified cuda using torch.cuda.is_available and it was True.

Traceback (most recent call last): File "test_kitti.py", line 407, in <module> model.load_state_dict(torch.load('../../pre-trained_models/KITTI_best.pkl')) File "/home/ahmed/anaconda3/envs/spinnet/lib/python3.6/site-packages/torch/serialization.py", line 584, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/ahmed/anaconda3/envs/spinnet/lib/python3.6/site-packages/torch/serialization.py", line 842, in _load result = unpickler.load() File "/home/ahmed/anaconda3/envs/spinnet/lib/python3.6/site-packages/torch/serialization.py", line 834, in persistent_load load_tensor(data_type, size, key, _maybe_decode_ascii(location)) File "/home/ahmed/anaconda3/envs/spinnet/lib/python3.6/site-packages/torch/serialization.py", line 823, in load_tensor loaded_storages[key] = restore_location(storage, location) File "/home/ahmed/anaconda3/envs/spinnet/lib/python3.6/site-packages/torch/serialization.py", line 174, in default_restore_location result = fn(storage, location) File "/home/ahmed/anaconda3/envs/spinnet/lib/python3.6/site-packages/torch/serialization.py", line 150, in _cuda_deserialize device = validate_cuda_device(location) File "/home/ahmed/anaconda3/envs/spinnet/lib/python3.6/site-packages/torch/serialization.py", line 134, in validate_cuda_device raise RuntimeError('Attempting to deserialize object on a CUDA ' RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant