├── .gitignore ├── README.md ├── configs ├── CUB │ ├── conformer_scm_small_patch16_224.yaml │ ├── deit_scm_base_patch16_224.yaml │ ├── deit_scm_small_patch16_224.yaml │ ├── deit_tscam_base_patch16_224.yaml │ ├── deit_tscam_small_patch16_224.yaml │ ├── deit_tscam_tiny_patch16_224.yaml │ └── vit_scm_small_patch16_224.yaml └── ILSVRC │ ├── conformer_tscam_small_patch16_224.yaml │ ├── deit_scm_base_patch16_224.yaml │ ├── deit_scm_small_patch16_224.yaml │ ├── deit_tscam_base_patch16_224.yaml │ ├── deit_tscam_small_patch16_224.yaml │ └── deit_tscam_tiny_patch16_224.yaml ├── data └── ImageNet_ILSVRC2012 │ └── ILSVRC2012_list │ ├── train.txt │ ├── val_folder.txt │ └── val_folder_new.txt ├── environment.yml ├── figures ├── Arch-min.png ├── ECCV-2022_poster.png ├── Intro-min.png └── comparison-min.png ├── lib ├── cams.py ├── cams_deit.py ├── config │ ├── __init__.py │ ├── default.py │ └── utils.py ├── core │ ├── __init__.py │ ├── engine.py │ └── functions.py ├── datasets │ ├── __init__.py │ ├── cub.py │ └── imagenet.py ├── models │ ├── __init__.py │ ├── conformer.py │ ├── deit.py │ ├── graphFusion.py │ └── vision_transformer.py └── utils.py └── tools_cam ├── _init_paths.py ├── test_cam.py └── train_cam.py /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.py[cod] 3 | *$py.class 4 | 5 | log/ 6 | err.* 7 | out.* 8 | ckpt/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/README.md -------------------------------------------------------------------------------- /configs/CUB/conformer_scm_small_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/CUB/conformer_scm_small_patch16_224.yaml -------------------------------------------------------------------------------- /configs/CUB/deit_scm_base_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/CUB/deit_scm_base_patch16_224.yaml -------------------------------------------------------------------------------- /configs/CUB/deit_scm_small_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/CUB/deit_scm_small_patch16_224.yaml -------------------------------------------------------------------------------- /configs/CUB/deit_tscam_base_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/CUB/deit_tscam_base_patch16_224.yaml -------------------------------------------------------------------------------- /configs/CUB/deit_tscam_small_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/CUB/deit_tscam_small_patch16_224.yaml -------------------------------------------------------------------------------- /configs/CUB/deit_tscam_tiny_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/CUB/deit_tscam_tiny_patch16_224.yaml -------------------------------------------------------------------------------- /configs/CUB/vit_scm_small_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/CUB/vit_scm_small_patch16_224.yaml -------------------------------------------------------------------------------- /configs/ILSVRC/conformer_tscam_small_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/ILSVRC/conformer_tscam_small_patch16_224.yaml -------------------------------------------------------------------------------- /configs/ILSVRC/deit_scm_base_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/ILSVRC/deit_scm_base_patch16_224.yaml -------------------------------------------------------------------------------- /configs/ILSVRC/deit_scm_small_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/ILSVRC/deit_scm_small_patch16_224.yaml -------------------------------------------------------------------------------- /configs/ILSVRC/deit_tscam_base_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/ILSVRC/deit_tscam_base_patch16_224.yaml -------------------------------------------------------------------------------- /configs/ILSVRC/deit_tscam_small_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/ILSVRC/deit_tscam_small_patch16_224.yaml -------------------------------------------------------------------------------- /configs/ILSVRC/deit_tscam_tiny_patch16_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/configs/ILSVRC/deit_tscam_tiny_patch16_224.yaml -------------------------------------------------------------------------------- /data/ImageNet_ILSVRC2012/ILSVRC2012_list/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/data/ImageNet_ILSVRC2012/ILSVRC2012_list/train.txt -------------------------------------------------------------------------------- /data/ImageNet_ILSVRC2012/ILSVRC2012_list/val_folder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/data/ImageNet_ILSVRC2012/ILSVRC2012_list/val_folder.txt -------------------------------------------------------------------------------- /data/ImageNet_ILSVRC2012/ILSVRC2012_list/val_folder_new.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/data/ImageNet_ILSVRC2012/ILSVRC2012_list/val_folder_new.txt -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/environment.yml -------------------------------------------------------------------------------- /figures/Arch-min.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/figures/Arch-min.png -------------------------------------------------------------------------------- /figures/ECCV-2022_poster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/figures/ECCV-2022_poster.png -------------------------------------------------------------------------------- /figures/Intro-min.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/figures/Intro-min.png -------------------------------------------------------------------------------- /figures/comparison-min.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/figures/comparison-min.png -------------------------------------------------------------------------------- /lib/cams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/cams.py -------------------------------------------------------------------------------- /lib/cams_deit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/cams_deit.py -------------------------------------------------------------------------------- /lib/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/config/__init__.py -------------------------------------------------------------------------------- /lib/config/default.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/config/default.py -------------------------------------------------------------------------------- /lib/config/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/config/utils.py -------------------------------------------------------------------------------- /lib/core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/core/engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/core/engine.py -------------------------------------------------------------------------------- /lib/core/functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/core/functions.py -------------------------------------------------------------------------------- /lib/datasets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/datasets/cub.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/datasets/cub.py -------------------------------------------------------------------------------- /lib/datasets/imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/datasets/imagenet.py -------------------------------------------------------------------------------- /lib/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/models/__init__.py -------------------------------------------------------------------------------- /lib/models/conformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/models/conformer.py -------------------------------------------------------------------------------- /lib/models/deit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/models/deit.py -------------------------------------------------------------------------------- /lib/models/graphFusion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/models/graphFusion.py -------------------------------------------------------------------------------- /lib/models/vision_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/models/vision_transformer.py -------------------------------------------------------------------------------- /lib/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/lib/utils.py -------------------------------------------------------------------------------- /tools_cam/_init_paths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/tools_cam/_init_paths.py -------------------------------------------------------------------------------- /tools_cam/test_cam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/tools_cam/test_cam.py -------------------------------------------------------------------------------- /tools_cam/train_cam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbai98/SCM/HEAD/tools_cam/train_cam.py --------------------------------------------------------------------------------