Instructions to use yeoghurt/pathmnist-resnet18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yeoghurt/pathmnist-resnet18 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="yeoghurt/pathmnist-resnet18") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("yeoghurt/pathmnist-resnet18") model = AutoModelForImageClassification.from_pretrained("yeoghurt/pathmnist-resnet18", device_map="auto") - Notebooks
- Google Colab
- Kaggle
pathmnist-resnet18
This model is a fine-tuned version of microsoft/resnet-18 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.3635
- Accuracy: 0.9017
- Precision: 0.8904
- Recall: 0.8556
- F1: 0.8601
- Auc: 0.9919
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Auc |
|---|---|---|---|---|---|---|---|---|
| 0.1037 | 1.0 | 1407 | 0.0683 | 0.9776 | 0.9778 | 0.9771 | 0.9774 | 0.9995 |
| 0.0475 | 2.0 | 2814 | 0.0453 | 0.9850 | 0.9851 | 0.9850 | 0.9850 | 0.9997 |
| 0.0171 | 3.0 | 4221 | 0.0361 | 0.9887 | 0.9889 | 0.9884 | 0.9887 | 0.9998 |
Framework versions
- Transformers 5.23.0
- Pytorch 2.14.1+cu130
- Datasets 5.2.0
- Tokenizers 0.23.3
- Downloads last month
- 82
Model tree for yeoghurt/pathmnist-resnet18
Base model
microsoft/resnet-18