├── .gitignore ├── DATASETS.md ├── LICENSE ├── README.md ├── apt ├── OODRB │ ├── README.md │ ├── __init__.py │ ├── cifar.py │ ├── dataset.py │ ├── image_ids │ │ ├── CIFAR10-R_image_ids.txt │ │ ├── CINIC-10_image_ids.txt │ │ ├── imagenet-a_image_ids.txt │ │ ├── imagenet-r_image_ids.txt │ │ ├── imagenet-v2_image_ids.txt │ │ ├── imagenet_test_image_ids.txt │ │ └── objectnet_image_ids.txt │ └── imagenet.py ├── backbone │ └── README.md ├── clip │ ├── __init__.py │ ├── bpe_simple_vocab_16e6.txt.gz │ ├── clip.py │ ├── model.py │ └── simple_tokenizer.py ├── configs │ ├── datasets │ │ ├── caltech101.yaml │ │ ├── dtd.yaml │ │ ├── eurosat.yaml │ │ ├── fgvc_aircraft.yaml │ │ ├── food101.yaml │ │ ├── imagenet.yaml │ │ ├── imagenet_a.yaml │ │ ├── imagenet_r.yaml │ │ ├── imagenet_sketch.yaml │ │ ├── imagenetv2.yaml │ │ ├── oxford_flowers.yaml │ │ ├── oxford_pets.yaml │ │ ├── stanford_cars.yaml │ │ ├── sun397.yaml │ │ └── ucf101.yaml │ └── trainers │ │ ├── APT │ │ ├── rn101.yaml │ │ ├── rn101_ep50.yaml │ │ ├── rn50.yaml │ │ ├── rn50_ctxv1.yaml │ │ ├── rn50_ep100.yaml │ │ ├── rn50_ep50.yaml │ │ ├── rn50_ep50_ctxv1.yaml │ │ ├── rn50_val.yaml │ │ ├── vit_b16.yaml │ │ ├── vit_b16_ctxv1.yaml │ │ ├── vit_b16_ep100.yaml │ │ ├── vit_b16_ep100_ctxv1.yaml │ │ ├── vit_b16_ep50.yaml │ │ ├── vit_b16_ep50_ctxv1.yaml │ │ ├── vit_b32.yaml │ │ ├── vit_b32_ep100.yaml │ │ ├── vit_b32_ep20.yaml │ │ ├── vit_b32_ep50.yaml │ │ └── vit_b32_st.yaml │ │ └── CoOp │ │ ├── rn101.yaml │ │ ├── rn101_ep50.yaml │ │ ├── rn50.yaml │ │ ├── rn50_ctxv1.yaml │ │ ├── rn50_ep100.yaml │ │ ├── rn50_ep50.yaml │ │ ├── rn50_ep50_ctxv1.yaml │ │ ├── rn50_val.yaml │ │ ├── vit_b16.yaml │ │ ├── vit_b16_ctxv1.yaml │ │ ├── vit_b16_ep100.yaml │ │ ├── vit_b16_ep100_ctxv1.yaml │ │ ├── vit_b16_ep50.yaml │ │ ├── vit_b16_ep50_ctxv1.yaml │ │ ├── vit_b32.yaml │ │ ├── vit_b32_ep20.yaml │ │ └── vit_b32_ep50.yaml ├── datasets │ ├── __init__.py │ ├── caltech101.py │ ├── dtd.py │ ├── eurosat.py │ ├── fgvc_aircraft.py │ ├── food101.py │ ├── imagenet.py │ ├── imagenet_a.py │ ├── imagenet_r.py │ ├── imagenet_sketch.py │ ├── imagenetv2.py │ ├── oxford_flowers.py │ ├── oxford_pets.py │ ├── stanford_cars.py │ ├── sun397.py │ └── ucf101.py ├── evaluate.py ├── interpret_prompt.py ├── scripts │ ├── APT.sh │ ├── CoOp.sh │ └── eval.sh ├── train.py ├── trainers │ ├── __init__.py │ ├── apt.py │ └── imagenet_templates.py └── utils.py ├── assets └── one_word_boost.png └── requirements.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/.gitignore -------------------------------------------------------------------------------- /DATASETS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/DATASETS.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/README.md -------------------------------------------------------------------------------- /apt/OODRB/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/README.md -------------------------------------------------------------------------------- /apt/OODRB/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apt/OODRB/cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/cifar.py -------------------------------------------------------------------------------- /apt/OODRB/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/dataset.py -------------------------------------------------------------------------------- /apt/OODRB/image_ids/CIFAR10-R_image_ids.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/image_ids/CIFAR10-R_image_ids.txt -------------------------------------------------------------------------------- /apt/OODRB/image_ids/CINIC-10_image_ids.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/image_ids/CINIC-10_image_ids.txt -------------------------------------------------------------------------------- /apt/OODRB/image_ids/imagenet-a_image_ids.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/image_ids/imagenet-a_image_ids.txt -------------------------------------------------------------------------------- /apt/OODRB/image_ids/imagenet-r_image_ids.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/image_ids/imagenet-r_image_ids.txt -------------------------------------------------------------------------------- /apt/OODRB/image_ids/imagenet-v2_image_ids.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/image_ids/imagenet-v2_image_ids.txt -------------------------------------------------------------------------------- /apt/OODRB/image_ids/imagenet_test_image_ids.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/image_ids/imagenet_test_image_ids.txt -------------------------------------------------------------------------------- /apt/OODRB/image_ids/objectnet_image_ids.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/image_ids/objectnet_image_ids.txt -------------------------------------------------------------------------------- /apt/OODRB/imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/OODRB/imagenet.py -------------------------------------------------------------------------------- /apt/backbone/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/backbone/README.md -------------------------------------------------------------------------------- /apt/clip/__init__.py: -------------------------------------------------------------------------------- 1 | from .clip import * 2 | -------------------------------------------------------------------------------- /apt/clip/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/clip/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /apt/clip/clip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/clip/clip.py -------------------------------------------------------------------------------- /apt/clip/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/clip/model.py -------------------------------------------------------------------------------- /apt/clip/simple_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/clip/simple_tokenizer.py -------------------------------------------------------------------------------- /apt/configs/datasets/caltech101.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "Caltech101" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/dtd.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "DescribableTextures" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/eurosat.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "EuroSAT" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/fgvc_aircraft.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "FGVCAircraft" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/food101.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "Food101" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/imagenet.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNet" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/imagenet_a.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNetA" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/imagenet_r.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNetR" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/imagenet_sketch.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNetSketch" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/imagenetv2.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNetV2" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/oxford_flowers.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "OxfordFlowers" -------------------------------------------------------------------------------- /apt/configs/datasets/oxford_pets.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "OxfordPets" -------------------------------------------------------------------------------- /apt/configs/datasets/stanford_cars.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "StanfordCars" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/sun397.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "SUN397" 3 | -------------------------------------------------------------------------------- /apt/configs/datasets/ucf101.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "UCF101" 3 | -------------------------------------------------------------------------------- /apt/configs/trainers/APT/rn101.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/rn101.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/rn101_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/rn101_ep50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/rn50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/rn50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/rn50_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/rn50_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/rn50_ep100.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/rn50_ep100.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/rn50_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/rn50_ep50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/rn50_ep50_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/rn50_ep50_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/rn50_val.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/rn50_val.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b16.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b16.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b16_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b16_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b16_ep100.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b16_ep100.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b16_ep100_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b16_ep100_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b16_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b16_ep50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b16_ep50_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b16_ep50_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b32.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b32.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b32_ep100.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b32_ep100.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b32_ep20.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b32_ep20.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b32_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b32_ep50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/APT/vit_b32_st.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/APT/vit_b32_st.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/rn101.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/rn101.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/rn101_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/rn101_ep50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/rn50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/rn50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/rn50_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/rn50_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/rn50_ep100.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/rn50_ep100.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/rn50_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/rn50_ep50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/rn50_ep50_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/rn50_ep50_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/rn50_val.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/rn50_val.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b16.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b16.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b16_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b16_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b16_ep100.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b16_ep100.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b16_ep100_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b16_ep100_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b16_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b16_ep50.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b16_ep50_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b16_ep50_ctxv1.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b32.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b32.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b32_ep20.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b32_ep20.yaml -------------------------------------------------------------------------------- /apt/configs/trainers/CoOp/vit_b32_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/configs/trainers/CoOp/vit_b32_ep50.yaml -------------------------------------------------------------------------------- /apt/datasets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apt/datasets/caltech101.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/caltech101.py -------------------------------------------------------------------------------- /apt/datasets/dtd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/dtd.py -------------------------------------------------------------------------------- /apt/datasets/eurosat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/eurosat.py -------------------------------------------------------------------------------- /apt/datasets/fgvc_aircraft.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/fgvc_aircraft.py -------------------------------------------------------------------------------- /apt/datasets/food101.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/food101.py -------------------------------------------------------------------------------- /apt/datasets/imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/imagenet.py -------------------------------------------------------------------------------- /apt/datasets/imagenet_a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/imagenet_a.py -------------------------------------------------------------------------------- /apt/datasets/imagenet_r.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/imagenet_r.py -------------------------------------------------------------------------------- /apt/datasets/imagenet_sketch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/imagenet_sketch.py -------------------------------------------------------------------------------- /apt/datasets/imagenetv2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/imagenetv2.py -------------------------------------------------------------------------------- /apt/datasets/oxford_flowers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/oxford_flowers.py -------------------------------------------------------------------------------- /apt/datasets/oxford_pets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/oxford_pets.py -------------------------------------------------------------------------------- /apt/datasets/stanford_cars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/stanford_cars.py -------------------------------------------------------------------------------- /apt/datasets/sun397.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/sun397.py -------------------------------------------------------------------------------- /apt/datasets/ucf101.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/datasets/ucf101.py -------------------------------------------------------------------------------- /apt/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/evaluate.py -------------------------------------------------------------------------------- /apt/interpret_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/interpret_prompt.py -------------------------------------------------------------------------------- /apt/scripts/APT.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/scripts/APT.sh -------------------------------------------------------------------------------- /apt/scripts/CoOp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/scripts/CoOp.sh -------------------------------------------------------------------------------- /apt/scripts/eval.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/scripts/eval.sh -------------------------------------------------------------------------------- /apt/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/train.py -------------------------------------------------------------------------------- /apt/trainers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apt/trainers/apt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/trainers/apt.py -------------------------------------------------------------------------------- /apt/trainers/imagenet_templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/trainers/imagenet_templates.py -------------------------------------------------------------------------------- /apt/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/apt/utils.py -------------------------------------------------------------------------------- /assets/one_word_boost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/assets/one_word_boost.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TreeLLi/APT/HEAD/requirements.txt --------------------------------------------------------------------------------