BTX24/tekno21-brain-stroke-dataset-binary
Viewer • Updated • 7.37k • 47 • 6
How to use BTX24/deit-base-patch16-224-finetuned-stroke-binary with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="BTX24/deit-base-patch16-224-finetuned-stroke-binary")
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("BTX24/deit-base-patch16-224-finetuned-stroke-binary")
model = AutoModelForImageClassification.from_pretrained("BTX24/deit-base-patch16-224-finetuned-stroke-binary")# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("BTX24/deit-base-patch16-224-finetuned-stroke-binary")
model = AutoModelForImageClassification.from_pretrained("BTX24/deit-base-patch16-224-finetuned-stroke-binary")This model is a fine-tuned version of facebook/deit-base-patch16-224 on an BTX24/tekno21-brain-stroke-dataset-binary dataset. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.1646 | 0.6202 | 100 | 0.1588 | 0.9430 | 0.9425 | 0.9442 | 0.9430 |
| 0.1417 | 1.2357 | 200 | 0.1640 | 0.9439 | 0.9433 | 0.9458 | 0.9439 |
| 0.1681 | 1.8558 | 300 | 0.1622 | 0.9453 | 0.9447 | 0.9470 | 0.9453 |
| 0.1512 | 2.4713 | 400 | 0.1510 | 0.9435 | 0.9430 | 0.9441 | 0.9435 |
| 0.1506 | 3.0868 | 500 | 0.1913 | 0.9340 | 0.9327 | 0.9391 | 0.9340 |
| 0.1654 | 3.7070 | 600 | 0.1679 | 0.9426 | 0.9419 | 0.9442 | 0.9426 |
| 0.1482 | 4.3225 | 700 | 0.1551 | 0.9403 | 0.9402 | 0.9402 | 0.9403 |
| 0.1599 | 4.9426 | 800 | 0.1489 | 0.9462 | 0.9457 | 0.9471 | 0.9462 |
| 0.1477 | 5.5581 | 900 | 0.1437 | 0.9426 | 0.9424 | 0.9425 | 0.9426 |
| 0.1308 | 6.1736 | 1000 | 0.1527 | 0.9417 | 0.9414 | 0.9416 | 0.9417 |
| 0.1362 | 6.7938 | 1100 | 0.1608 | 0.9426 | 0.9421 | 0.9432 | 0.9426 |
| 0.1494 | 7.4093 | 1200 | 0.1601 | 0.9435 | 0.9429 | 0.9451 | 0.9435 |
| 0.1592 | 8.0248 | 1300 | 0.1430 | 0.9430 | 0.9429 | 0.9429 | 0.9430 |
| 0.16 | 8.6450 | 1400 | 0.1504 | 0.9457 | 0.9451 | 0.9475 | 0.9457 |
| 0.1245 | 9.2605 | 1500 | 0.1506 | 0.9462 | 0.9458 | 0.9470 | 0.9462 |
| 0.1397 | 9.8806 | 1600 | 0.1971 | 0.9313 | 0.9300 | 0.9359 | 0.9313 |
| 0.1396 | 10.4961 | 1700 | 0.1527 | 0.9489 | 0.9484 | 0.9505 | 0.9489 |
Base model
facebook/deit-base-patch16-224
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="BTX24/deit-base-patch16-224-finetuned-stroke-binary") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")