Image Feature Extraction
Transformers
PyTorch
xmag
feature-extraction
pathology
histopathology
foundation-model
distillation
dinov2
custom_code
Instructions to use AI4PATH/XMAG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AI4PATH/XMAG with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="AI4PATH/XMAG", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AI4PATH/XMAG", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -71,13 +71,17 @@ The model code uses `torch.hub` to instantiate the DINOv2 ViT-B/14 backbone. The
|
|
| 71 |
|
| 72 |
If you use this model, please cite:
|
| 73 |
|
| 74 |
-
Su, Z., Akbar, A. R., & Niazi, M. K. K. (
|
| 75 |
|
| 76 |
```
|
| 77 |
-
@article{
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
```
|
|
|
|
| 71 |
|
| 72 |
If you use this model, please cite:
|
| 73 |
|
| 74 |
+
Su, Z., Akbar, A. R., & Niazi, M. K. K. (2027). Streamline pathology foundation model by cross-magnification distillation. Medical Image Analysis. Available at https://doi.org/10.1016/j.media.2026.104352.
|
| 75 |
|
| 76 |
```
|
| 77 |
+
@article{SU2027104352,
|
| 78 |
+
title = {Streamline pathology foundation model by cross-magnification distillation},
|
| 79 |
+
journal = {Medical Image Analysis},
|
| 80 |
+
volume = {115},
|
| 81 |
+
pages = {104352},
|
| 82 |
+
year = {2027},
|
| 83 |
+
issn = {1361-8415},
|
| 84 |
+
doi = {https://doi.org/10.1016/j.media.2026.104352},
|
| 85 |
+
url = {https://www.sciencedirect.com/science/article/pii/S1361841526004214},
|
| 86 |
+
author = {Ziyu Su and Abdul Rehman Akbar and Usama Sajjad and Anil V. Parwani and Muhammad Khalid Khan Niazi}}
|
| 87 |
```
|