Downloads · 30 days
0
vGiacomov/image-classifier-beans
image-classifier-beans is a image classification model from vGiacomov. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as apache-2.0.
This model was trained in Google Colab using a T4 GPU and tracked with MLflow.
Downloads · 30 days
0
Access
Public
Updated Oct 9, 2025
Repo size
806 MB
Likes
0
Public
Click a slice to open those files.
.pth44.8 MB · 100%
From the Hugging Face model README
This model was trained in Google Colab using a T4 GPU and tracked with MLflow.
Dataset: Beans
Classes:
Validation Accuracy: 0.9398
Overfitting Prevention Techniques:
Hyperparameters:
resnet18_beans.pth - PyTorch model weightsper_class_metrics.csv - Detailed per-class metricsconfusion_matrix.png - Confusion matrix visualizationDownload and load the model:
from huggingface_hub import hf_hub_download
import torch
from torchvision import models
from torch import nn
model_path = hf_hub_download(
repo_id="vGiacomov/image-classifier-beans",
filename="resnet18_beans.pth"
)
model = models.resnet18()
model.fc = nn.Sequential(
nn.Dropout(0.3),
nn.Linear(model.fc.in_features, 3)
)
model.load_state_dict(torch.load(model_path, map_location="cpu"))
model.eval()
Apache 2.0