add mljku
Browse files- Makefile +34 -0
- ml_jku_cloob_embeddings/clip30_rn50_cc_epoch_128_image_embeds.npy +3 -0
- ml_jku_cloob_embeddings/clip30_rn50_cc_epoch_128_text_embeds.npy +3 -0
- ml_jku_cloob_embeddings/clip_infoLOOB_rn50_cc_epoch_128_image_embeds.npy +3 -0
- ml_jku_cloob_embeddings/clip_infoLOOB_rn50_cc_epoch_128_text_embeds.npy +3 -0
- ml_jku_cloob_embeddings/cloob_infoNCE_rn50_cc_epoch_128_image_embeds.npy +3 -0
- ml_jku_cloob_embeddings/cloob_infoNCE_rn50_cc_epoch_128_text_embeds.npy +3 -0
- ml_jku_cloob_embeddings/cloob_rn50_cc_epoch_128_image_embeds.npy +3 -0
- ml_jku_cloob_embeddings/cloob_rn50_cc_epoch_128_text_embeds.npy +3 -0
- requirements.txt +2 -0
Makefile
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
data = "$(shell readlink -f "mscoco-1st-caption/000{00..11}.tar")"
|
2 |
+
openai = ViT-B/16 ViT-B/32 ViT-L/14
|
3 |
+
open_clip = open_clip__ViT-B-16 open_clip__ViT-B-32
|
4 |
+
|
5 |
+
recreate: install-pip dataset embeds
|
6 |
+
|
7 |
+
embeds: coco-embeds-openai-vit-b-16 $(open_clip) $(openai)
|
8 |
+
echo DONE ^_^
|
9 |
+
|
10 |
+
$(openai):
|
11 |
+
mkdir -p coco/openai/$@
|
12 |
+
python -m clip_retrieval.clip_inference.main "$(data)" coco/openai/$@ --clip_model '$@' --input_format webdataset
|
13 |
+
|
14 |
+
$(open_clip):
|
15 |
+
touch $@
|
16 |
+
mkdir -p coco/open_clip/$(subst __,:,$@)
|
17 |
+
python -m clip_retrieval.clip_inference.main "$(data)" coco/open_clip/$(subst __,:,$@) \
|
18 |
+
--clip_model '$(subst __,:,$@)' \
|
19 |
+
--input_format webdataset
|
20 |
+
|
21 |
+
|
22 |
+
dataset:
|
23 |
+
echo Downloading dataset o_O
|
24 |
+
git lfs install
|
25 |
+
git clone https://huggingface.co/datasets/cat-state/mscoco-1st-caption || true
|
26 |
+
|
27 |
+
coco-embeds-openai-vit-b-16:
|
28 |
+
python -m clip_retrieval.clip_inference.main "$(data)" coco-embeds-openai-vit-b-16 --clip_model 'ViT-B/16' --input_format webdataset
|
29 |
+
|
30 |
+
|
31 |
+
install-pip:
|
32 |
+
echo Installing requirements...
|
33 |
+
pip install -r requirements.txt
|
34 |
+
|
ml_jku_cloob_embeddings/clip30_rn50_cc_epoch_128_image_embeds.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:913ad3ab7ba44cf419c3fb886417247f867dc18b2d28d9b28fef33da5adbc8b3
|
3 |
+
size 484503680
|
ml_jku_cloob_embeddings/clip30_rn50_cc_epoch_128_text_embeds.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ff067ae7f482a93138fc628839b53f752043254464fc0d626c19a36e6a5c65c
|
3 |
+
size 484503680
|
ml_jku_cloob_embeddings/clip_infoLOOB_rn50_cc_epoch_128_image_embeds.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e231beca8324c582332e186fd95763f030456515969e96185c48fdcb475a2b2f
|
3 |
+
size 484503680
|
ml_jku_cloob_embeddings/clip_infoLOOB_rn50_cc_epoch_128_text_embeds.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcd219c86a147858b19251d4440fbdfcd2494f6367e3f4ca1e9e11071fe85065
|
3 |
+
size 484503680
|
ml_jku_cloob_embeddings/cloob_infoNCE_rn50_cc_epoch_128_image_embeds.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac5fc4d10dcb5ae0639da577eb4f4826ffa158639ebc29aff11beddca97319d4
|
3 |
+
size 484503680
|
ml_jku_cloob_embeddings/cloob_infoNCE_rn50_cc_epoch_128_text_embeds.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:048fb552021f3c37766a584bc49794389f6e8f235ebaded96b32c14a5278f097
|
3 |
+
size 484503680
|
ml_jku_cloob_embeddings/cloob_rn50_cc_epoch_128_image_embeds.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2fe7c1b9a3c0f07f18e979ff7d0b89003f97d0a7bd7f3dc8d30a13410946e8b5
|
3 |
+
size 484503680
|
ml_jku_cloob_embeddings/cloob_rn50_cc_epoch_128_text_embeds.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f1ea9c30fc0d286bf4c425184bf89d23b045704937fd88430b4681c8aa8890a4
|
3 |
+
size 484503680
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
clip-retrieval==2.31.1
|
2 |
+
open-clip-torch==1.2.1
|