This is the official code of the paper:
PyTorch 1.10.1, torchvision 0.11.2. The code is tested with python=3.7, cuda=11.4.
Run OculoScope_train.py to perform training. Checkpoint will be saved to ./saved_models/OculoScope/.
Run MixNAF_train.py to perform training. Checkpoint will be saved to ./saved_models/MixNAF/.
Run OculoScope_val.py to get the results of the accuracy experiment. Run OculoScope_fairness_analysis.py to get the results of age and gender fairness experiments.
Run MixNAF_val.py to get the results of the accuracy experiment.