├── .gitignore ├── GLMC-2023 ├── Trainer.py ├── imbalance_data │ ├── cifar100Imbanlance.py │ ├── cifar10Imbanlance.py │ └── dataset_lt_data.py ├── main.py ├── model │ ├── ResNet_cifar.py │ └── Resnet_LT.py ├── parse.py ├── run.sh ├── sam.py ├── test.py └── utils │ ├── ParamsUtils.py │ ├── autoaug.py │ ├── eval_funcs.py │ ├── moco_loader.py │ ├── randaugment.py │ ├── regularizers.py │ └── util.py ├── LICENSE ├── README.md ├── assets └── overview.png ├── cifar_train.py ├── cifar_train_sam.py ├── datasets ├── data_txt │ ├── ImageNet_LT_test.txt │ ├── ImageNet_LT_train.txt │ ├── iNaturalist18_train.txt │ └── iNaturalist18_val.txt ├── imagenet.py ├── ina2018.py └── sampler.py ├── hessian.py ├── hessian_analysis.py ├── imbalance_cifar.py ├── imnet_train.py ├── imnet_train_sam.py ├── inat_train.py ├── inat_train_sam.py ├── losses.py ├── models ├── __init__.py ├── resnet.py └── resnet_cifar.py ├── run.sh ├── sam.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/.gitignore -------------------------------------------------------------------------------- /GLMC-2023/Trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/Trainer.py -------------------------------------------------------------------------------- /GLMC-2023/imbalance_data/cifar100Imbanlance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/imbalance_data/cifar100Imbanlance.py -------------------------------------------------------------------------------- /GLMC-2023/imbalance_data/cifar10Imbanlance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/imbalance_data/cifar10Imbanlance.py -------------------------------------------------------------------------------- /GLMC-2023/imbalance_data/dataset_lt_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/imbalance_data/dataset_lt_data.py -------------------------------------------------------------------------------- /GLMC-2023/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/main.py -------------------------------------------------------------------------------- /GLMC-2023/model/ResNet_cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/model/ResNet_cifar.py -------------------------------------------------------------------------------- /GLMC-2023/model/Resnet_LT.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/model/Resnet_LT.py -------------------------------------------------------------------------------- /GLMC-2023/parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/parse.py -------------------------------------------------------------------------------- /GLMC-2023/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/run.sh -------------------------------------------------------------------------------- /GLMC-2023/sam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/sam.py -------------------------------------------------------------------------------- /GLMC-2023/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/test.py -------------------------------------------------------------------------------- /GLMC-2023/utils/ParamsUtils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/utils/ParamsUtils.py -------------------------------------------------------------------------------- /GLMC-2023/utils/autoaug.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/utils/autoaug.py -------------------------------------------------------------------------------- /GLMC-2023/utils/eval_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/utils/eval_funcs.py -------------------------------------------------------------------------------- /GLMC-2023/utils/moco_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/utils/moco_loader.py -------------------------------------------------------------------------------- /GLMC-2023/utils/randaugment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/utils/randaugment.py -------------------------------------------------------------------------------- /GLMC-2023/utils/regularizers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/utils/regularizers.py -------------------------------------------------------------------------------- /GLMC-2023/utils/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/GLMC-2023/utils/util.py -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/README.md -------------------------------------------------------------------------------- /assets/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/assets/overview.png -------------------------------------------------------------------------------- /cifar_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/cifar_train.py -------------------------------------------------------------------------------- /cifar_train_sam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/cifar_train_sam.py -------------------------------------------------------------------------------- /datasets/data_txt/ImageNet_LT_test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/datasets/data_txt/ImageNet_LT_test.txt -------------------------------------------------------------------------------- /datasets/data_txt/ImageNet_LT_train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/datasets/data_txt/ImageNet_LT_train.txt -------------------------------------------------------------------------------- /datasets/data_txt/iNaturalist18_train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/datasets/data_txt/iNaturalist18_train.txt -------------------------------------------------------------------------------- /datasets/data_txt/iNaturalist18_val.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/datasets/data_txt/iNaturalist18_val.txt -------------------------------------------------------------------------------- /datasets/imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/datasets/imagenet.py -------------------------------------------------------------------------------- /datasets/ina2018.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/datasets/ina2018.py -------------------------------------------------------------------------------- /datasets/sampler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/datasets/sampler.py -------------------------------------------------------------------------------- /hessian.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/hessian.py -------------------------------------------------------------------------------- /hessian_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/hessian_analysis.py -------------------------------------------------------------------------------- /imbalance_cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/imbalance_cifar.py -------------------------------------------------------------------------------- /imnet_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/imnet_train.py -------------------------------------------------------------------------------- /imnet_train_sam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/imnet_train_sam.py -------------------------------------------------------------------------------- /inat_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/inat_train.py -------------------------------------------------------------------------------- /inat_train_sam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/inat_train_sam.py -------------------------------------------------------------------------------- /losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/losses.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/models/resnet.py -------------------------------------------------------------------------------- /models/resnet_cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/models/resnet_cifar.py -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/run.sh -------------------------------------------------------------------------------- /sam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/sam.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/val-iisc/Saddle-LongTail/HEAD/utils.py --------------------------------------------------------------------------------