Open t-shubham opened 2 years ago
Attempting to deserialize object on CUDA device 2 but torch.cuda.device_count() is 1. Please use torch.load with map_location to map your storages to an existing device.
what to do?
i am running pretrained model
change line 98 of test.py to
model.load_state_dict(torch.load(configs.pretrained_path, map_location=torch.device('cuda:0')))
Attempting to deserialize object on CUDA device 2 but torch.cuda.device_count() is 1. Please use torch.load with map_location to map your storages to an existing device.
what to do?
i am running pretrained model