Tools for training neural networks on the CIFAR-10 task with PyTorch and TensorFlow
Project description
PyTorch: CIFAR-10 Demonstration
A progressive deep learning tutorial for image classification on the CIFAR-10 dataset using PyTorch. This project demonstrates the evolution from basic deep neural networks to optimized convolutional neural networks with data augmentation. It also provides a set of utility functions as a PyPI package for use in other projects.
Installation
Install the helper tools package locally in editable mode to use in this repository:
pip install -e .
Or install from PyPI to use in other projects:
pip install cifar10_tools
Project overview
This repository contains a series of Jupyter notebooks that progressively build more sophisticated neural network architectures for the CIFAR-10 image classification task. Each notebook builds upon concepts from the previous one, demonstrating key deep learning techniques.
Notebooks
| Notebook | Description |
|---|---|
| 01-DNN.ipynb | Deep Neural Network - Baseline fully-connected DNN classifier using nn.Sequential. Establishes a performance baseline with a simple architecture. |
| 02-CNN.ipynb | Convolutional Neural Network - Introduction to CNNs with convolutional and pooling layers using nn.Sequential. Demonstrates the advantage of CNNs over DNNs for image tasks. |
| 03-RGB-CNN.ipynb | RGB CNN - CNN classifier that utilizes full RGB color information instead of grayscale, improving feature extraction from color images. |
| 04-optimized-CNN.ipynb | Hyperparameter Optimization - Uses Optuna for automated hyperparameter tuning to find optimal network architecture and training parameters. |
| 05-augmented-CNN.ipynb | Data Augmentation - Trains the optimized CNN architecture with image augmentation techniques for improved generalization and robustness. |
Requirements
- Python >=3.10, <3.13
- PyTorch >=2.0
- torchvision >=0.15
- numpy >=1.24
License
This project is licensed under the GPLv3 License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cifar10_tools-0.5.5.tar.gz.
File metadata
- Download URL: cifar10_tools-0.5.5.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b97aa2275715d46066f14b067aefb4673a9d35b45ba475e5035b243ac007c2a8
|
|
| MD5 |
069521cb7de43497b80add82819fe27b
|
|
| BLAKE2b-256 |
bc9e1beedab86656c6b4edae47cd3913a34e37f04e0766e580486bd2040ac237
|
Provenance
The following attestation bundles were made for cifar10_tools-0.5.5.tar.gz:
Publisher:
publish-to-pypi.yml on gperdrizet/CIFAR10
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cifar10_tools-0.5.5.tar.gz -
Subject digest:
b97aa2275715d46066f14b067aefb4673a9d35b45ba475e5035b243ac007c2a8 - Sigstore transparency entry: 919851786
- Sigstore integration time:
-
Permalink:
gperdrizet/CIFAR10@9bd7ec9d508af7df42f0a31937cb46c34d0f6c8b -
Branch / Tag:
refs/tags/0.5.5 - Owner: https://github.com/gperdrizet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@9bd7ec9d508af7df42f0a31937cb46c34d0f6c8b -
Trigger Event:
release
-
Statement type:
File details
Details for the file cifar10_tools-0.5.5-py3-none-any.whl.
File metadata
- Download URL: cifar10_tools-0.5.5-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35d2d4c64abffb81673a6375eec2a06ac0139ada0e36077a2c280cc71d400c18
|
|
| MD5 |
de262133279d11bb798d6d07b76051eb
|
|
| BLAKE2b-256 |
3ea837903fc1b509a13f4f671130f9be147857c816e3620970ccf6be739ec816
|
Provenance
The following attestation bundles were made for cifar10_tools-0.5.5-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on gperdrizet/CIFAR10
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cifar10_tools-0.5.5-py3-none-any.whl -
Subject digest:
35d2d4c64abffb81673a6375eec2a06ac0139ada0e36077a2c280cc71d400c18 - Sigstore transparency entry: 919851792
- Sigstore integration time:
-
Permalink:
gperdrizet/CIFAR10@9bd7ec9d508af7df42f0a31937cb46c34d0f6c8b -
Branch / Tag:
refs/tags/0.5.5 - Owner: https://github.com/gperdrizet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@9bd7ec9d508af7df42f0a31937cb46c34d0f6c8b -
Trigger Event:
release
-
Statement type: