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
Commit History
16 days ago
-
Update README.md
Verified signature4948278
-
Update README.md
Verified signature9ec31d3
-
Update README.md
Verified signature97a430c
-
Update README.md
Verified signature25ae462 -
Update README.md
Verified signature60a84fd
-
Move preprocessing outside XMag model
Verified signature0fcabb3 -
Add XMag AutoModel release
Verified signaturec849cf3
-
initial commit
Verified signature3f09d41