- Clone the repository:
git clone https://github.com/dynaroars/VeriDou
cd VeriDou- Install dependencies:
pip install -r requirements.txt- Install verifiers:
# Venus
https://github.com/vas-group-imperial/venus2.git
# NeuralSAT
https://github.com/dynaroars/neuralsat.git
# alpha-beta-CROWN
git clone --recursive https://github.com/Verified-Intelligence/alpha-beta-CROWN.gitpython -m spec.generate_independent_benchmarks --output_dir "output/benchmark_independent"Parameters:
--perturbation_types: Motion blur (0°, 45°, 90°, 135°), box blur, sharpen--strengths: [0.2, 0.4, 0.6, 0.8, 1.0]--kernel_sizes: [3, 5, 7, 9]--benchmark_names: ["mnist_fc", "oval21", "sri_resnet_a", "cifar100", "tinyimagenet"]
python -m spec.generate_veridou_benchmarks --output_dir "output/benchmark_veridou"Parameters:
--kernel_types: ["veridou", "general"] - Type of kernel generation (default: ["general"])--kernel_sizes: [5, 7, 9] - Size of convolution kernels (default: [5, 7, 9])--kernels: ["0-30", "30-60", "60-90"] - Angle ranges for fixed kernels (default: ["0-30", "30-60", "60-90"])--strength: [lower, upper] - Lower and upper bounds for kernel strength (default: [-0.001, 0.001])--perturb_ratios: [0.0, 0.5, 1.0] - Ratio of pixels to perturb (default: [0.0, 0.5, 1.0])--robust_intervals: [0.005] - Robustness interval size (default: [0.005])--benchmark_names: ["mnist_fc", "oval21", "sri_resnet_a", "cifar100", "tinyimagenet"] - Benchmarks to generate--mask_probability: 0.5 - Probability threshold for mask generation in general kernels (default: 0.5)--num_instances: 20 - Number of instances to process from each CSV (default: 20)--timeout: 30.0 - Timeout for verification (default: 30.0)
python run_verifier.py --benchmark_folder "output/benchmark_independent" --verifier_path /absolute/path/to/[venus2|neuralsat|alpha-beta-CROWN]/ --result_dir "output/result_independent"
python run_verifier.py --benchmark_folder "output/benchmark_veridou" --verifier_path /absolute/path/to/[venus2|neuralsat|alpha-beta-CROWN]/ --result_dir "output/result_veridou"python summarize_results.py --result_dir "output/result_independent" --benchmark [independent|veridou] --verifier [venus|crown|neuralsat]
python summarize_results.py --result_dir "output/result_veridou" --benchmark [independent|veridou] --verifier [venus|crown|neuralsat]