Downloads · 30 days
0
bsgcasa/resnet18-intel-classifier
resnet18-intel-classifier is a image classification model from bsgcasa. Use it when you need a label for an image. The card lists the license as mit.
Three fine-tuned ResNet18 models trained on the Intel Image Classification dataset (buildings, forest, glacier, mountain, sea, street), comparing different transfer learning strategies.
Downloads · 30 days
0
Access
Public
Updated Sep 4, 2026
Repo size
134 MB
Likes
0
Public
Click a slice to open those files.
.pth134 MB · 100%
From the Hugging Face model README
Three fine-tuned ResNet18 models trained on the Intel Image Classification dataset (buildings, forest, glacier, mountain, sea, street), comparing different transfer learning strategies.
resnet18_feature_extract.pth — only the final layer trained (frozen backbone)resnet18_partial.pth — layer3, layer4, and final layer trainedresnet18_full.pth — entire network fine-tuned| Strategy | Test Accuracy |
|---|---|
| feature_extract | 87.97% |
| partial | 94.07% |
| full | 93.60% |
import torch
from torchvision import models
import torch.nn as nn
model = models.resnet18(weights=None)
model.fc = nn.Linear(model.fc.in_features, 6)
model.load_state_dict(torch.load("resnet18_partial.pth", map_location="cpu"))
model.eval()
Classes: buildings, forest, glacier, mountain, sea, street