Use the certify.py script to perform certification of adversarial robustness for a given network on a specific example. This requires a TensorFlow checkpoint, a JSON description of the model layers, and the input data as a numpy file.
python cleverhans/experimental/certification/certify.py \
--checkpoint "${MODEL_DIR}/model.ckpt" \
--model_json "${MODEL_DIR}/model.json" \
--test_input "${INPUTS_DIR}/image.npy" \
--true_class 4 \
--adv_class 5 \
--epsilon 0.2 \
--init_nu 100.0 \
--small_eig_num_steps 100