Medical-Related
Collection
Models of all types of tasks that relate to medical matters. • 18 items • Updated
# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("DunnBC22/efficientnet-b5-Brain_Tumors_Image_Classification")
model = AutoModelForImageClassification.from_pretrained("DunnBC22/efficientnet-b5-Brain_Tumors_Image_Classification")This model is a fine-tuned version of google/efficientnet-b5.
It achieves the following results on the evaluation set:
This project is part of a comparison of seventeen (17) transformers. Click here to see the README markdown file for the full project
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Weighted F1 | Micro F1 | Macro F1 | Weighted Recall | Micro Recall | Macro Recall | Weighted Precision | Micro Precision | Macro Precision |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1.3872 | 1.0 | 180 | 1.0601 | 0.6853 | 0.6485 | 0.6853 | 0.6550 | 0.6853 | 0.6853 | 0.6802 | 0.8177 | 0.6853 | 0.8330 |
| 1.3872 | 2.0 | 360 | 0.9533 | 0.7843 | 0.7483 | 0.7843 | 0.7548 | 0.7843 | 0.7843 | 0.7819 | 0.8354 | 0.7843 | 0.8471 |
| 0.8186 | 3.0 | 540 | 0.9410 | 0.8020 | 0.7736 | 0.8020 | 0.7802 | 0.8020 | 0.8020 | 0.7977 | 0.8535 | 0.8020 | 0.8682 |
This model is a fine-tuned derivative of a pretrained model. Users must comply with the original model license.
This model was fine-tuned on third-party datasets which may have separate licenses or usage restrictions.
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="DunnBC22/efficientnet-b5-Brain_Tumors_Image_Classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")