Downloads · 30 days
5
10% of all-time downloads
toolevalxm/MedViT-Clinical-TestRepo
MedViT-Clinical-TestRepo is a image classification model from toolevalxm. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
<div align="center" <img src="figures/fig1.png" width="60%" alt="MedViT" / </div <hr
Downloads · 30 days
5
10% of all-time downloads
All-time downloads
51
Public
Repo size
40 B
Likes
0
Public
Click a slice to open those files.
.md4.4 KB · 65%
From the Hugging Face model README
MedViT is a state-of-the-art Vision Transformer specifically designed for medical image analysis. This latest version incorporates advanced attention mechanisms optimized for detecting subtle anomalies in medical imagery. The model has been trained on a diverse dataset spanning multiple imaging modalities including X-ray, CT, MRI, and pathology slides.
<p align="center"> <img width="80%" src="figures/fig3.png"> </p>Compared to the previous version, MedViT shows remarkable improvements in detecting early-stage conditions. For instance, in the ChestX-ray14 benchmark, the model's AUC has increased from 0.82 in the previous version to 0.91 in the current version. This advancement stems from the multi-scale patch embedding mechanism that captures both fine-grained cellular details and broader anatomical structures.
Beyond improved detection capabilities, this version also offers enhanced interpretability through attention visualization and reduced false positive rates for clinical deployment.
| Benchmark | ResNet50 | EfficientNet | ViT-Base | MedViT | |
|---|---|---|---|---|---|
| Core Imaging Tasks | X-Ray Classification | 0.821 | 0.845 | 0.862 | 0.725 |
| CT Segmentation | 0.756 | 0.778 | 0.801 | 0.725 | |
| MRI Detection | 0.692 | 0.715 | 0.738 | 0.623 | |
| Pathology Analysis | Pathology Analysis | 0.834 | 0.856 | 0.871 | 0.823 |
| Dermatology Screening | 0.788 | 0.812 | 0.829 | 0.763 | |
| Retinal Imaging | 0.865 | 0.882 | 0.895 | 0.867 | |
| Specialized Detection | Ultrasound Analysis | 0.712 | 0.738 | 0.755 | 0.645 |
| Mammography Detection | 0.798 | 0.821 | 0.842 | 0.733 | |
| Bone Fracture Detection | 0.845 | 0.867 | 0.881 | 0.822 | |
| Advanced Analysis | Tumor Localization | 0.723 | 0.751 | 0.772 | 0.575 |
| Organ Segmentation | 0.812 | 0.835 | 0.852 | 0.850 | |
| Anomaly Detection | 0.678 | 0.702 | 0.725 | 0.578 |
MedViT demonstrates superior performance across all evaluated medical imaging benchmarks, with particularly notable results in pathology analysis and retinal imaging tasks.
We offer a secure API for integrating MedViT into clinical workflows. All endpoints are HIPAA-compliant and support DICOM format inputs. Please check our official documentation for more details.
Please refer to our code repository for more information about running MedViT locally.
Key requirements for deployment:
We recommend the following preprocessing pipeline:
preprocessing = {
"resize": (384, 384),
"normalize": {"mean": [0.485, 0.456, 0.406], "std": [0.229, 0.224, 0.225]},
"intensity_windowing": True # For CT/MRI
}
For optimal results, use these inference settings:
inference_config = {
"batch_size": 8,
"use_tta": True, # Test-time augmentation
"threshold": 0.5,
"return_attention_maps": False
}
For multi-modal studies, combine predictions using:
multi_modal_config = {
"fusion_method": "attention_weighted",
"modalities": ["ct", "mri", "pet"],
"weight_by_confidence": True
}
This code repository is licensed under the Apache 2.0 License. The use of MedViT models is subject to regulatory compliance requirements in your jurisdiction. The model is intended for research and clinical decision support only.
If you have any questions, please raise an issue on our GitHub repository or contact us at [email protected].