Downloads · 30 days
0
jagadwp/cifar10-resnet18-cnn
cifar10-resnet18-cnn is a image classification model from jagadwp. Use it when you need a label for an image. The card lists the license as mit.
Model klasifikasi gambar untuk 10 kelas dataset CIFAR-10, menggunakan transfer learning dari ResNet18 pretrained (ImageNet).
Downloads · 30 days
0
Access
Public
Updated Aug 8, 2026
Repo size
44.8 MB
Likes
0
Public
Click a slice to open those files.
.pth44.8 MB · 100%
From the Hugging Face model README
Model klasifikasi gambar untuk 10 kelas dataset CIFAR-10, menggunakan transfer learning dari ResNet18 pretrained (ImageNet).
airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck
import torch
import torch.nn as nn
from torchvision.models import resnet18
from huggingface_hub import hf_hub_download
# Download file model
model_path = hf_hub_download(repo_id="jagadwp/cifar10-resnet18-cnn", filename="cnn_cifar10_resnet18.pth")
# Bangun ulang arsitektur
model = resnet18(weights=None)
model.fc = nn.Linear(model.fc.in_features, 10)
model.load_state_dict(torch.load(model_path, map_location="cpu"))
model.eval()
CIFAR-10 (torchvision.datasets.CIFAR10)