Traceback (most recent call last):


 "miniimagenet_train_one_shot.py", line 269, in <module>

main()


 "miniimagenet_train_one_shot.py", line 150, in main

feature_encoder.load_state_dict(torch.load(str("./models/miniimagenet_feature_encoder_" + str(CLASS_NUM) +"way_" + str(SAMPLE_NUM_PER_CLASS) +"shot.pkl")))


 "D:\Anaconda3\lib\site-packages\torch\serialization.py", line 426, in load

return _load(f, map_location, pickle_module, **pickle_load_args)


 "D:\Anaconda3\lib\site-packages\torch\serialization.py", line 613, in _load

result = unpickler.load()


 "D:\Anaconda3\lib\site-packages\torch\serialization.py", line 576, in persistent_load

deserialized_objects[root_key] = restore_location(obj, location)


 "D:\Anaconda3\lib\site-packages\torch\serialization.py", line 155, in default_restore_location

result = fn(storage, location)


 "D:\Anaconda3\lib\site-packages\torch\serialization.py", line 131, in _cuda_deserialize

device = validate_cuda_device(location)


 "D:\Anaconda3\lib\site-packages\torch\serialization.py", line 125, in validate_cuda_device

device, torch.cuda.device_count()))
RuntimeError: 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.
Traceback (most recent call last):


 "join_pairs.py", line 125, in <module>

main(0)


 "join_pairs.py", line 121, in main

pair.save(file_out, 'JPEG')


 "/Users/heavers/anaconda3/lib/python3.7/site-packages/PIL/Image.py", line 1966, in save

fp = builtins.open(filename, "w+b")

NotFoundError: [Errno 2] No such file or directory: './working_folder//val/p0000044.jpg'
