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
while running the code I'm getting the following error
Traceback (most recent call last):
File "exctract_features_eval_class_representatives.py", line 145, in
extract_features(args)
File "exctract_features_eval_class_representatives.py", line 20, in extract_features
model = load_model(args.model_arc, args.model_checkpoint)
File "/content/trj-based-adversarials-detection/detect_attack_benchmark_datasets/utils.py", line 26, in load_model
state_dict = torch.load(model_checkpoint, map_location=lambda storage, loc: storage)['model_state_dict']
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 771, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 270, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 251, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'models/mnist/model-smallcnn.pth'
Traceback (most recent call last):
File "exctract_features_eval_class_representatives.py", line 145, in
extract_features(args)
File "exctract_features_eval_class_representatives.py", line 20, in extract_features
model = load_model(args.model_arc, args.model_checkpoint)
File "/content/trj-based-adversarials-detection/detect_attack_benchmark_datasets/utils.py", line 26, in load_model
state_dict = torch.load(model_checkpoint, map_location=lambda storage, loc: storage)['model_state_dict']
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 771, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 270, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 251, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'models/cifar10/model-wideres.pth'
The text was updated successfully, but these errors were encountered:
while running the code I'm getting the following error
Traceback (most recent call last):
File "exctract_features_eval_class_representatives.py", line 145, in
extract_features(args)
File "exctract_features_eval_class_representatives.py", line 20, in extract_features
model = load_model(args.model_arc, args.model_checkpoint)
File "/content/trj-based-adversarials-detection/detect_attack_benchmark_datasets/utils.py", line 26, in load_model
state_dict = torch.load(model_checkpoint, map_location=lambda storage, loc: storage)['model_state_dict']
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 771, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 270, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 251, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'models/mnist/model-smallcnn.pth'
Traceback (most recent call last):
File "exctract_features_eval_class_representatives.py", line 145, in
extract_features(args)
File "exctract_features_eval_class_representatives.py", line 20, in extract_features
model = load_model(args.model_arc, args.model_checkpoint)
File "/content/trj-based-adversarials-detection/detect_attack_benchmark_datasets/utils.py", line 26, in load_model
state_dict = torch.load(model_checkpoint, map_location=lambda storage, loc: storage)['model_state_dict']
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 771, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 270, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 251, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'models/cifar10/model-wideres.pth'
The text was updated successfully, but these errors were encountered: