Skip to main content

Minimal, well-documented CNN models for image classification. Great for beginners!

Project description

MiniCNN

MiniCNN is a minimal, well-documented Python package with beginner-friendly Convolutional Neural Network (CNN) models using PyTorch.
Great for learning, tutorials, and fast prototyping.

Installation

pip install minicnn

Usage

import torch

from MiniCNN import SimpleCNN, TinyCNN

Example: Create a SimpleCNN model for MNIST (10 classes)

model = SimpleCNN(num_classes=10)

print(model)

Random input (batch=1, channel=1, size=28x28)

x = torch.randn(1, 1, 28, 28)

y = model(x)

print(y.shape) # torch.Size()

Features

  • SimpleCNN: Standard small CNN, 2 conv layers + 2 FC layers.
  • TinyCNN: Extremely small model for quick tests.

Requirements

  • Python 3.8+
  • PyTorch >= 2.0.0

License

MIT License

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

minicnn-0.3.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

minicnn-0.3.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file minicnn-0.3.0.tar.gz.

File metadata

  • Download URL: minicnn-0.3.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for minicnn-0.3.0.tar.gz
Algorithm Hash digest
SHA256 da4b311f799d4d414d1668adbba9b480cf8ba70aa9b29f1a87d3e62adc790f67
MD5 8f9f7c9c69714eac41cdd2d337e6ce43
BLAKE2b-256 2bb739722cd689bbd5245244d342fe19bf7d9635210f7650f13b7cbea65c3150

See more details on using hashes here.

File details

Details for the file minicnn-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: minicnn-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for minicnn-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e51b36c990d80e3f5959a6a6efd4fab81c8213ac27c6109bd3bd4917bac3bac
MD5 be6873b25b741268aa48a1c7d8ce0eb9
BLAKE2b-256 22ec28e63792086d71fabd2842d66d601739a8711fc227367855551fa2d044b1

See more details on using hashes here.

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