Instructions to use RationAI/vit-patch16-224-prostate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RationAI/vit-patch16-224-prostate with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("RationAI/vit-patch16-224-prostate", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| library_name: transformers | |
| tags: [] | |
| base_model: | |
| - google/vit-base-patch16-224 | |
| # ViT for prostate cancer classification | |
| ```python | |
| model = ViTForImageClassification.from_pretrained("RationAI/vit-patch16-224-prostate") | |
| processor = ViTImageProcessor.from_pretrained("RationAI/vit-patch16-224-prostate") | |
| ``` | |