Downloads · 30 days
0
mdsajjadullah/steel-surface-defect-detection-resnet50
steel-surface-defect-detection-resnet50 is a image classification model from mdsajjadullah. Use it when you need a label for an image. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated May 23, 2026
Repo size
94.4 MB
Likes
1
Public
Click a slice to open those files.
.pth94.4 MB · 100%
From the Hugging Face model README
Author: Md. Sajjad Ullah
| Model | Accuracy | F1-Score |
|---|---|---|
| ResNet-50 | 100.00% | 100.00% |
| EfficientNet-B3 | 98.89% | 98.89% |
| MobileNet-V3 | 98.52% | 98.52% |
| Custom CNN | 85.19% | 84.95% |
NEU Surface Defect Database — 1,800 images | 6 classes
Crazing · Inclusion · Patches · Pitted Surface · Rolled-in Scale · Scratches
import torch
from torchvision.models import resnet50
model = resnet50()
model.fc = torch.nn.Sequential(
torch.nn.Dropout(0.4),
torch.nn.Linear(2048, 6)
)
model.load_state_dict(
torch.load("best_ResNet-50.pth", map_location="cpu")
)
model.eval()