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
|
@@ -85,3 +85,8 @@ 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 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
```
|
| 88 |
+
|
| 89 |
+
## License
|
| 90 |
+
|
| 91 |
+
This code is licensed under the PolyForm Noncommercial License 1.0.0.
|
| 92 |
+
You may use it for research, academic, or other noncommercial purposes.
|