├── LICENSE ├── README.md ├── clip ├── __init__.py ├── bpe_simple_vocab_16e6.txt.gz ├── clip.py ├── cocoop.py ├── custom_clip.py ├── model.py └── simple_tokenizer.py ├── data ├── __init__.py ├── augmix_ops.py ├── cls_to_names.py ├── datautils.py ├── fewshot_datasets.py ├── hoi_dataset.py ├── imagenet_variants.py └── imagnet_prompts.py ├── inlierness.png ├── main.py ├── mode.png ├── mta.py ├── scripts ├── test_tpt.sh ├── test_tpt_cocoop.sh └── test_tpt_coop.sh └── utils ├── __init__.py └── tools.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/README.md -------------------------------------------------------------------------------- /clip/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/clip/__init__.py -------------------------------------------------------------------------------- /clip/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/clip/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /clip/clip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/clip/clip.py -------------------------------------------------------------------------------- /clip/cocoop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/clip/cocoop.py -------------------------------------------------------------------------------- /clip/custom_clip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/clip/custom_clip.py -------------------------------------------------------------------------------- /clip/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/clip/model.py -------------------------------------------------------------------------------- /clip/simple_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/clip/simple_tokenizer.py -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/augmix_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/data/augmix_ops.py -------------------------------------------------------------------------------- /data/cls_to_names.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/data/cls_to_names.py -------------------------------------------------------------------------------- /data/datautils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/data/datautils.py -------------------------------------------------------------------------------- /data/fewshot_datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/data/fewshot_datasets.py -------------------------------------------------------------------------------- /data/hoi_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/data/hoi_dataset.py -------------------------------------------------------------------------------- /data/imagenet_variants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/data/imagenet_variants.py -------------------------------------------------------------------------------- /data/imagnet_prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/data/imagnet_prompts.py -------------------------------------------------------------------------------- /inlierness.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/inlierness.png -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/main.py -------------------------------------------------------------------------------- /mode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/mode.png -------------------------------------------------------------------------------- /mta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/mta.py -------------------------------------------------------------------------------- /scripts/test_tpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/scripts/test_tpt.sh -------------------------------------------------------------------------------- /scripts/test_tpt_cocoop.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/scripts/test_tpt_cocoop.sh -------------------------------------------------------------------------------- /scripts/test_tpt_coop.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/scripts/test_tpt_coop.sh -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | from .tools import * 2 | -------------------------------------------------------------------------------- /utils/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MaxZanella/MTA/HEAD/utils/tools.py --------------------------------------------------------------------------------