Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ pipeline_tag: image-feature-extraction
|
|
| 21 |
---
|
| 22 |
|
| 23 |
|
| 24 |
-
# Model Card for Neuropathology Vision Transformer:
|
| 25 |
|
| 26 |
This model is a Vision Transformer adapted for neuropathology tasks, developed using data from the University of Kentucky. It leverages principles from self-supervised learning models like DINOv2.
|
| 27 |
|
|
@@ -32,7 +32,7 @@ This model is a Vision Transformer adapted for neuropathology tasks, developed u
|
|
| 32 |
|
| 33 |
* **Model Type:** Vision Transformer (ViT) for neuropathology.
|
| 34 |
* **Developed by:** [Center for Applied Artificial Intelligence (CAAI)](https://caai.ai.uky.edu/)
|
| 35 |
-
* **Model Date:**
|
| 36 |
* **Base Model Architecture:** Dinov2-with-registers-giant (https://huggingface.co/facebook/dinov2-with-registers-giant)
|
| 37 |
* **Input:** Image (224x224).
|
| 38 |
* **Output:** Class token and patch tokens. These can be used for various downstream tasks (e.g., classification, segmentation, similarity search).
|
|
@@ -97,7 +97,7 @@ This model is intended for research purposes in the field of neuropathology.
|
|
| 97 |
### Model Comparison
|
| 98 |
|
| 99 |
#### Models Evaluated
|
| 100 |
-
* **
|
| 101 |
* **dinov2-with-registers-giant:** [facebook/dinov2-with-registers-giant](https://huggingface.co/facebook/dinov2-with-registers-giant)
|
| 102 |
* **dinov3-base:** [facebook/dinov3-vitb16-pretrain-lvd1689m](https://huggingface.co/facebook/dinov3-vitb16-pretrain-lvd1689m)
|
| 103 |
* **dinov3-7b:** [facebook/dinov3-vit7b16-pretrain-lvd1689m](https://huggingface.co/facebook/dinov3-vit7b16-pretrain-lvd1689m)
|
|
@@ -291,7 +291,7 @@ def get_embeddings_resized(image_path, model_path, size=(224, 224), mean=[0.874,
|
|
| 291 |
# Example usage
|
| 292 |
if __name__ == "__main__":
|
| 293 |
image_path = "test.jpg"
|
| 294 |
-
model_path = "IBI-CAAI/
|
| 295 |
|
| 296 |
# Method 1: Using image processor (recommended for consistency)
|
| 297 |
embeddings1 = get_embeddings_with_processor(image_path, model_path)
|
|
|
|
| 21 |
---
|
| 22 |
|
| 23 |
|
| 24 |
+
# Model Card for Neuropathology Vision Transformer: MAD-NP
|
| 25 |
|
| 26 |
This model is a Vision Transformer adapted for neuropathology tasks, developed using data from the University of Kentucky. It leverages principles from self-supervised learning models like DINOv2.
|
| 27 |
|
|
|
|
| 32 |
|
| 33 |
* **Model Type:** Vision Transformer (ViT) for neuropathology.
|
| 34 |
* **Developed by:** [Center for Applied Artificial Intelligence (CAAI)](https://caai.ai.uky.edu/)
|
| 35 |
+
* **Model Date:** 12/2025
|
| 36 |
* **Base Model Architecture:** Dinov2-with-registers-giant (https://huggingface.co/facebook/dinov2-with-registers-giant)
|
| 37 |
* **Input:** Image (224x224).
|
| 38 |
* **Output:** Class token and patch tokens. These can be used for various downstream tasks (e.g., classification, segmentation, similarity search).
|
|
|
|
| 97 |
### Model Comparison
|
| 98 |
|
| 99 |
#### Models Evaluated
|
| 100 |
+
* **MAD-NP:** Our model
|
| 101 |
* **dinov2-with-registers-giant:** [facebook/dinov2-with-registers-giant](https://huggingface.co/facebook/dinov2-with-registers-giant)
|
| 102 |
* **dinov3-base:** [facebook/dinov3-vitb16-pretrain-lvd1689m](https://huggingface.co/facebook/dinov3-vitb16-pretrain-lvd1689m)
|
| 103 |
* **dinov3-7b:** [facebook/dinov3-vit7b16-pretrain-lvd1689m](https://huggingface.co/facebook/dinov3-vit7b16-pretrain-lvd1689m)
|
|
|
|
| 291 |
# Example usage
|
| 292 |
if __name__ == "__main__":
|
| 293 |
image_path = "test.jpg"
|
| 294 |
+
model_path = "IBI-CAAI/MAD-NP"
|
| 295 |
|
| 296 |
# Method 1: Using image processor (recommended for consistency)
|
| 297 |
embeddings1 = get_embeddings_with_processor(image_path, model_path)
|