Paper Information
Browse files
README.md
CHANGED
|
@@ -77,3 +77,15 @@ with torch.no_grad():
|
|
| 77 |
image_emb, text_emb = model(image_tensor, inputs["input_ids"], inputs["attention_mask"])
|
| 78 |
similarity = torch.nn.functional.cosine_similarity(image_emb, text_emb)
|
| 79 |
print(f"Similarity score: {similarity.item():.4f}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
image_emb, text_emb = model(image_tensor, inputs["input_ids"], inputs["attention_mask"])
|
| 78 |
similarity = torch.nn.functional.cosine_similarity(image_emb, text_emb)
|
| 79 |
print(f"Similarity score: {similarity.item():.4f}")
|
| 80 |
+
```
|
| 81 |
+
Please cite this paper if this code is useful for you!
|
| 82 |
+
|
| 83 |
+
```
|
| 84 |
+
@misc{quoc2025visionlanguage,
|
| 85 |
+
author = {Quoc, K. N. and Thu, L. L. T. and Quach, L. D.},
|
| 86 |
+
title = {A Vision-Language Foundation Model for Leaf Disease Identification},
|
| 87 |
+
year = {2025},
|
| 88 |
+
publisher = {Authorea Preprints},
|
| 89 |
+
url = {10.36227/techrxiv.174062971.11176782/v1}
|
| 90 |
+
}
|
| 91 |
+
```
|