facebookresearch / facebookresearch/SlowFast

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False.

Open
#407 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
in ()
3 model_name = 'x3d_s'
4
----> 5 model = torch.hub.load('facebookresearch/pytorchvideo', model_name, pretrained=True)

11 frames
/usr/local/lib/python3.7/dist-packages/torch/serialization.py in validate_cuda_device(location)
133
134 if not torch.cuda.is_available():
--> 135 raise RuntimeError('Attempting to deserialize object on a CUDA '
136 'device but torch.cuda.is_available() is False. '
137 'If you are running on a CPU-only machine, '

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.

from pytorch hub
https://pytorch.org/hub/facebookresearch_pytorchvideo_x3d/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.