Skip to main content

Sketch NN

Sketch NN Logo

Transform hand-drawn neural network sketches into functional PyTorch code

PyPI version License: MIT Python Versions

Sketch NN is an innovative Python library that transforms hand-drawn neural network sketches into functional PyTorch code. Design your neural architectures on paper, capture them with our tool, and watch as Sketch NN brings your ideas to life!

🌟 Features

  • 📸 Process hand-drawn or digital sketches of neural network architectures
  • 🧠 Support for a wide range of neural network layers
  • 🔧 Generate ready-to-use PyTorch code
  • 🖥️ User-friendly Gradio web interface for quick prototyping
  • 🚀 FastAPI backend for scalable deployment

🛠️ Supported Layers

  • Convolutional (Conv2D)
  • Pooling (MaxPool2D, AvgPool2D)
  • Fully Connected (Linear)
  • Batch Normalization
  • Dropout
  • Activation Functions (ReLU, LeakyReLU, Sigmoid, Tanh)
  • Recurrent (LSTM, GRU)
  • Transformer
  • Multi-head Attention

🚀 Installation

Install Sketch NN using pip:

pip install sketch_nn

🚀 Usage

from sketch_nn import NeuralNetworkDesigner

designer = NeuralNetworkDesigner()
designer.process_image('path_to_your_sketch.png')
pytorch_code = designer.generate_pytorch_code()
designer.write_to_file(pytorch_code, 'custom_nn.py')

Gradio Web Interface Demo

from sketch_nn.demo import run_gradio_demo

run_gradio_demo()

Metadata

Release files for sketch-nn 0.1.7

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

Source distribution (sdist)

Source distribution for sketch-nn 0.1.7
File Size Uploaded Provenance Actions
sketch_nn-0.1.7.tar.gz 5.9 kB Without provenance Details for sketch_nn-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sketch-nn 0.1.7
File Interpreter ABI Platform Actions
sketch_nn-0.1.7-py3-none-any.whl Python 3 none any Details for sketch_nn-0.1.7-py3-none-any.whl

Total release size: 11.7 kB

Release files / sketch_nn-0.1.7.tar.gz

Download URL sketch_nn-0.1.7.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6f64adc054c53986efce45e6d7f690e542ba60198d84ea58a2d03761ec73634d
BLAKE2b-256 checksum
How to use checksums
90b1634d2f147a368de849aca650155dc9ac7de4d217acf95c1a89e6126b0e80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Release files / sketch_nn-0.1.7-py3-none-any.whl

Download URL sketch_nn-0.1.7-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f34497643afc1eba793d55b6acd7e580aab7b131073a34e1e1081aba701eed9
BLAKE2b-256 checksum
How to use checksums
7ae9139dd201dd52a94465ad140bce0440cc2f846317e6472262feef77cba86d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Security for sketch-nn 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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