├── README.md ├── assets ├── intro1.png ├── intro2.png ├── intro3.png ├── intro4.png └── introduction.png ├── clip ├── __init__.py ├── bpe_simple_vocab_16e6.txt.gz ├── clip.py ├── criterions.py ├── model.py └── simple_tokenizer.py ├── construct_noise.py ├── data.py ├── dataset ├── MSCOCO │ ├── COCO_2014_000000000009.jpg │ └── COCO_2014_000000000025.jpg └── MSCOCO_rename.py ├── eval.py ├── get_memorybank.py ├── logs └── readme.txt ├── main_CLIP.py ├── main_NPC.py ├── params.py ├── pre-trained_models └── readme.txt ├── requirements.txt ├── scheduler.py └── util.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/README.md -------------------------------------------------------------------------------- /assets/intro1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/assets/intro1.png -------------------------------------------------------------------------------- /assets/intro2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/assets/intro2.png -------------------------------------------------------------------------------- /assets/intro3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/assets/intro3.png -------------------------------------------------------------------------------- /assets/intro4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/assets/intro4.png -------------------------------------------------------------------------------- /assets/introduction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/assets/introduction.png -------------------------------------------------------------------------------- /clip/__init__.py: -------------------------------------------------------------------------------- 1 | from .clip import * 2 | -------------------------------------------------------------------------------- /clip/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/clip/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /clip/clip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/clip/clip.py -------------------------------------------------------------------------------- /clip/criterions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/clip/criterions.py -------------------------------------------------------------------------------- /clip/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/clip/model.py -------------------------------------------------------------------------------- /clip/simple_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/clip/simple_tokenizer.py -------------------------------------------------------------------------------- /construct_noise.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/construct_noise.py -------------------------------------------------------------------------------- /data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/data.py -------------------------------------------------------------------------------- /dataset/MSCOCO/COCO_2014_000000000009.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/dataset/MSCOCO/COCO_2014_000000000009.jpg -------------------------------------------------------------------------------- /dataset/MSCOCO/COCO_2014_000000000025.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/dataset/MSCOCO/COCO_2014_000000000025.jpg -------------------------------------------------------------------------------- /dataset/MSCOCO_rename.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/dataset/MSCOCO_rename.py -------------------------------------------------------------------------------- /eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/eval.py -------------------------------------------------------------------------------- /get_memorybank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/get_memorybank.py -------------------------------------------------------------------------------- /logs/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/logs/readme.txt -------------------------------------------------------------------------------- /main_CLIP.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/main_CLIP.py -------------------------------------------------------------------------------- /main_NPC.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/main_NPC.py -------------------------------------------------------------------------------- /params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/params.py -------------------------------------------------------------------------------- /pre-trained_models/readme.txt: -------------------------------------------------------------------------------- 1 | save the pre-trained models here. -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/requirements.txt -------------------------------------------------------------------------------- /scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/scheduler.py -------------------------------------------------------------------------------- /util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXu0963/NPC/HEAD/util.py --------------------------------------------------------------------------------