Downloads · 30 days
0
raptor1/resnet18-cifar10
resnet18-cifar10 is a machine learning model from raptor1. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Feb 5, 2025
Repo size
89.6 MB
Likes
0
Public
Click a slice to open those files.
.pth44.8 MB · 100%
From the Hugging Face model README
#Generated using ChatGPT
tags:
This is a fine-tuned ResNet18 model for classifying images into 10 categories from the CIFAR-10 dataset. It was trained using transfer learning on a subset of ImageNet-pretrained weights and optimized for small image classification tasks.
This model is intended for:
[0.5, 0.5, 0.5] and std [0.5, 0.5, 0.5]| Metric | Score |
|---|---|
| Test Accuracy | XX% (Replace with actual) |
| Loss | YY (Replace with actual) |
You can load the model using torch.hub:
import torch
import torchvision.models as models
import torch.nn as nn
# Load fine-tuned ResNet18 model
model = models.resnet18(pretrained=False)
num_ftrs = model.fc.in_features
model.fc = nn.Linear(num_ftrs, 10)
# Load saved model weights
model.load_state_dict(torch.hub.load_state_dict_from_url(
'https://huggingface.co/your_username/resnet18-cifar10/resolve/main/resnet18_cifar10.pth',
map_location=torch.device("cpu")
))
model.eval()