Safetensors
clip
megaelius commited on
Commit
121f475
·
verified ·
1 Parent(s): 248d4d0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -2
README.md CHANGED
@@ -1,9 +1,22 @@
1
  ---
2
  license: mit
3
  datasets:
 
4
  - mlfoundations/datacomp_small
5
  base_model:
6
- - chs20/fare2-clip
7
  ---
8
 
9
- ViT-L CLIP initialized from FARE2: https://huggingface.co/chs20/fare2-clip. The Text encoder is finetuned with the FARE loss using the charmer attack with $\rho=50$ and $k=1$.
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
  datasets:
4
+ - ILSVRC/imagenet-1k
5
  - mlfoundations/datacomp_small
6
  base_model:
7
+ - openai/clip-vit-large-patch14
8
  ---
9
 
10
+ Model Initialized from `openai/clip-vit-large-patch14`. The image encoder is finetuned with FARE at $\epsilon=2/255$. The text encoder is finetuned with LEAF at $k=1$ with $\rho=50$.
11
+
12
+ To load this model use:
13
+
14
+ ```python
15
+ from transformers import CLIPProcessor, CLIPModel
16
+
17
+ model_name = "LEAF-CLIP/CLIP-ViT-L-rho50-k1-FARE2"
18
+ processor_name = "openai/clip-vit-large-patch14"
19
+
20
+ model = CLIPModel.from_pretrained(model_name)
21
+ processor = CLIPProcessor.from_pretrained(processor_name)
22
+ ```