├── .gitignore ├── README.md ├── ease_of_teaching ├── dataGenerator.py ├── forget_train.py ├── game.py ├── mixed_language_forget.py ├── mixed_language_forget_nodup.py ├── mixed_language_forget_samebatch.py ├── models.py ├── parser.py └── utility.py ├── llf_ke ├── KE_model.py ├── configs │ └── base_config.py ├── constants.py ├── data │ ├── __init__.py │ ├── aircrafts.py │ ├── cifar10.py │ ├── cifar100.py │ ├── cub.py │ ├── custom_dataset.py │ ├── datasets.py │ ├── dog.py │ ├── flower.py │ ├── mit.py │ ├── preprocessing │ │ ├── .gitignore │ │ ├── cifar10.py │ │ └── cifar100.py │ ├── py_transform.py │ └── tinyImagenet.py ├── layers │ ├── CS_KD.py │ ├── __init__.py │ ├── bn_type.py │ ├── conv_type.py │ ├── linear_type.py │ └── normalize_layer.py ├── models │ ├── __init__.py │ ├── builder.py │ ├── common.py │ ├── module_util.py │ ├── split_densenet.py │ ├── split_googlenet.py │ ├── split_resnet.py │ └── split_vgg.py ├── train_KE_cls.py ├── train_KE_cls_LW.py ├── trainers │ ├── .DS_Store │ ├── __init__.py │ └── default_cls.py └── utils │ ├── __init__.py │ ├── csv_utils.py │ ├── eval_utils.py │ ├── gpu_utils.py │ ├── log_utils.py │ ├── logging.py │ ├── model_profile.py │ ├── net_utils.py │ ├── os_utils.py │ ├── path_utils.py │ └── schedulers.py ├── requirements.txt └── targeted_forgetting └── mixed_group_training.py /.gitignore: -------------------------------------------------------------------------------- 1 | **/__pycache__/ 2 | *.pyc 3 | venv/ 4 | wandb/ 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/README.md -------------------------------------------------------------------------------- /ease_of_teaching/dataGenerator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/dataGenerator.py -------------------------------------------------------------------------------- /ease_of_teaching/forget_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/forget_train.py -------------------------------------------------------------------------------- /ease_of_teaching/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/game.py -------------------------------------------------------------------------------- /ease_of_teaching/mixed_language_forget.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/mixed_language_forget.py -------------------------------------------------------------------------------- /ease_of_teaching/mixed_language_forget_nodup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/mixed_language_forget_nodup.py -------------------------------------------------------------------------------- /ease_of_teaching/mixed_language_forget_samebatch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/mixed_language_forget_samebatch.py -------------------------------------------------------------------------------- /ease_of_teaching/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/models.py -------------------------------------------------------------------------------- /ease_of_teaching/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/parser.py -------------------------------------------------------------------------------- /ease_of_teaching/utility.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/ease_of_teaching/utility.py -------------------------------------------------------------------------------- /llf_ke/KE_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/KE_model.py -------------------------------------------------------------------------------- /llf_ke/configs/base_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/configs/base_config.py -------------------------------------------------------------------------------- /llf_ke/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/constants.py -------------------------------------------------------------------------------- /llf_ke/data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/__init__.py -------------------------------------------------------------------------------- /llf_ke/data/aircrafts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/aircrafts.py -------------------------------------------------------------------------------- /llf_ke/data/cifar10.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/cifar10.py -------------------------------------------------------------------------------- /llf_ke/data/cifar100.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/cifar100.py -------------------------------------------------------------------------------- /llf_ke/data/cub.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/cub.py -------------------------------------------------------------------------------- /llf_ke/data/custom_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/custom_dataset.py -------------------------------------------------------------------------------- /llf_ke/data/datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/datasets.py -------------------------------------------------------------------------------- /llf_ke/data/dog.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/dog.py -------------------------------------------------------------------------------- /llf_ke/data/flower.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/flower.py -------------------------------------------------------------------------------- /llf_ke/data/mit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/mit.py -------------------------------------------------------------------------------- /llf_ke/data/preprocessing/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/preprocessing/.gitignore -------------------------------------------------------------------------------- /llf_ke/data/preprocessing/cifar10.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/preprocessing/cifar10.py -------------------------------------------------------------------------------- /llf_ke/data/preprocessing/cifar100.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/preprocessing/cifar100.py -------------------------------------------------------------------------------- /llf_ke/data/py_transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/py_transform.py -------------------------------------------------------------------------------- /llf_ke/data/tinyImagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/data/tinyImagenet.py -------------------------------------------------------------------------------- /llf_ke/layers/CS_KD.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/layers/CS_KD.py -------------------------------------------------------------------------------- /llf_ke/layers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llf_ke/layers/bn_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/layers/bn_type.py -------------------------------------------------------------------------------- /llf_ke/layers/conv_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/layers/conv_type.py -------------------------------------------------------------------------------- /llf_ke/layers/linear_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/layers/linear_type.py -------------------------------------------------------------------------------- /llf_ke/layers/normalize_layer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/layers/normalize_layer.py -------------------------------------------------------------------------------- /llf_ke/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/models/__init__.py -------------------------------------------------------------------------------- /llf_ke/models/builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/models/builder.py -------------------------------------------------------------------------------- /llf_ke/models/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/models/common.py -------------------------------------------------------------------------------- /llf_ke/models/module_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/models/module_util.py -------------------------------------------------------------------------------- /llf_ke/models/split_densenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/models/split_densenet.py -------------------------------------------------------------------------------- /llf_ke/models/split_googlenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/models/split_googlenet.py -------------------------------------------------------------------------------- /llf_ke/models/split_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/models/split_resnet.py -------------------------------------------------------------------------------- /llf_ke/models/split_vgg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/models/split_vgg.py -------------------------------------------------------------------------------- /llf_ke/train_KE_cls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/train_KE_cls.py -------------------------------------------------------------------------------- /llf_ke/train_KE_cls_LW.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/train_KE_cls_LW.py -------------------------------------------------------------------------------- /llf_ke/trainers/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/trainers/.DS_Store -------------------------------------------------------------------------------- /llf_ke/trainers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llf_ke/trainers/default_cls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/trainers/default_cls.py -------------------------------------------------------------------------------- /llf_ke/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llf_ke/utils/csv_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/csv_utils.py -------------------------------------------------------------------------------- /llf_ke/utils/eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/eval_utils.py -------------------------------------------------------------------------------- /llf_ke/utils/gpu_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/gpu_utils.py -------------------------------------------------------------------------------- /llf_ke/utils/log_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/log_utils.py -------------------------------------------------------------------------------- /llf_ke/utils/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/logging.py -------------------------------------------------------------------------------- /llf_ke/utils/model_profile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/model_profile.py -------------------------------------------------------------------------------- /llf_ke/utils/net_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/net_utils.py -------------------------------------------------------------------------------- /llf_ke/utils/os_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/os_utils.py -------------------------------------------------------------------------------- /llf_ke/utils/path_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/path_utils.py -------------------------------------------------------------------------------- /llf_ke/utils/schedulers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/llf_ke/utils/schedulers.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/requirements.txt -------------------------------------------------------------------------------- /targeted_forgetting/mixed_group_training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlml/fortuitous_forgetting/HEAD/targeted_forgetting/mixed_group_training.py --------------------------------------------------------------------------------