Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

AI4PATH
/
XMAG

Image Feature Extraction
Transformers
PyTorch
xmag
feature-extraction
pathology
histopathology
foundation-model
distillation
dinov2
custom_code
Model card Files Files and versions
xet
Community

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)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("AI4PATH/XMAG", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
XMAG
346 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
tunerthanjoestar's picture
tunerthanjoestar
Update README.md
97a430c verified 2 days ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    2.83 kB
    Update README.md 2 days ago
  • config.json
    470 Bytes
    Move preprocessing outside XMag model about 1 month ago
  • configuration_xmag.py
    565 Bytes
    Add XMag AutoModel release about 1 month ago
  • modeling_xmag.py
    1.04 kB
    Move preprocessing outside XMag model about 1 month ago
  • pytorch_model.bin
    346 MB
    xet
    Add XMag AutoModel release about 1 month ago
  • requirements.txt
    47 Bytes
    Add XMag AutoModel release about 1 month ago
  • upload_to_hub.py
    922 Bytes
    Move preprocessing outside XMag model about 1 month ago