Skip to main content

LiteCNN - Easy Creating and Visualizing CNN Model

LiteCNN is a Python library designed to simplify the creation, training, and visualization of convolutional neural networks (CNNs). It provides an intuitive interface for deep learning enthusiasts and developers who want to work with CNN models without the complexity often associated with neural network frameworks.

Features

  • Straightforward definition of CNN layers with intuitive syntax
  • Streamlined training and model evolution capabilities
  • Visual representation of model architecture
  • 15 pre-configured popular Keras application models ready for immediate use
  • Seamless conversion of Keras models to ONNX format

Documentation

Documentation

Authors

Tech Stack

Languages: Python

Libraries: Tensorflow, Matplotlib, Numpy, OpenCv

License

MIT

FAQ

what are the advantages ?

  • Very easy and comfortable syntax
  • Full control for developer
  • Automatic data preparation and visualization processes
  • Compatibility of model: option to convert to onnx type file.

What functionalities are under construction?

  • Presets for popular models
  • Exporter and Converter for files with models
  • Special Visualizer to display training process

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

Basic Usage/Example

from litecnn.core import LiteCNN
from litecnn.visualizer import TrainingVisualizer
import os
from tensorflow.keras.datasets import cifar10

class_names = ['car', 'plane', 'cat', 'dog', 'bird', 'deer', 'horse', 'frog', 'ship', 'truck']

(x_train, y_train), (x_test, y_test) = cifar10.load_data()

my_file = os.path.join(os.path.dirname(__file__), 'car.jpg')

x_train = x_train[:2000]
y_train = y_train[:2000]
x_test = x_test[:400]
y_test = y_test[:400]
x_train = x_train / 255
x_test = x_test / 255

model = LiteCNN()
model.add_conv(32, 3)
model.add_max_pool(2)
model.add_conv(64, 3)
model.add_max_pool(2)
model.add_conv(128, 3)
model.add_max_pool(2)
model.add_flatten()
model.add_dense(10, activation='softmax')
model.compile()
history = model.train(x_train, y_train, x_test, y_test, epochs=5)
prediction = model.predict(my_file)

visualizer = TrainingVisualizer()
visualizer.plot_training(history)

Metadata

Release files for litecnn 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for litecnn 1.0.3
File Size Uploaded
litecnn-1.0.3.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for litecnn 1.0.3
File Interpreter ABI Platform
litecnn-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / litecnn-1.0.3.tar.gz

Download URL litecnn-1.0.3.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8c6d3bb11424a2b9cd1cb71b45c743f8bf1c9b3108a3fea356dc7ba1b6fcbbfc
BLAKE2b-256 checksum
How to use checksums
06c84b8f94c931e587169ef06382e09904acf5217fc01784578254fe97b8a80c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release files / litecnn-1.0.3-py3-none-any.whl

Download URL litecnn-1.0.3-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2ddc5388c71aed361ea24602fd699e119858ca1b10101ec2e104c92ac86d17f
BLAKE2b-256 checksum
How to use checksums
c9b94e415485f943d0c219a504fa9d45e7d0b2f91c0d88669eb066b95b3980c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page