Instructions to use smc/PANDA_ViT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smc/PANDA_ViT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="smc/PANDA_ViT") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("smc/PANDA_ViT") model = AutoModelForImageClassification.from_pretrained("smc/PANDA_ViT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from smc/PANDA_ViT: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/smc/PANDA_ViT/resolve/main/README.md
- Command line
-
hf download hf://smc/PANDA_ViT/README.md
-
curl -L -o README.md https://huggingface.co/smc/PANDA_ViT/resolve/main/README.md
1.44 kB
metadata
tags:
- image-classification
- pytorch
metrics:
- accuracy
- Cohen's Kappa
model-index:
- name: PANDA_ViT
results:
- task:
name: Image Classification
type: image-classification
metrics:
- name: Accuracy
type: accuracy
value: 0.47959184646606445
- name: Quadratic Cohen's Kappa
type: Quadratic Cohen's Kappa
value: 0.5590880513191223
PANDA_ViT
An attempt to use a ViT for medical image classification (ISUP grading in prostate histopathology images). Currently uses a tiled and concatenated WSI as input
Example Images (1152,1152,3) 36 WSI patches:
ISUP 0:

ISUP 1:
ISUP 2:
ISUP 3:
ISUP 4:
ISUP 5:
