bargavj / EvaluatingDPML

This project's goal is to evaluate the privacy leakage of differentially private machine learning models.
MIT License
129 stars 49 forks source link

FileNotFoundError: [Errno 2] No such file or directory: './data/target_data.npz' #19

Closed Billy1900 closed 4 years ago

Billy1900 commented 4 years ago

when I run python attack.py cifar_100 --target_model=nn --target_l2_ratio=1e-4,

I met the error

Traceback (most recent call last):
  File "attack.py", line 595, in 
    run_experiment(args)
  File "attack.py", line 481, in run_experiment
    dataset = load_data('target_data.npz', args)
  File "attack.py", line 227, in load_data
    with np.load(DATA_PATH + data_name) as f:
  File "/home/billyluo/anaconda3/envs/tf14/lib/python3.7/site-packages/numpy/lib/npyio.py", line 428, in load
    fid = open(os_fspath(file), "rb")
FileNotFoundError: [Errno 2] No such file or directory: './data/target_data.npz'

How can I solve it?

Billy1900 commented 4 years ago

maybe you have to run the run_experiment.sh, after that there will be files in data directory.