You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i run this code,it show Attempting to deserialize object on CUDA device 1 but torch.cuda.device_count() is 1. Please use torch.load with map_location to map your storages to an existing device.Do you know how to solve this ?
The text was updated successfully, but these errors were encountered:
I had a similar issue, first I modified the serilization.py class to hardcoding the cuda device I wanted to use.
Now, the workarround I found was to add map_location={'cuda:1': 'cuda:0'} when loading
when i run this code,it show Attempting to deserialize object on CUDA device 1 but torch.cuda.device_count() is 1. Please use torch.load with map_location to map your storages to an existing device.Do you know how to solve this ?
The text was updated successfully, but these errors were encountered: