├── .gitignore ├── LICENSE ├── README.md ├── _site ├── 404.html ├── about │ └── index.html ├── assets │ ├── main.css │ └── minima-social-icons.svg ├── feed.xml ├── index.html └── index.markdown ├── 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 ├── scripts ├── test_tpt.sh ├── test_tpt_cocoop.sh └── test_tpt_coop.sh ├── tpt_classification.py └── utils ├── __init__.py └── tools.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/README.md -------------------------------------------------------------------------------- /_site/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/_site/404.html -------------------------------------------------------------------------------- /_site/about/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/_site/about/index.html -------------------------------------------------------------------------------- /_site/assets/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/_site/assets/main.css -------------------------------------------------------------------------------- /_site/assets/minima-social-icons.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/_site/assets/minima-social-icons.svg -------------------------------------------------------------------------------- /_site/feed.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/_site/feed.xml -------------------------------------------------------------------------------- /_site/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/_site/index.html -------------------------------------------------------------------------------- /_site/index.markdown: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/_site/index.markdown -------------------------------------------------------------------------------- /clip/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/clip/__init__.py -------------------------------------------------------------------------------- /clip/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/clip/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /clip/clip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/clip/clip.py -------------------------------------------------------------------------------- /clip/cocoop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/clip/cocoop.py -------------------------------------------------------------------------------- /clip/custom_clip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/clip/custom_clip.py -------------------------------------------------------------------------------- /clip/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/clip/model.py -------------------------------------------------------------------------------- /clip/simple_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/clip/simple_tokenizer.py -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/augmix_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/data/augmix_ops.py -------------------------------------------------------------------------------- /data/cls_to_names.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/data/cls_to_names.py -------------------------------------------------------------------------------- /data/datautils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/data/datautils.py -------------------------------------------------------------------------------- /data/fewshot_datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/data/fewshot_datasets.py -------------------------------------------------------------------------------- /data/hoi_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/data/hoi_dataset.py -------------------------------------------------------------------------------- /data/imagenet_variants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/data/imagenet_variants.py -------------------------------------------------------------------------------- /data/imagnet_prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/data/imagnet_prompts.py -------------------------------------------------------------------------------- /scripts/test_tpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/scripts/test_tpt.sh -------------------------------------------------------------------------------- /scripts/test_tpt_cocoop.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/scripts/test_tpt_cocoop.sh -------------------------------------------------------------------------------- /scripts/test_tpt_coop.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/scripts/test_tpt_coop.sh -------------------------------------------------------------------------------- /tpt_classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/tpt_classification.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | from .tools import * 2 | -------------------------------------------------------------------------------- /utils/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azshue/TPT/HEAD/utils/tools.py --------------------------------------------------------------------------------