Skip to main content

LiteCNN: Intuitive Python library for creating, training and visualizing convolutional neural networks. Features simplified CNN layer definition, automated training workflows, model visualization, and seamless Keras-to-ONNX conversion. Includes 15 pre-configured popular models for immediate use.

Project description

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 easycnn.core import LiteCNN
from easycnn.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 = EasyCNN()
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)

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

litecnn-1.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

litecnn-1.0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file litecnn-1.0.1.tar.gz.

File metadata

  • Download URL: litecnn-1.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for litecnn-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4a4b9042a7681722a19d618bd83efa0ec7648c473b2649fbfcc8678255fd965f
MD5 a9c0905b789b85ead542249946d10f00
BLAKE2b-256 27c6c3afd75e21f55a75cc9fed3a5f772e718a59df4d03c593491bbe02903268

See more details on using hashes here.

File details

Details for the file litecnn-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: litecnn-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for litecnn-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d70352c41113b3972f713ea804faf1d8d321eb256666ae1ae02ec279886cb1b6
MD5 4c1567033d5d83a8d81f4b4327d0fbbb
BLAKE2b-256 1ec4fb34b9bc3e1ef36ce82f27e962a65eda77198c15d490ce5221cdcb5b2967

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