https://github.com/aastopher/garbage_classification_pytorch
ResNet Comparison for Garbage Image Classification with PyTorch - models trained on GPU, then pickled for analysis on CPU
https://github.com/aastopher/garbage_classification_pytorch
ann classification image-classification jupyter-notebook pytorch resnet resnet-101 resnet-152 resnet-18 resnet-34 resnet-50 torchvision
Last synced: 4 months ago
JSON representation
ResNet Comparison for Garbage Image Classification with PyTorch - models trained on GPU, then pickled for analysis on CPU
- Host: GitHub
- URL: https://github.com/aastopher/garbage_classification_pytorch
- Owner: aastopher
- Created: 2022-08-22T19:10:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T20:01:39.000Z (over 3 years ago)
- Last Synced: 2025-03-05T09:40:42.474Z (12 months ago)
- Topics: ann, classification, image-classification, jupyter-notebook, pytorch, resnet, resnet-101, resnet-152, resnet-18, resnet-34, resnet-50, torchvision
- Language: Jupyter Notebook
- Homepage:
- Size: 1.59 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ResNet Comparison for Garbage Image Classification with PyTorch

---
## Data
SOURCE - https://www.kaggle.com/datasets/asdasdasasdas/garbage-classification
## Models
All ResNet models have been trained on a local GPU (MSI GAMING X TRIO GeForce RTX 3070 Ti) then saved as individual pickle files. Each model contains a few custom attributes as follows; name,history,maxAcc,evalAcc. These attributes primarily contain summary data from the last training for each respective model. Running this notebook will download the training data and the trained models for exploration.
## Goal
In this notebook we will implement different ResNet’s with the goal of comparing the models to find the 'best' for our classifier.
We are seeking to understand which ResNet configurations are most effective for classifying images of garbage. This type of modeling could be used for automated garbage aggregation systems.
## Model Comparison

## Conclusion
Comparing ResNet models with an adam optimizer 8 epochs and a learning rate of 5.5e-5 for classification of garbage types yields a max model accuracy of 96% for the ResNet101 pretrained model. We should consider retraining the ResNet101 model with more epochs to locate where the accuracy fall off begins.
For reference, a good list of models and accuracies sit in pytorch’s docs: https://pytorch.org/vision/main/models.html