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

Uploaded Python 3

File details

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

File metadata

  • Download URL: minicnn-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 41e1a1610f5635faaf3c388b95a1259f0194a4bf64073dbafac1272b89240cef
MD5 71045158b7424f8443c40f2a4e344664
BLAKE2b-256 3dd6d4afe7314b959d3bffe73e3e905d395e5bb709d0f8fa61735145bc16abc3

See more details on using hashes here.

File details

Details for the file MiniCNN-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: MiniCNN-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7478567dee8ad9afc2511ae189af7d58ffdb0082926fbb261701f2dce7089cde
MD5 1a58b1a769d786381f91d4bd6a77a708
BLAKE2b-256 46e0cebd9d0d100cf099b08347b46ce3875136d07f87958c9f7e7025ebc742df

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