I have a gpu enabled system. I also have installed pytorch with cuda support:
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia I am still unable to get the predict.py not running with the following message:
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.
I have a gpu enabled system. I also have installed pytorch with cuda support:
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia I am still unable to get the predict.py not running with the following message:
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.