Skip to main content

Tools for training neural networks on the CIFAR-10 task with PyTorch and TensorFlow

Project description

PyTorch: CIFAR-10 Demonstration

Publish to PyPI Deploy Documentation

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.

View on PyPI | Documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cifar10_tools-0.5.4.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cifar10_tools-0.5.4-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file cifar10_tools-0.5.4.tar.gz.

File metadata

  • Download URL: cifar10_tools-0.5.4.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

Hashes for cifar10_tools-0.5.4.tar.gz
Algorithm Hash digest
SHA256 8956ce7c98ccd91b4a51551a059fabb27c55364139a06e920aa61d615109ef97
MD5 55ed81bec92414a6e0cda06b335a450c
BLAKE2b-256 a9e9fddc59f8047972fb3c3a0f25c705195b3f5fe16faf81da72543e24abb54a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifar10_tools-0.5.4.tar.gz:

Publisher: publish-to-pypi.yml on gperdrizet/CIFAR10

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cifar10_tools-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: cifar10_tools-0.5.4-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

Hashes for cifar10_tools-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b5db90a304bf713fc33264c63cbe8aaa7f08b2b35f96cb03203625997e8f1db4
MD5 f66f51a3ef05cf8a4f8f74c75911f237
BLAKE2b-256 c23ca686d71733f0c4eed00f2aaad50dda7a947cc21fcdb929cccb03ccf73def

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifar10_tools-0.5.4-py3-none-any.whl:

Publisher: publish-to-pypi.yml on gperdrizet/CIFAR10

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page