Zero-Shot Image Classification
Transformers
PyTorch
TensorBoard
Safetensors
English
vision-text-dual-encoder
feature-extraction
clip
vision
medical
bert
Instructions to use kaveh/rclip with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kaveh/rclip with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="kaveh/rclip") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("kaveh/rclip") model = AutoModel.from_pretrained("kaveh/rclip") - Notebooks
- Google Colab
- Kaggle
Librarian Bot: Add base_model information to model (#2)
Browse files- Librarian Bot: Add base_model information to model (65b50a10e5c12db100a062b183c71a2d81e991b5)
Co-authored-by: Librarian Bot (Bot) <librarian-bot@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1,31 +1,28 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: gpl-3.0
|
|
|
|
| 3 |
tags:
|
| 4 |
- clip
|
| 5 |
- vision
|
| 6 |
- medical
|
| 7 |
- bert
|
| 8 |
-
language:
|
| 9 |
-
- en
|
| 10 |
-
library_name: transformers
|
| 11 |
pipeline_tag: zero-shot-image-classification
|
| 12 |
widget:
|
| 13 |
-
- src:
|
| 14 |
-
https://huggingface.co/spaces/kaveh/radiology-image-retrieval/resolve/main/images/ROCO_09402.jpg
|
| 15 |
candidate_labels: Chest X-Ray, Brain MRI, Abdomen CT Scan, Ultrasound, OPG
|
| 16 |
example_title: Abdomen CT Scan
|
| 17 |
-
- src:
|
| 18 |
-
https://huggingface.co/spaces/kaveh/radiology-image-retrieval/resolve/main/images/ROCO_00319.jpg
|
| 19 |
candidate_labels: Chest X-Ray, Brain MRI, Abdomen CT Scan, Ultrasound, OPG
|
| 20 |
example_title: Chest X-Ray
|
| 21 |
-
- src:
|
| 22 |
-
https://huggingface.co/spaces/kaveh/radiology-image-retrieval/resolve/main/images/ROCO_00016.jpg
|
| 23 |
candidate_labels: Chest X-Ray, Brain MRI, Abdomen CT Scan, Ultrasound, OPG
|
| 24 |
example_title: MRI
|
| 25 |
-
- src:
|
| 26 |
-
https://huggingface.co/spaces/kaveh/radiology-image-retrieval/resolve/main/images/ROCO_02259.jpg
|
| 27 |
candidate_labels: Chest X-Ray, Brain MRI, Abdomen CT Scan, Ultrasound, OPG
|
| 28 |
example_title: Ultrasound
|
|
|
|
| 29 |
---
|
| 30 |
|
| 31 |
# RCLIP (Clip model fine-tuned on radiology images and their captions)
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: gpl-3.0
|
| 5 |
+
library_name: transformers
|
| 6 |
tags:
|
| 7 |
- clip
|
| 8 |
- vision
|
| 9 |
- medical
|
| 10 |
- bert
|
|
|
|
|
|
|
|
|
|
| 11 |
pipeline_tag: zero-shot-image-classification
|
| 12 |
widget:
|
| 13 |
+
- src: https://huggingface.co/spaces/kaveh/radiology-image-retrieval/resolve/main/images/ROCO_09402.jpg
|
|
|
|
| 14 |
candidate_labels: Chest X-Ray, Brain MRI, Abdomen CT Scan, Ultrasound, OPG
|
| 15 |
example_title: Abdomen CT Scan
|
| 16 |
+
- src: https://huggingface.co/spaces/kaveh/radiology-image-retrieval/resolve/main/images/ROCO_00319.jpg
|
|
|
|
| 17 |
candidate_labels: Chest X-Ray, Brain MRI, Abdomen CT Scan, Ultrasound, OPG
|
| 18 |
example_title: Chest X-Ray
|
| 19 |
+
- src: https://huggingface.co/spaces/kaveh/radiology-image-retrieval/resolve/main/images/ROCO_00016.jpg
|
|
|
|
| 20 |
candidate_labels: Chest X-Ray, Brain MRI, Abdomen CT Scan, Ultrasound, OPG
|
| 21 |
example_title: MRI
|
| 22 |
+
- src: https://huggingface.co/spaces/kaveh/radiology-image-retrieval/resolve/main/images/ROCO_02259.jpg
|
|
|
|
| 23 |
candidate_labels: Chest X-Ray, Brain MRI, Abdomen CT Scan, Ultrasound, OPG
|
| 24 |
example_title: Ultrasound
|
| 25 |
+
base_model: openai/clip-vit-large-patch14
|
| 26 |
---
|
| 27 |
|
| 28 |
# RCLIP (Clip model fine-tuned on radiology images and their captions)
|