File size: 546 Bytes
99f8746
 
 
 
 
 
 
 
 
 
 
 
 
56dbf78
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
library_name: pytorch
license: mit
tags:
  - clip
  - vision-language
  - negation
  - checkpoint
datasets:
  - coco
pipeline_tag: feature-extraction
model_name: NegationCLIP (CLIP fine-tuned for negation)
---

# NegationCLIP
- This repository hosts the **model checkpoint** only.
- Usage example (PyTorch):

```python

import torch
import clip

device = "cuda" if torch.cuda.is_available() else "cpu"
model, preprocess = clip.load("ViT-B/32", device=device)
model.load_state_dict(torch.load("negationclip_ViT-B32.pth", map_location=device))