Skip to main content

A tiny image classification library.

Project description

Neuron

A tiny and very high level transfer learning library for image classification 📚

GitHub release Build Status Github All Releases PyPI - Downloads License

What is Neuron exactly?

Neuron is a tiny library that aims to simplify image classification (If you don't know what Image classification is, it's the process to tell from an image what object / thing / feature is on it).

Using Neuron, you'll be able to build production grade model under 5 lines of code. Yes, you read it correctly: 5 lines. Where as in common Machine Learning libraries like TensorFlow, PyTorch or Keras, you would do it in hundreds of lines.

Of course, these libraries are much more complex and versatile than Neuron. Neuron isn't replacing these libraries if you need to build your own graph, but if you're doing so, you probably already know this.

Install

Copy - paste that in a Terminal

pip install neuron-ml

Demo

Here is an example of what Neuron can do:

import neuron_ml as n

# TensorFlow

data = n.load("./dataset/") # formats the data
model = n.train(data) # train the data
n.export(model, [
	"./Model.pb",
	"./Labels.txt"
]) # Exports everything
n.clean(model) # Clean temporary files

And it can also load files and classify them (before using it for production, make sure you have good hardware, as the model can take up to 5 seconds to load and run).

import neuron_ml as n

model = n.model([
	"./Model.pb",
	"./Labels.txt"
]) # Load the model
graph = n.graph(model) # Generate the graph
labels = n.labels(model) # Get the labels
n.classify(graph, labels, "./dataset/Celery/celery-1.jpg") # Classify. Will return a result object

See the wiki for more informations.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Arthur Guiot - Initial work - @arguiot

Also look at the list of contributors who participated in this project. If you don't code but you have great ideas, don't hesitate to write your idea in the issue part. If your idea is accepted, I will add you to this list 😊.

License

This project is licensed under the MIT License - see the file for details

Copyright © 2018 Arthur Guiot All Rights Reserved.

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

neuron_ml-1.0.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

neuron_ml-1.0.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file neuron_ml-1.0.0.tar.gz.

File metadata

  • Download URL: neuron_ml-1.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for neuron_ml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9b7560646a2f344b0876143d7e76ddcb0402037256f4d18a91e039198cac8379
MD5 5acd70fc41eda08cd84ba961a0395988
BLAKE2b-256 5168034fdff8b44099783697cfd4716863778cf8992b2198c0f93d5d8d335cac

See more details on using hashes here.

File details

Details for the file neuron_ml-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: neuron_ml-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for neuron_ml-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 614fdcc95e57d303db1d05746cb519c4684873d74d64b4c700c4fd26d5f3aa1e
MD5 9527646df7adcf22ef5b3b312712a7fb
BLAKE2b-256 dbcdb800ad466bdb75f254a9204454797770af4414bab65af9c3813a036235fa

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