Update pipeline tag to zero-shot-image-classification
#2
by
nielsr
HF Staff
- opened
README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
datasets:
|
| 4 |
- TIGER-Lab/MMEB-train
|
| 5 |
language:
|
| 6 |
- en
|
|
|
|
|
|
|
| 7 |
metrics:
|
| 8 |
- recall
|
| 9 |
-
|
| 10 |
-
- llava-hf/llava-onevision-qwen2-7b-ov-hf
|
| 11 |
-
pipeline_tag: image-text-to-text
|
| 12 |
-
library_name: transformers
|
| 13 |
---
|
| 14 |
|
| 15 |
# Breaking the Modality Barrier: Universal Embedding Learning with Multimodal LLMs
|
|
@@ -72,14 +72,17 @@ def appply_chat_template(image=None, text=None):
|
|
| 72 |
"role": "user",
|
| 73 |
"content": [
|
| 74 |
{"type": "image", "image": image},
|
| 75 |
-
{"type": "text", "text": "Summary above image in one word
|
|
|
|
| 76 |
],
|
| 77 |
}]
|
| 78 |
elif text!= None:
|
| 79 |
conversation_image = [{
|
| 80 |
"role": "user",
|
| 81 |
"content": [
|
| 82 |
-
{"type": "text", "text": f"{text}
|
|
|
|
|
|
|
| 83 |
],
|
| 84 |
}]
|
| 85 |
return conversation_image
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- llava-hf/llava-onevision-qwen2-7b-ov-hf
|
| 4 |
datasets:
|
| 5 |
- TIGER-Lab/MMEB-train
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
+
library_name: transformers
|
| 9 |
+
license: mit
|
| 10 |
metrics:
|
| 11 |
- recall
|
| 12 |
+
pipeline_tag: zero-shot-image-classification
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
# Breaking the Modality Barrier: Universal Embedding Learning with Multimodal LLMs
|
|
|
|
| 72 |
"role": "user",
|
| 73 |
"content": [
|
| 74 |
{"type": "image", "image": image},
|
| 75 |
+
{"type": "text", "text": "Summary above image in one word:
|
| 76 |
+
"},
|
| 77 |
],
|
| 78 |
}]
|
| 79 |
elif text!= None:
|
| 80 |
conversation_image = [{
|
| 81 |
"role": "user",
|
| 82 |
"content": [
|
| 83 |
+
{"type": "text", "text": f"{text}
|
| 84 |
+
Summary above sentence in one word:
|
| 85 |
+
"},
|
| 86 |
],
|
| 87 |
}]
|
| 88 |
return conversation_image
|