Downloads · 30 days
0
jaeunglee/resnet18-cifar10-unlearning
resnet18-cifar10-unlearning is a image classification model from jaeunglee. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as mit.
This repository contains ResNet18 models retrained on the CIFAR-10 dataset with specific classes excluded during training. Each model is trained to study the impact of class exclusion on model performance and generali…
Downloads · 30 days
0
Access
Public
Updated Aug 20, 2025
Repo size
493 MB
Likes
1
Public
Click a slice to open those files.
.pth493 MB · 100%
From the Hugging Face model README
This repository contains ResNet18 models retrained on the CIFAR-10 dataset with specific classes excluded during training. Each model is trained to study the impact of class exclusion on model performance and generalization.
Project Page: https://gnueaj.github.io/Machine-Unlearning-Comparator/
GitHub Repository: https://github.com/gnueaj/Machine-Unlearning-Comparator
| Model | Excluded Class | CIFAR-10 Accuracy |
|---|---|---|
resnet18_cifar10_full.pth | None | 95.4% |
resnet18_cifar10_no_airplane.pth | Airplane | 95.3% |
resnet18_cifar10_no_automobile.pth | Automobile | 95.4% |
resnet18_cifar10_no_bird.pth | Bird | 95.6% |
resnet18_cifar10_no_cat.pth | Cat | 96.6% |
resnet18_cifar10_no_deer.pth | Deer | 95.2% |
resnet18_cifar10_no_dog.pth | Dog | 96.6% |
resnet18_cifar10_no_frog.pth | Frog | 95.2% |
resnet18_cifar10_no_horse.pth | Horse | 95.3% |
resnet18_cifar10_no_ship.pth | Ship | 95.4% |
resnet18_cifar10_no_truck.pth | Truck | 95.3% |
0.10.95e-4True200)200128The training recipe is adapted from the paper "Benchopt: Reproducible, efficient and collaborative optimization benchmarks", which provides a reproducible and optimized setup for training ResNet18 on the CIFAR-10 dataset. This ensures that the training methodology aligns with established benchmarks for reproducibility and comparability.
The following transformations were applied to the CIFAR-10 dataset:
Base Transformations (applied to both training and test sets):
ToTensor().(0.4914, 0.4822, 0.4465) and standard deviation (0.2023, 0.1994, 0.2010).Training Set Augmentation (only for training data):
These augmentations help improve the model's ability to generalize by introducing variability in the training data.
This model is part of the research conducted using the Machine Unlearning Comparator. The tool was developed to compare various machine unlearning methods and their effects on models.
These models can be directly used for evaluating the effect of excluding specific classes from the CIFAR-10 dataset during training.
The models are not suitable for tasks requiring general-purpose image classification beyond the CIFAR-10 dataset.
Use the code below to load the models with the appropriate architecture and weights:
import torch
import torch.nn as nn
from torchvision import models
def get_resnet18(num_classes=10):
model = models.resnet18(weights=None)
model.conv1 = nn.Conv2d(3, 64, kernel_size=3, stride=1, padding=1, bias=False)
model.maxpool = nn.Identity()
model.fc = nn.Linear(model.fc.in_features, num_classes)
return model
# Load a pretrained model
def load_model(model_path, num_classes=10):
model = get_resnet18(num_classes=num_classes)
model.load_state_dict(torch.load(model_path))
return model
# Example usage
model = load_model("resnet18_cifar10_no_airplane.pth", num_classes=10)
If you use this repository or its models in your work, please consider citing it:
APA: Jaeung Lee. (2024). ResNet18 Models Trained on CIFAR-10 with Class Exclusion. Retrieved from https://huggingface.co/jaeunglee/resnet18-cifar10-unlearn
This repository is shared under the MIT License.