Falah/Alzheimer_MRI
Viewer • Updated • 6.4k • 1.46k • 29
How to use spolivin/alz-mri-vit with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="spolivin/alz-mri-vit")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("spolivin/alz-mri-vit")
model = AutoModelForImageClassification.from_pretrained("spolivin/alz-mri-vit", device_map="auto")This model is a fine-tuned version of google/vit-base-patch16-224-in21k on Falah/Alzheimer_MRI dataset (fine-tuning procedure is described here). It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 |
|---|---|---|---|---|
| 1.1218 | 1.0 | 64 | 0.9419 | 0.5742 |
| 0.94 | 2.0 | 128 | 0.9054 | 0.6029 |
| 0.9123 | 3.0 | 192 | 0.9019 | 0.5262 |
| 0.8625 | 4.0 | 256 | 0.8465 | 0.6029 |
| 0.8104 | 5.0 | 320 | 0.7810 | 0.6319 |
| 0.7244 | 6.0 | 384 | 0.7278 | 0.7037 |
| 0.697 | 7.0 | 448 | 0.6300 | 0.7480 |
| 0.5865 | 8.0 | 512 | 0.5659 | 0.7662 |
| 0.5199 | 9.0 | 576 | 0.5445 | 0.7721 |
| 0.4734 | 10.0 | 640 | 0.6750 | 0.7185 |
| 0.4399 | 11.0 | 704 | 0.4893 | 0.8274 |
| 0.3817 | 12.0 | 768 | 0.5578 | 0.7844 |
| 0.3318 | 13.0 | 832 | 0.4699 | 0.8228 |
| 0.3096 | 14.0 | 896 | 0.4460 | 0.8399 |
| 0.2787 | 15.0 | 960 | 0.4105 | 0.8399 |
| 0.2517 | 16.0 | 1024 | 0.3488 | 0.8578 |
| 0.2346 | 17.0 | 1088 | 0.3877 | 0.8773 |
| 0.2286 | 18.0 | 1152 | 0.3420 | 0.8575 |
| 0.1914 | 19.0 | 1216 | 0.4123 | 0.8682 |
| 0.1844 | 20.0 | 1280 | 0.2894 | 0.8913 |
| 0.173 | 21.0 | 1344 | 0.3197 | 0.8887 |
| 0.1687 | 22.0 | 1408 | 0.2626 | 0.9075 |
| 0.1601 | 23.0 | 1472 | 0.2951 | 0.9068 |
| 0.1466 | 24.0 | 1536 | 0.2666 | 0.9049 |
| 0.1468 | 25.0 | 1600 | 0.2136 | 0.9103 |
| 0.1226 | 26.0 | 1664 | 0.2387 | 0.9127 |
| 0.1186 | 27.0 | 1728 | 0.2131 | 0.9271 |
| 0.0951 | 28.0 | 1792 | 0.2520 | 0.9130 |
| 0.1049 | 29.0 | 1856 | 0.2096 | 0.9259 |
| 0.0936 | 30.0 | 1920 | 0.1875 | 0.9309 |
Base model
google/vit-base-patch16-224-in21k