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.1.2.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.1.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minicnn-0.1.2.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.1.2.tar.gz
Algorithm Hash digest
SHA256 76fccfee71c76b81c6ed592e73d1bd260c489b7f3fed0288cecae3084f2465cf
MD5 35f8d85b4dd3e4166710eacdc8e4ebc4
BLAKE2b-256 efb3fdb8d693abc8ceee9562af9e2c4eb758bc395355c9cffc722bf8f8c47324

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minicnn-0.1.2-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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5d23d73e70d690099ba69df427ac0aee1e9a2c01109f434095e2c2244117770
MD5 8569d5a0118240ae63670e0f456c1d4e
BLAKE2b-256 5ad550cb9872f1bcbd429538690bf55845e15b59299512053ffbb281726e20df

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