├── .gitignore ├── BiasTransfer.png ├── LICENSE ├── README.md ├── dataset_configs ├── aircraft.yaml ├── birdsnap.yaml ├── caltech101.yaml ├── caltech256.yaml ├── celeba.yaml ├── celeba_mini.yaml ├── cifar10.yaml ├── cifar100.yaml ├── cifar_fixed_feature.yaml ├── cifar_full_network.yaml ├── cifar_scratch.yaml ├── fairface.yaml ├── fairface_fixed_transfer.yaml ├── fairface_mini.yaml ├── flowers.yaml ├── food.yaml ├── imagenet.yaml ├── pets.yaml ├── stanford_cars.yaml └── sun397.yaml ├── main.py ├── meta_data ├── aircraft_uniform.npy ├── cats.npy ├── cifar_uniform.npy ├── dogs.npy ├── gaussian_pattern.npy └── imagenet_class_index.json └── src ├── analysis ├── analyze.py ├── run_imagenet_biases_experiment.py └── stensils_utils.py ├── config_parse_utils.py ├── decoders_and_transforms.py ├── embed_spurious.py ├── eval_utils.py ├── facial_recognition.py ├── ffcv_utils.py ├── label_maps.py ├── loaders.py ├── models.py ├── optimizers.py ├── trainer.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/.gitignore -------------------------------------------------------------------------------- /BiasTransfer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/BiasTransfer.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/README.md -------------------------------------------------------------------------------- /dataset_configs/aircraft.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/aircraft.yaml -------------------------------------------------------------------------------- /dataset_configs/birdsnap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/birdsnap.yaml -------------------------------------------------------------------------------- /dataset_configs/caltech101.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/caltech101.yaml -------------------------------------------------------------------------------- /dataset_configs/caltech256.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/caltech256.yaml -------------------------------------------------------------------------------- /dataset_configs/celeba.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/celeba.yaml -------------------------------------------------------------------------------- /dataset_configs/celeba_mini.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/celeba_mini.yaml -------------------------------------------------------------------------------- /dataset_configs/cifar10.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/cifar10.yaml -------------------------------------------------------------------------------- /dataset_configs/cifar100.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/cifar100.yaml -------------------------------------------------------------------------------- /dataset_configs/cifar_fixed_feature.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/cifar_fixed_feature.yaml -------------------------------------------------------------------------------- /dataset_configs/cifar_full_network.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/cifar_full_network.yaml -------------------------------------------------------------------------------- /dataset_configs/cifar_scratch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/cifar_scratch.yaml -------------------------------------------------------------------------------- /dataset_configs/fairface.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/fairface.yaml -------------------------------------------------------------------------------- /dataset_configs/fairface_fixed_transfer.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/fairface_fixed_transfer.yaml -------------------------------------------------------------------------------- /dataset_configs/fairface_mini.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/fairface_mini.yaml -------------------------------------------------------------------------------- /dataset_configs/flowers.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/flowers.yaml -------------------------------------------------------------------------------- /dataset_configs/food.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/food.yaml -------------------------------------------------------------------------------- /dataset_configs/imagenet.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/imagenet.yaml -------------------------------------------------------------------------------- /dataset_configs/pets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/pets.yaml -------------------------------------------------------------------------------- /dataset_configs/stanford_cars.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/stanford_cars.yaml -------------------------------------------------------------------------------- /dataset_configs/sun397.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/dataset_configs/sun397.yaml -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/main.py -------------------------------------------------------------------------------- /meta_data/aircraft_uniform.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/meta_data/aircraft_uniform.npy -------------------------------------------------------------------------------- /meta_data/cats.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/meta_data/cats.npy -------------------------------------------------------------------------------- /meta_data/cifar_uniform.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/meta_data/cifar_uniform.npy -------------------------------------------------------------------------------- /meta_data/dogs.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/meta_data/dogs.npy -------------------------------------------------------------------------------- /meta_data/gaussian_pattern.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/meta_data/gaussian_pattern.npy -------------------------------------------------------------------------------- /meta_data/imagenet_class_index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/meta_data/imagenet_class_index.json -------------------------------------------------------------------------------- /src/analysis/analyze.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/analysis/analyze.py -------------------------------------------------------------------------------- /src/analysis/run_imagenet_biases_experiment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/analysis/run_imagenet_biases_experiment.py -------------------------------------------------------------------------------- /src/analysis/stensils_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/analysis/stensils_utils.py -------------------------------------------------------------------------------- /src/config_parse_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/config_parse_utils.py -------------------------------------------------------------------------------- /src/decoders_and_transforms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/decoders_and_transforms.py -------------------------------------------------------------------------------- /src/embed_spurious.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/embed_spurious.py -------------------------------------------------------------------------------- /src/eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/eval_utils.py -------------------------------------------------------------------------------- /src/facial_recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/facial_recognition.py -------------------------------------------------------------------------------- /src/ffcv_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/ffcv_utils.py -------------------------------------------------------------------------------- /src/label_maps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/label_maps.py -------------------------------------------------------------------------------- /src/loaders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/loaders.py -------------------------------------------------------------------------------- /src/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/models.py -------------------------------------------------------------------------------- /src/optimizers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/optimizers.py -------------------------------------------------------------------------------- /src/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/trainer.py -------------------------------------------------------------------------------- /src/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadryLab/bias-transfer/HEAD/src/utils.py --------------------------------------------------------------------------------