RobustBench / robustbench

RobustBench: a standardized adversarial robustness benchmark [NeurIPS 2021 Benchmarks and Datasets Track]
https://robustbench.github.io
Other
671 stars 99 forks source link

FileNotFoundError when running Bai2024MixedNUTS model #187

Closed fzjcdt closed 4 months ago

fzjcdt commented 4 months ago

Hello,

I encountered a FileNotFoundError when attempting to run the Bai2024MixedNUTS model. The error message is as follows:

Traceback (most recent call last):
    with open(config_file, 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: '.local/lib/python3.9/site-packages/robustbench/model_zoo/architectures/optimal_spca.yaml'

It seems the model is trying to access a configuration file (optimal_spca.yaml) that does not exist in the specified directory.

Temporary Solution: I found that manually downloading the content from https://github.com/Bai-YT/MixedNUTS/blob/main/robustbench_impl/optimal_spca.yaml and placing it into the corresponding directory (.local/lib/python3.9/site-packages/robustbench/model_zoo/architectures/) resolves the issue.

Could you please look into this matter and possibly update the setup process to automatically include this configuration file.

Thank you for your assistance.

fra31 commented 4 months ago

Hi,

thanks for the pointer. The configuration file was already in the repo, but not included in MANIFEST.in. It should be fixed with https://github.com/RobustBench/robustbench/pull/188, but please let me know if it's not the case for you.

fzjcdt commented 4 months ago

Hi,

Thank you for the quick response. I believe the problem has been resolved.

Thank you once again for your help.

Best regards.