├── CLIP ├── adapter.py ├── bpe_simple_vocab_16e6.txt.gz ├── clip.py ├── model.py ├── model_configs │ └── ViT-L-14-336.json ├── modified_resnet.py ├── openai.py ├── tokenizer.py └── transformer.py ├── LICENSE ├── README.md ├── ckpt └── __init__.py ├── data └── __init__.py ├── dataset ├── fewshot_seed │ ├── Brain │ │ ├── 16-shot.txt │ │ ├── 2-shot.txt │ │ ├── 4-shot.txt │ │ └── 8-shot.txt │ ├── Chest │ │ ├── 16-shot.txt │ │ ├── 2-shot.txt │ │ ├── 4-shot.txt │ │ └── 8-shot.txt │ ├── Histopathology │ │ ├── 16-shot.txt │ │ ├── 2-shot.txt │ │ ├── 4-shot.txt │ │ └── 8-shot.txt │ ├── Liver │ │ ├── 16-shot.txt │ │ ├── 2-shot.txt │ │ ├── 4-shot.txt │ │ └── 8-shot.txt │ ├── Retina_OCT2017 │ │ ├── 16-shot.txt │ │ ├── 2-shot.txt │ │ ├── 4-shot.txt │ │ └── 8-shot.txt │ └── Retina_RESC │ │ ├── 16-shot.txt │ │ ├── 2-shot.txt │ │ ├── 4-shot.txt │ │ └── 8-shot.txt ├── medical_few.py └── medical_zero.py ├── images ├── MVFA.png ├── pipeline.png └── visualize.png ├── loss.py ├── prompt.py ├── test_few.py ├── test_zero.py ├── train_few.py ├── train_zero.py └── utils.py /CLIP/adapter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/adapter.py -------------------------------------------------------------------------------- /CLIP/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /CLIP/clip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/clip.py -------------------------------------------------------------------------------- /CLIP/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/model.py -------------------------------------------------------------------------------- /CLIP/model_configs/ViT-L-14-336.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/model_configs/ViT-L-14-336.json -------------------------------------------------------------------------------- /CLIP/modified_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/modified_resnet.py -------------------------------------------------------------------------------- /CLIP/openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/openai.py -------------------------------------------------------------------------------- /CLIP/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/tokenizer.py -------------------------------------------------------------------------------- /CLIP/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/CLIP/transformer.py -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/README.md -------------------------------------------------------------------------------- /ckpt/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dataset/fewshot_seed/Brain/16-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Brain/16-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Brain/2-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Brain/2-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Brain/4-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Brain/4-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Brain/8-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Brain/8-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Chest/16-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Chest/16-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Chest/2-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Chest/2-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Chest/4-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Chest/4-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Chest/8-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Chest/8-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Histopathology/16-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Histopathology/16-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Histopathology/2-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Histopathology/2-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Histopathology/4-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Histopathology/4-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Histopathology/8-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Histopathology/8-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Liver/16-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Liver/16-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Liver/2-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Liver/2-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Liver/4-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Liver/4-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Liver/8-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Liver/8-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Retina_OCT2017/16-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Retina_OCT2017/16-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Retina_OCT2017/2-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Retina_OCT2017/2-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Retina_OCT2017/4-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Retina_OCT2017/4-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Retina_OCT2017/8-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Retina_OCT2017/8-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Retina_RESC/16-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Retina_RESC/16-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Retina_RESC/2-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Retina_RESC/2-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Retina_RESC/4-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Retina_RESC/4-shot.txt -------------------------------------------------------------------------------- /dataset/fewshot_seed/Retina_RESC/8-shot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/fewshot_seed/Retina_RESC/8-shot.txt -------------------------------------------------------------------------------- /dataset/medical_few.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/medical_few.py -------------------------------------------------------------------------------- /dataset/medical_zero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/dataset/medical_zero.py -------------------------------------------------------------------------------- /images/MVFA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/images/MVFA.png -------------------------------------------------------------------------------- /images/pipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/images/pipeline.png -------------------------------------------------------------------------------- /images/visualize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/images/visualize.png -------------------------------------------------------------------------------- /loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/loss.py -------------------------------------------------------------------------------- /prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/prompt.py -------------------------------------------------------------------------------- /test_few.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/test_few.py -------------------------------------------------------------------------------- /test_zero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/test_zero.py -------------------------------------------------------------------------------- /train_few.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/train_few.py -------------------------------------------------------------------------------- /train_zero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/train_zero.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MediaBrain-SJTU/MVFA-AD/HEAD/utils.py --------------------------------------------------------------------------------