Update README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ ClipMD is a medical image-text matching model based on OpenAI's CLIP model with
|
|
| 14 |
|
| 15 |
The model uses a ViT-B/32 Transformer architecture as an image encoder and uses a masked sliding window elf-attention Transformer as a text encoder. These encoders are trained to maximize the similarity of (image, text) pairs via a contrastive loss.
|
| 16 |
|
| 17 |
-
The model was fine-tuned on the ROCO dataset.
|
| 18 |
|
| 19 |
## Use with Transformers
|
| 20 |
```
|
|
@@ -32,4 +32,6 @@ inputs = processor(text=["chest x-ray", "head MRI"], images=image, return_tensor
|
|
| 32 |
outputs = model(**inputs)
|
| 33 |
logits_per_image = outputs[0] # this is the image-text similarity score
|
| 34 |
probs = logits_per_image.softmax(dim=1) # we can take the softmax to get the label probabilities
|
| 35 |
-
```
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
The model uses a ViT-B/32 Transformer architecture as an image encoder and uses a masked sliding window elf-attention Transformer as a text encoder. These encoders are trained to maximize the similarity of (image, text) pairs via a contrastive loss.
|
| 16 |
|
| 17 |
+
The model was fine-tuned on the [ROCO dataset](https://github.com/razorx89/roco-dataset).
|
| 18 |
|
| 19 |
## Use with Transformers
|
| 20 |
```
|
|
|
|
| 32 |
outputs = model(**inputs)
|
| 33 |
logits_per_image = outputs[0] # this is the image-text similarity score
|
| 34 |
probs = logits_per_image.softmax(dim=1) # we can take the softmax to get the label probabilities
|
| 35 |
+
```
|
| 36 |
+
# See also
|
| 37 |
+
* [ClipMD repository on github.](https://github.cs.huji.ac.il/tomhope-lab/ClipMD)
|