Skip to main content

Power Trip Lab's neural network!

Project description

Neural Network

v1 Static Badge

A neural network library built without any AI libraries, only NumPy.

How to Use

Training

You have to set any images you want the model to train off of in the train/ folder.

Then, run src/ptl-neural-network/train.py. It will automatically take all the images and train the A.I. model. This could take a while! It will store the output as a model.pkl file.

Usage

You can now run src/ptl-neural-network/run.py, with the only requirement being the model.pkl that you got from training.

It will ask for a .png file, and you can provide a relative or absolute path here. It will then find the closest image that matches your PNG.

Note that its output is the name of the image found from training data, so you might have to do some filtering to determine what the PNG is (bus) instead of a image name (bus3)

Alternative

You can also do pip install ptl-neural-network to get the CLI.

The command syntax is ptl-neural train/run. The above guide also works with the CLI, except don't run train.py or run.py.

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

ptl_neural_network-1.0.3.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

ptl_neural_network-1.0.3-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file ptl_neural_network-1.0.3.tar.gz.

File metadata

  • Download URL: ptl_neural_network-1.0.3.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ptl_neural_network-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b6bbcb1a9e3d4eca9c9fba543011fd69932eec69173596c65f0122f885bddf51
MD5 b0c5a04fd4914d2902184c197b0560c2
BLAKE2b-256 a4a4633f1928515db482007faff078e5ecbc57059583c1ad15f9d9b545dbd243

See more details on using hashes here.

Provenance

The following attestation bundles were made for ptl_neural_network-1.0.3.tar.gz:

Publisher: python-publish.yml on Power-Trip-Labs/neural-network

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ptl_neural_network-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ptl_neural_network-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8f65950165863d1a18355a240bf3be74c2e0e2be669c9d2fdeb3d51cf8bc5e69
MD5 1382d7ccb7639df9f33a48136f7a9ecb
BLAKE2b-256 5aeb3824497e5f6db05b268671557f02bce0e8ab30563fd8ceb4398c2727af1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ptl_neural_network-1.0.3-py3-none-any.whl:

Publisher: python-publish.yml on Power-Trip-Labs/neural-network

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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