The function generate_adv_data.py does not run because it expects some files to be present in "data/MNIST/processed/". The directory "processed" in MNIST is not created even though the code was run in the mentioned order. Below is the error on running the file
Traceback (most recent call last):
File "generate_adv_data.py", line 21, in
traindata, trainlabel = torch.load('data/MNIST/processed/training.pt')
File "/home/desaraju/.local/lib/python3.8/site-packages/torch/serialization.py", line 594, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/desaraju/.local/lib/python3.8/site-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/desaraju/.local/lib/python3.8/site-packages/torch/serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'data/MNIST/processed/training.pt'