├── .idea ├── ALIGN.iml ├── inspectionProfiles │ └── profiles_settings.xml ├── maple.iml ├── misc.xml ├── modules.xml ├── vcs.xml └── workspace.xml ├── README.md ├── clip ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-37.pyc │ ├── __init__.cpython-38.pyc │ ├── clip.cpython-37.pyc │ ├── clip.cpython-38.pyc │ ├── model.cpython-37.pyc │ ├── model.cpython-38.pyc │ ├── simple_tokenizer.cpython-37.pyc │ └── simple_tokenizer.cpython-38.pyc ├── bpe_simple_vocab_16e6.txt.gz ├── clip.py ├── model.py └── simple_tokenizer.py ├── clip_words.csv ├── 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 │ ├── CoCoOp │ ├── vit_b16_c16_ep10_batch1.yaml │ ├── vit_b16_c4_ep10_batch1.yaml │ ├── vit_b16_c4_ep10_batch1_ctxv1.yaml │ └── vit_b16_c8_ep10_batch1.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_ep100.yaml │ ├── vit_b16_ep50.yaml │ ├── vit_b32.yaml │ └── vit_b32_ep50.yaml │ ├── IVLP │ ├── vit_b16_c2_ep5_batch4_2+2ctx.yaml │ └── vit_b16_c2_ep5_batch4_4ctx_language_only.yaml │ ├── MMP │ ├── sun397.yaml │ ├── vit_b16_c2_ep5_batch4_2ctx.yaml │ └── vit_h.yaml │ ├── MaPLe │ ├── vit_b16_c2_ep5_batch4_2ctx.yaml │ └── vit_b16_c2_ep5_batch4_2ctx_cross_datasets.yaml │ └── VPT │ └── vit_b16_c2_ep5_batch4_4.yaml ├── datasets ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-37.pyc │ ├── __init__.cpython-38.pyc │ ├── caltech101.cpython-37.pyc │ ├── caltech101.cpython-38.pyc │ ├── dtd.cpython-37.pyc │ ├── dtd.cpython-38.pyc │ ├── eurosat.cpython-37.pyc │ ├── eurosat.cpython-38.pyc │ ├── fgvc_aircraft.cpython-37.pyc │ ├── fgvc_aircraft.cpython-38.pyc │ ├── food101.cpython-37.pyc │ ├── food101.cpython-38.pyc │ ├── imagenet.cpython-37.pyc │ ├── imagenet.cpython-38.pyc │ ├── imagenet_a.cpython-37.pyc │ ├── imagenet_a.cpython-38.pyc │ ├── imagenet_r.cpython-37.pyc │ ├── imagenet_r.cpython-38.pyc │ ├── imagenet_sketch.cpython-37.pyc │ ├── imagenet_sketch.cpython-38.pyc │ ├── imagenetv2.cpython-37.pyc │ ├── imagenetv2.cpython-38.pyc │ ├── oxford_flowers.cpython-37.pyc │ ├── oxford_flowers.cpython-38.pyc │ ├── oxford_pets.cpython-37.pyc │ ├── oxford_pets.cpython-38.pyc │ ├── stanford_cars.cpython-37.pyc │ ├── stanford_cars.cpython-38.pyc │ ├── sun397.cpython-37.pyc │ ├── sun397.cpython-38.pyc │ ├── ucf101.cpython-37.pyc │ └── ucf101.cpython-38.pyc ├── 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 ├── images └── ALIGN.png ├── parse_test_res.py ├── scripts ├── cocoop │ ├── base2new_test.sh │ ├── base2new_train.sh │ ├── xd_test.sh │ └── xd_train.sh ├── coop │ ├── basenewtrain.sh │ ├── eval.sh │ └── main.sh ├── independent-vlp │ ├── base2new_test_ivlp.sh │ ├── base2new_train_ivlp.sh │ ├── reproduce_ivlp.sh │ ├── xd_test_ivlp.sh │ └── xd_train_ivlp.sh ├── language-prompting │ ├── base2new_test_lp.sh │ ├── base2new_train_lp.sh │ ├── reproduce_lp.sh │ ├── xd_test_lp.sh │ └── xd_train_lp.sh ├── maple │ ├── base2new_test_maple.sh │ ├── base2new_train_maple.sh │ ├── fst.sh │ ├── reproduce_maple.sh │ ├── reproduce_maple_xd.sh │ ├── xd_test_maple.sh │ └── xd_train_maple.sh ├── mmp │ ├── base_to_new_test.sh │ └── base_to_new_train.sh ├── vpt │ ├── base2new_test_vpt.sh │ ├── base2new_train_vpt.sh │ ├── reproduce_vpt.sh │ ├── xd_test_vpt.sh │ └── xd_train_vpt.sh └── zsclip │ └── zeroshot.sh ├── train.py └── trainers ├── __init__.py ├── __pycache__ ├── __init__.cpython-37.pyc ├── __init__.cpython-38.pyc ├── cocoop.cpython-37.pyc ├── cocoop.cpython-38.pyc ├── coop.cpython-37.pyc ├── coop.cpython-38.pyc ├── imagenet_templates.cpython-37.pyc ├── imagenet_templates.cpython-38.pyc ├── independentVL.cpython-37.pyc ├── independentVL.cpython-38.pyc ├── maple.cpython-37.pyc ├── maple.cpython-38.pyc ├── mmp.cpython-37.pyc ├── mmp.cpython-38.pyc ├── vpt.cpython-37.pyc ├── vpt.cpython-38.pyc ├── zsclip.cpython-37.pyc └── zsclip.cpython-38.pyc ├── cocoop.py ├── coop.py ├── imagenet_templates.py ├── independentVL.py ├── maple.py ├── mmp.py ├── vpt.py └── zsclip.py /.idea/ALIGN.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/.idea/ALIGN.iml -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/.idea/inspectionProfiles/profiles_settings.xml -------------------------------------------------------------------------------- /.idea/maple.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/.idea/maple.iml -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/.idea/misc.xml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/.idea/workspace.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/README.md -------------------------------------------------------------------------------- /clip/__init__.py: -------------------------------------------------------------------------------- 1 | from .clip import * 2 | -------------------------------------------------------------------------------- /clip/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /clip/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /clip/__pycache__/clip.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/__pycache__/clip.cpython-37.pyc -------------------------------------------------------------------------------- /clip/__pycache__/clip.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/__pycache__/clip.cpython-38.pyc -------------------------------------------------------------------------------- /clip/__pycache__/model.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/__pycache__/model.cpython-37.pyc -------------------------------------------------------------------------------- /clip/__pycache__/model.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/__pycache__/model.cpython-38.pyc -------------------------------------------------------------------------------- /clip/__pycache__/simple_tokenizer.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/__pycache__/simple_tokenizer.cpython-37.pyc -------------------------------------------------------------------------------- /clip/__pycache__/simple_tokenizer.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/__pycache__/simple_tokenizer.cpython-38.pyc -------------------------------------------------------------------------------- /clip/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /clip/clip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/clip.py -------------------------------------------------------------------------------- /clip/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/model.py -------------------------------------------------------------------------------- /clip/simple_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip/simple_tokenizer.py -------------------------------------------------------------------------------- /clip_words.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/clip_words.csv -------------------------------------------------------------------------------- /configs/datasets/caltech101.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "Caltech101" 3 | -------------------------------------------------------------------------------- /configs/datasets/dtd.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "DescribableTextures" 3 | -------------------------------------------------------------------------------- /configs/datasets/eurosat.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "EuroSAT" 3 | -------------------------------------------------------------------------------- /configs/datasets/fgvc_aircraft.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "FGVCAircraft" 3 | -------------------------------------------------------------------------------- /configs/datasets/food101.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "Food101" 3 | -------------------------------------------------------------------------------- /configs/datasets/imagenet.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNet" 3 | -------------------------------------------------------------------------------- /configs/datasets/imagenet_a.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNetA" 3 | -------------------------------------------------------------------------------- /configs/datasets/imagenet_r.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNetR" 3 | -------------------------------------------------------------------------------- /configs/datasets/imagenet_sketch.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNetSketch" 3 | -------------------------------------------------------------------------------- /configs/datasets/imagenetv2.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "ImageNetV2" 3 | -------------------------------------------------------------------------------- /configs/datasets/oxford_flowers.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "OxfordFlowers" -------------------------------------------------------------------------------- /configs/datasets/oxford_pets.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "OxfordPets" -------------------------------------------------------------------------------- /configs/datasets/stanford_cars.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "StanfordCars" 3 | -------------------------------------------------------------------------------- /configs/datasets/sun397.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "SUN397" 3 | -------------------------------------------------------------------------------- /configs/datasets/ucf101.yaml: -------------------------------------------------------------------------------- 1 | DATASET: 2 | NAME: "UCF101" 3 | -------------------------------------------------------------------------------- /configs/trainers/CoCoOp/vit_b16_c16_ep10_batch1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoCoOp/vit_b16_c16_ep10_batch1.yaml -------------------------------------------------------------------------------- /configs/trainers/CoCoOp/vit_b16_c4_ep10_batch1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoCoOp/vit_b16_c4_ep10_batch1.yaml -------------------------------------------------------------------------------- /configs/trainers/CoCoOp/vit_b16_c4_ep10_batch1_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoCoOp/vit_b16_c4_ep10_batch1_ctxv1.yaml -------------------------------------------------------------------------------- /configs/trainers/CoCoOp/vit_b16_c8_ep10_batch1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoCoOp/vit_b16_c8_ep10_batch1.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/rn101.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/rn101.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/rn101_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/rn101_ep50.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/rn50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/rn50.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/rn50_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/rn50_ctxv1.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/rn50_ep100.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/rn50_ep100.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/rn50_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/rn50_ep50.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/rn50_ep50_ctxv1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/rn50_ep50_ctxv1.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/rn50_val.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/rn50_val.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/vit_b16.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/vit_b16.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/vit_b16_ep100.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/vit_b16_ep100.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/vit_b16_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/vit_b16_ep50.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/vit_b32.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/vit_b32.yaml -------------------------------------------------------------------------------- /configs/trainers/CoOp/vit_b32_ep50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/CoOp/vit_b32_ep50.yaml -------------------------------------------------------------------------------- /configs/trainers/IVLP/vit_b16_c2_ep5_batch4_2+2ctx.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/IVLP/vit_b16_c2_ep5_batch4_2+2ctx.yaml -------------------------------------------------------------------------------- /configs/trainers/IVLP/vit_b16_c2_ep5_batch4_4ctx_language_only.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/IVLP/vit_b16_c2_ep5_batch4_4ctx_language_only.yaml -------------------------------------------------------------------------------- /configs/trainers/MMP/sun397.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/MMP/sun397.yaml -------------------------------------------------------------------------------- /configs/trainers/MMP/vit_b16_c2_ep5_batch4_2ctx.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/MMP/vit_b16_c2_ep5_batch4_2ctx.yaml -------------------------------------------------------------------------------- /configs/trainers/MMP/vit_h.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/MMP/vit_h.yaml -------------------------------------------------------------------------------- /configs/trainers/MaPLe/vit_b16_c2_ep5_batch4_2ctx.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/MaPLe/vit_b16_c2_ep5_batch4_2ctx.yaml -------------------------------------------------------------------------------- /configs/trainers/MaPLe/vit_b16_c2_ep5_batch4_2ctx_cross_datasets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/MaPLe/vit_b16_c2_ep5_batch4_2ctx_cross_datasets.yaml -------------------------------------------------------------------------------- /configs/trainers/VPT/vit_b16_c2_ep5_batch4_4.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/configs/trainers/VPT/vit_b16_c2_ep5_batch4_4.yaml -------------------------------------------------------------------------------- /datasets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /datasets/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/caltech101.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/caltech101.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/caltech101.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/caltech101.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/dtd.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/dtd.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/dtd.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/dtd.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/eurosat.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/eurosat.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/eurosat.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/eurosat.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/fgvc_aircraft.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/fgvc_aircraft.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/fgvc_aircraft.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/fgvc_aircraft.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/food101.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/food101.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/food101.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/food101.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenet.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenet.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenet.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenet_a.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenet_a.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenet_a.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenet_a.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenet_r.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenet_r.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenet_r.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenet_r.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenet_sketch.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenet_sketch.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenet_sketch.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenet_sketch.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenetv2.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenetv2.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/imagenetv2.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/imagenetv2.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/oxford_flowers.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/oxford_flowers.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/oxford_flowers.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/oxford_flowers.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/oxford_pets.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/oxford_pets.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/oxford_pets.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/oxford_pets.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/stanford_cars.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/stanford_cars.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/stanford_cars.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/stanford_cars.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/sun397.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/sun397.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/sun397.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/sun397.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/ucf101.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/ucf101.cpython-37.pyc -------------------------------------------------------------------------------- /datasets/__pycache__/ucf101.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/__pycache__/ucf101.cpython-38.pyc -------------------------------------------------------------------------------- /datasets/caltech101.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/caltech101.py -------------------------------------------------------------------------------- /datasets/dtd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/dtd.py -------------------------------------------------------------------------------- /datasets/eurosat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/eurosat.py -------------------------------------------------------------------------------- /datasets/fgvc_aircraft.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/fgvc_aircraft.py -------------------------------------------------------------------------------- /datasets/food101.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/food101.py -------------------------------------------------------------------------------- /datasets/imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/imagenet.py -------------------------------------------------------------------------------- /datasets/imagenet_a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/imagenet_a.py -------------------------------------------------------------------------------- /datasets/imagenet_r.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/imagenet_r.py -------------------------------------------------------------------------------- /datasets/imagenet_sketch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/imagenet_sketch.py -------------------------------------------------------------------------------- /datasets/imagenetv2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/imagenetv2.py -------------------------------------------------------------------------------- /datasets/oxford_flowers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/oxford_flowers.py -------------------------------------------------------------------------------- /datasets/oxford_pets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/oxford_pets.py -------------------------------------------------------------------------------- /datasets/stanford_cars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/stanford_cars.py -------------------------------------------------------------------------------- /datasets/sun397.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/sun397.py -------------------------------------------------------------------------------- /datasets/ucf101.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/datasets/ucf101.py -------------------------------------------------------------------------------- /images/ALIGN.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/images/ALIGN.png -------------------------------------------------------------------------------- /parse_test_res.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/parse_test_res.py -------------------------------------------------------------------------------- /scripts/cocoop/base2new_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/cocoop/base2new_test.sh -------------------------------------------------------------------------------- /scripts/cocoop/base2new_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/cocoop/base2new_train.sh -------------------------------------------------------------------------------- /scripts/cocoop/xd_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/cocoop/xd_test.sh -------------------------------------------------------------------------------- /scripts/cocoop/xd_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/cocoop/xd_train.sh -------------------------------------------------------------------------------- /scripts/coop/basenewtrain.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/coop/basenewtrain.sh -------------------------------------------------------------------------------- /scripts/coop/eval.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/coop/eval.sh -------------------------------------------------------------------------------- /scripts/coop/main.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/coop/main.sh -------------------------------------------------------------------------------- /scripts/independent-vlp/base2new_test_ivlp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/independent-vlp/base2new_test_ivlp.sh -------------------------------------------------------------------------------- /scripts/independent-vlp/base2new_train_ivlp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/independent-vlp/base2new_train_ivlp.sh -------------------------------------------------------------------------------- /scripts/independent-vlp/reproduce_ivlp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/independent-vlp/reproduce_ivlp.sh -------------------------------------------------------------------------------- /scripts/independent-vlp/xd_test_ivlp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/independent-vlp/xd_test_ivlp.sh -------------------------------------------------------------------------------- /scripts/independent-vlp/xd_train_ivlp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/independent-vlp/xd_train_ivlp.sh -------------------------------------------------------------------------------- /scripts/language-prompting/base2new_test_lp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/language-prompting/base2new_test_lp.sh -------------------------------------------------------------------------------- /scripts/language-prompting/base2new_train_lp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/language-prompting/base2new_train_lp.sh -------------------------------------------------------------------------------- /scripts/language-prompting/reproduce_lp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/language-prompting/reproduce_lp.sh -------------------------------------------------------------------------------- /scripts/language-prompting/xd_test_lp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/language-prompting/xd_test_lp.sh -------------------------------------------------------------------------------- /scripts/language-prompting/xd_train_lp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/language-prompting/xd_train_lp.sh -------------------------------------------------------------------------------- /scripts/maple/base2new_test_maple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/maple/base2new_test_maple.sh -------------------------------------------------------------------------------- /scripts/maple/base2new_train_maple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/maple/base2new_train_maple.sh -------------------------------------------------------------------------------- /scripts/maple/fst.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/maple/fst.sh -------------------------------------------------------------------------------- /scripts/maple/reproduce_maple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/maple/reproduce_maple.sh -------------------------------------------------------------------------------- /scripts/maple/reproduce_maple_xd.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/maple/reproduce_maple_xd.sh -------------------------------------------------------------------------------- /scripts/maple/xd_test_maple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/maple/xd_test_maple.sh -------------------------------------------------------------------------------- /scripts/maple/xd_train_maple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/maple/xd_train_maple.sh -------------------------------------------------------------------------------- /scripts/mmp/base_to_new_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/mmp/base_to_new_test.sh -------------------------------------------------------------------------------- /scripts/mmp/base_to_new_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/mmp/base_to_new_train.sh -------------------------------------------------------------------------------- /scripts/vpt/base2new_test_vpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/vpt/base2new_test_vpt.sh -------------------------------------------------------------------------------- /scripts/vpt/base2new_train_vpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/vpt/base2new_train_vpt.sh -------------------------------------------------------------------------------- /scripts/vpt/reproduce_vpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/vpt/reproduce_vpt.sh -------------------------------------------------------------------------------- /scripts/vpt/xd_test_vpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/vpt/xd_test_vpt.sh -------------------------------------------------------------------------------- /scripts/vpt/xd_train_vpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/vpt/xd_train_vpt.sh -------------------------------------------------------------------------------- /scripts/zsclip/zeroshot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/scripts/zsclip/zeroshot.sh -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/train.py -------------------------------------------------------------------------------- /trainers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /trainers/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/cocoop.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/cocoop.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/cocoop.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/cocoop.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/coop.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/coop.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/coop.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/coop.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/imagenet_templates.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/imagenet_templates.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/imagenet_templates.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/imagenet_templates.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/independentVL.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/independentVL.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/independentVL.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/independentVL.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/maple.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/maple.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/maple.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/maple.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/mmp.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/mmp.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/mmp.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/mmp.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/vpt.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/vpt.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/vpt.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/vpt.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/zsclip.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/zsclip.cpython-37.pyc -------------------------------------------------------------------------------- /trainers/__pycache__/zsclip.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/__pycache__/zsclip.cpython-38.pyc -------------------------------------------------------------------------------- /trainers/cocoop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/cocoop.py -------------------------------------------------------------------------------- /trainers/coop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/coop.py -------------------------------------------------------------------------------- /trainers/imagenet_templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/imagenet_templates.py -------------------------------------------------------------------------------- /trainers/independentVL.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/independentVL.py -------------------------------------------------------------------------------- /trainers/maple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/maple.py -------------------------------------------------------------------------------- /trainers/mmp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/mmp.py -------------------------------------------------------------------------------- /trainers/vpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/vpt.py -------------------------------------------------------------------------------- /trainers/zsclip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wds2014/ALIGN/HEAD/trainers/zsclip.py --------------------------------------------------------------------------------