├── .github └── workflows │ └── python-publish.yml ├── .gitignore ├── LICENSE ├── README.md ├── hand-crafted └── src │ ├── classification.py │ ├── open_clip │ ├── __init__.py │ ├── bpe_simple_vocab_16e6.txt.gz │ ├── constants.py │ ├── factory.py │ ├── imagenet_template.py │ ├── loss.py │ ├── model.py │ ├── model_configs │ │ ├── RN101-quickgelu.json │ │ ├── RN101.json │ │ ├── RN50-quickgelu.json │ │ ├── RN50.json │ │ ├── RN50x16.json │ │ ├── RN50x4.json │ │ ├── ViT-B-16-plus-240.json │ │ ├── ViT-B-16-plus.json │ │ ├── ViT-B-16.json │ │ ├── ViT-B-32-plus-256.json │ │ ├── ViT-B-32-quickgelu.json │ │ ├── ViT-B-32.json │ │ ├── ViT-H-14.json │ │ ├── ViT-H-16.json │ │ ├── ViT-L-14-280.json │ │ ├── ViT-L-14-336.json │ │ ├── ViT-L-14.json │ │ ├── ViT-L-16-320.json │ │ ├── ViT-L-16.json │ │ ├── ViT-g-14.json │ │ ├── timm-efficientnetv2_rw_s.json │ │ ├── timm-resnet50d.json │ │ ├── timm-resnetaa50d.json │ │ ├── timm-resnetblur50.json │ │ ├── timm-swin_base_patch4_window7_224.json │ │ ├── timm-vit_base_patch16_224.json │ │ ├── timm-vit_base_patch32_224.json │ │ └── timm-vit_small_patch16_224.json │ ├── openai.py │ ├── pretrained.py │ ├── timm_model.py │ ├── tokenizer.py │ ├── transform.py │ ├── utils.py │ └── version.py │ ├── prompt.txt │ ├── prompt128.txt │ ├── prompt_no.txt │ ├── prompt_no128.txt │ ├── prompt_ori.txt │ ├── run.sh │ ├── training │ ├── .gitignore │ ├── __init__.py │ ├── data.py │ ├── distributed.py │ ├── imagenet_zeroshot_data.py │ ├── logger.py │ ├── main.py │ ├── params.py │ ├── precision.py │ ├── scheduler.py │ ├── train.py │ └── zero_shot.py │ ├── tuning_util.py │ └── zero_shot_infer.py ├── requirements.txt ├── src ├── classification.py ├── open_clip │ ├── __init__.py │ ├── bpe_simple_vocab_16e6.txt.gz │ ├── constants.py │ ├── factory.py │ ├── imagenet_template.py │ ├── loss.py │ ├── model.py │ ├── model_configs │ │ ├── RN101-quickgelu.json │ │ ├── RN101.json │ │ ├── RN50-quickgelu.json │ │ ├── RN50.json │ │ ├── RN50x16.json │ │ ├── RN50x4.json │ │ ├── ViT-B-16-plus-240.json │ │ ├── ViT-B-16-plus.json │ │ ├── ViT-B-16.json │ │ ├── ViT-B-32-plus-256.json │ │ ├── ViT-B-32-quickgelu.json │ │ ├── ViT-B-32.json │ │ ├── ViT-H-14.json │ │ ├── ViT-H-16.json │ │ ├── ViT-L-14-280.json │ │ ├── ViT-L-14-336.json │ │ ├── ViT-L-14.json │ │ ├── ViT-L-16-320.json │ │ ├── ViT-L-16.json │ │ ├── ViT-g-14.json │ │ ├── timm-efficientnetv2_rw_s.json │ │ ├── timm-resnet50d.json │ │ ├── timm-resnetaa50d.json │ │ ├── timm-resnetblur50.json │ │ ├── timm-swin_base_patch4_window7_224.json │ │ ├── timm-vit_base_patch16_224.json │ │ ├── timm-vit_base_patch32_224.json │ │ └── timm-vit_small_patch16_224.json │ ├── openai.py │ ├── pretrained.py │ ├── timm_model.py │ ├── tokenizer.py │ ├── transform.py │ ├── utils.py │ └── version.py ├── prompt │ ├── prompt.txt │ └── prompt_no.txt ├── run.sh ├── training │ ├── .gitignore │ ├── __init__.py │ ├── data.py │ ├── distributed.py │ ├── imagenet_zeroshot_data.py │ ├── logger.py │ ├── main.py │ ├── params.py │ ├── precision.py │ ├── scheduler.py │ ├── train.py │ └── zero_shot.py ├── tuning_cfg.py ├── tuning_util.py └── zero_shot_infer.py └── title.png /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/README.md -------------------------------------------------------------------------------- /hand-crafted/src/classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/classification.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/__init__.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/constants.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/factory.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/imagenet_template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/imagenet_template.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/loss.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/RN101-quickgelu.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/RN101-quickgelu.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/RN101.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/RN101.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/RN50-quickgelu.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/RN50-quickgelu.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/RN50.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/RN50.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/RN50x16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/RN50x16.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/RN50x4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/RN50x4.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-B-16-plus-240.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-B-16-plus-240.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-B-16-plus.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-B-16-plus.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-B-16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-B-16.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-B-32-plus-256.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-B-32-plus-256.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-B-32-quickgelu.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-B-32-quickgelu.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-B-32.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-B-32.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-H-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-H-14.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-H-16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-H-16.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-L-14-280.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-L-14-280.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-L-14-336.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-L-14-336.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-L-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-L-14.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-L-16-320.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-L-16-320.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-L-16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-L-16.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/ViT-g-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/ViT-g-14.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/timm-efficientnetv2_rw_s.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/timm-efficientnetv2_rw_s.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/timm-resnet50d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/timm-resnet50d.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/timm-resnetaa50d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/timm-resnetaa50d.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/timm-resnetblur50.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/timm-resnetblur50.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/timm-swin_base_patch4_window7_224.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/timm-swin_base_patch4_window7_224.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/timm-vit_base_patch16_224.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/timm-vit_base_patch16_224.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/timm-vit_base_patch32_224.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/timm-vit_base_patch32_224.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/model_configs/timm-vit_small_patch16_224.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/model_configs/timm-vit_small_patch16_224.json -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/openai.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/pretrained.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/pretrained.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/timm_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/timm_model.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/tokenizer.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/transform.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/open_clip/utils.py -------------------------------------------------------------------------------- /hand-crafted/src/open_clip/version.py: -------------------------------------------------------------------------------- 1 | __version__ = '2.0.2' 2 | -------------------------------------------------------------------------------- /hand-crafted/src/prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/prompt.txt -------------------------------------------------------------------------------- /hand-crafted/src/prompt128.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/prompt128.txt -------------------------------------------------------------------------------- /hand-crafted/src/prompt_no.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/prompt_no.txt -------------------------------------------------------------------------------- /hand-crafted/src/prompt_no128.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/prompt_no128.txt -------------------------------------------------------------------------------- /hand-crafted/src/prompt_ori.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/prompt_ori.txt -------------------------------------------------------------------------------- /hand-crafted/src/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/run.sh -------------------------------------------------------------------------------- /hand-crafted/src/training/.gitignore: -------------------------------------------------------------------------------- 1 | logs/ 2 | -------------------------------------------------------------------------------- /hand-crafted/src/training/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hand-crafted/src/training/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/data.py -------------------------------------------------------------------------------- /hand-crafted/src/training/distributed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/distributed.py -------------------------------------------------------------------------------- /hand-crafted/src/training/imagenet_zeroshot_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/imagenet_zeroshot_data.py -------------------------------------------------------------------------------- /hand-crafted/src/training/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/logger.py -------------------------------------------------------------------------------- /hand-crafted/src/training/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/main.py -------------------------------------------------------------------------------- /hand-crafted/src/training/params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/params.py -------------------------------------------------------------------------------- /hand-crafted/src/training/precision.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/precision.py -------------------------------------------------------------------------------- /hand-crafted/src/training/scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/scheduler.py -------------------------------------------------------------------------------- /hand-crafted/src/training/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/train.py -------------------------------------------------------------------------------- /hand-crafted/src/training/zero_shot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/training/zero_shot.py -------------------------------------------------------------------------------- /hand-crafted/src/tuning_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/tuning_util.py -------------------------------------------------------------------------------- /hand-crafted/src/zero_shot_infer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/hand-crafted/src/zero_shot_infer.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/classification.py -------------------------------------------------------------------------------- /src/open_clip/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/__init__.py -------------------------------------------------------------------------------- /src/open_clip/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /src/open_clip/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/constants.py -------------------------------------------------------------------------------- /src/open_clip/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/factory.py -------------------------------------------------------------------------------- /src/open_clip/imagenet_template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/imagenet_template.py -------------------------------------------------------------------------------- /src/open_clip/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/loss.py -------------------------------------------------------------------------------- /src/open_clip/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model.py -------------------------------------------------------------------------------- /src/open_clip/model_configs/RN101-quickgelu.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/RN101-quickgelu.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/RN101.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/RN101.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/RN50-quickgelu.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/RN50-quickgelu.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/RN50.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/RN50.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/RN50x16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/RN50x16.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/RN50x4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/RN50x4.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-B-16-plus-240.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-B-16-plus-240.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-B-16-plus.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-B-16-plus.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-B-16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-B-16.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-B-32-plus-256.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-B-32-plus-256.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-B-32-quickgelu.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-B-32-quickgelu.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-B-32.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-B-32.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-H-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-H-14.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-H-16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-H-16.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-L-14-280.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-L-14-280.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-L-14-336.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-L-14-336.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-L-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-L-14.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-L-16-320.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-L-16-320.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-L-16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-L-16.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/ViT-g-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/ViT-g-14.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/timm-efficientnetv2_rw_s.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/timm-efficientnetv2_rw_s.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/timm-resnet50d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/timm-resnet50d.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/timm-resnetaa50d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/timm-resnetaa50d.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/timm-resnetblur50.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/timm-resnetblur50.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/timm-swin_base_patch4_window7_224.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/timm-swin_base_patch4_window7_224.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/timm-vit_base_patch16_224.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/timm-vit_base_patch16_224.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/timm-vit_base_patch32_224.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/timm-vit_base_patch32_224.json -------------------------------------------------------------------------------- /src/open_clip/model_configs/timm-vit_small_patch16_224.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/model_configs/timm-vit_small_patch16_224.json -------------------------------------------------------------------------------- /src/open_clip/openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/openai.py -------------------------------------------------------------------------------- /src/open_clip/pretrained.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/pretrained.py -------------------------------------------------------------------------------- /src/open_clip/timm_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/timm_model.py -------------------------------------------------------------------------------- /src/open_clip/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/tokenizer.py -------------------------------------------------------------------------------- /src/open_clip/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/transform.py -------------------------------------------------------------------------------- /src/open_clip/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/open_clip/utils.py -------------------------------------------------------------------------------- /src/open_clip/version.py: -------------------------------------------------------------------------------- 1 | __version__ = '2.0.2' 2 | -------------------------------------------------------------------------------- /src/prompt/prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/prompt/prompt.txt -------------------------------------------------------------------------------- /src/prompt/prompt_no.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/prompt/prompt_no.txt -------------------------------------------------------------------------------- /src/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/run.sh -------------------------------------------------------------------------------- /src/training/.gitignore: -------------------------------------------------------------------------------- 1 | logs/ 2 | -------------------------------------------------------------------------------- /src/training/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/training/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/data.py -------------------------------------------------------------------------------- /src/training/distributed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/distributed.py -------------------------------------------------------------------------------- /src/training/imagenet_zeroshot_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/imagenet_zeroshot_data.py -------------------------------------------------------------------------------- /src/training/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/logger.py -------------------------------------------------------------------------------- /src/training/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/main.py -------------------------------------------------------------------------------- /src/training/params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/params.py -------------------------------------------------------------------------------- /src/training/precision.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/precision.py -------------------------------------------------------------------------------- /src/training/scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/scheduler.py -------------------------------------------------------------------------------- /src/training/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/train.py -------------------------------------------------------------------------------- /src/training/zero_shot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/training/zero_shot.py -------------------------------------------------------------------------------- /src/tuning_cfg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/tuning_cfg.py -------------------------------------------------------------------------------- /src/tuning_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/tuning_util.py -------------------------------------------------------------------------------- /src/zero_shot_infer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/src/zero_shot_infer.py -------------------------------------------------------------------------------- /title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xmed-lab/CLIPN/HEAD/title.png --------------------------------------------------------------------------------