├── .gitignore ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── SUPPORT.md ├── classification ├── __init__.py ├── build.py ├── focal_transformer.py ├── focal_transformer_v2.py └── get_started.md ├── config.py ├── configs ├── focal_base_patch4_window7_224.yaml ├── focal_base_useconv_patch4_window7_224.yaml ├── focal_small_patch4_window7_224.yaml ├── focal_small_useconv_patch4_window7_224.yaml ├── focal_tiny_patch4_window7_224.yaml ├── focal_tiny_useconv_patch4_window7_224.yaml ├── focalv2_base_useconv_patch4_window7_224.yaml ├── focalv2_small_useconv_patch4_window7_224.yaml └── focalv2_tiny_useconv_patch4_window7_224.yaml ├── data ├── __init__.py ├── build.py ├── cached_image_folder.py ├── samplers.py ├── zipdata.py └── zipreader.py ├── detection └── get_started.md ├── figures └── focal-transformer-teaser.png ├── logger.py ├── lr_scheduler.py ├── main.py ├── optimizer.py ├── segmentation └── get_started.md ├── tools └── profile_roll_unfold.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/SECURITY.md -------------------------------------------------------------------------------- /SUPPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/SUPPORT.md -------------------------------------------------------------------------------- /classification/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/classification/__init__.py -------------------------------------------------------------------------------- /classification/build.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/classification/build.py -------------------------------------------------------------------------------- /classification/focal_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/classification/focal_transformer.py -------------------------------------------------------------------------------- /classification/focal_transformer_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/classification/focal_transformer_v2.py -------------------------------------------------------------------------------- /classification/get_started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/classification/get_started.md -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/config.py -------------------------------------------------------------------------------- /configs/focal_base_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focal_base_patch4_window7_224.yaml -------------------------------------------------------------------------------- /configs/focal_base_useconv_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focal_base_useconv_patch4_window7_224.yaml -------------------------------------------------------------------------------- /configs/focal_small_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focal_small_patch4_window7_224.yaml -------------------------------------------------------------------------------- /configs/focal_small_useconv_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focal_small_useconv_patch4_window7_224.yaml -------------------------------------------------------------------------------- /configs/focal_tiny_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focal_tiny_patch4_window7_224.yaml -------------------------------------------------------------------------------- /configs/focal_tiny_useconv_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focal_tiny_useconv_patch4_window7_224.yaml -------------------------------------------------------------------------------- /configs/focalv2_base_useconv_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focalv2_base_useconv_patch4_window7_224.yaml -------------------------------------------------------------------------------- /configs/focalv2_small_useconv_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focalv2_small_useconv_patch4_window7_224.yaml -------------------------------------------------------------------------------- /configs/focalv2_tiny_useconv_patch4_window7_224.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/configs/focalv2_tiny_useconv_patch4_window7_224.yaml -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/data/__init__.py -------------------------------------------------------------------------------- /data/build.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/data/build.py -------------------------------------------------------------------------------- /data/cached_image_folder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/data/cached_image_folder.py -------------------------------------------------------------------------------- /data/samplers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/data/samplers.py -------------------------------------------------------------------------------- /data/zipdata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/data/zipdata.py -------------------------------------------------------------------------------- /data/zipreader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/data/zipreader.py -------------------------------------------------------------------------------- /detection/get_started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/detection/get_started.md -------------------------------------------------------------------------------- /figures/focal-transformer-teaser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/figures/focal-transformer-teaser.png -------------------------------------------------------------------------------- /logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/logger.py -------------------------------------------------------------------------------- /lr_scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/lr_scheduler.py -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/main.py -------------------------------------------------------------------------------- /optimizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/optimizer.py -------------------------------------------------------------------------------- /segmentation/get_started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/segmentation/get_started.md -------------------------------------------------------------------------------- /tools/profile_roll_unfold.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/tools/profile_roll_unfold.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/Focal-Transformer/HEAD/utils.py --------------------------------------------------------------------------------