GithubHelp home page GithubHelp logo

archive-for-processing / processing-simpleimagelabeling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gohai/processing-simpleimagelabeling

0.0 1.0 0.0 80.74 MB

Image Labeling for Processing using TensorFlow and the Inception model

License: Apache License 2.0

JavaScript 5.96% CSS 25.71% Java 68.33%

processing-simpleimagelabeling's Introduction

Simple Image Labeling

Use a pre-trained Inception model with Processing

see examples/Test/Test.pde

TODO

  • build a Pi 2/3 optimized version of the JNI library
  • look into using different models (different, more labels?)
  • attempt to make the code generic so that it can work with different models
  • expose GraphBuilder class?

Notes for compiling the JNI bindings for TensorFlow on ARM Linux

The repository comes with libtensorflow_jni.so for armv6hf, but if this needs to be re-done with a later version of TensorFlow:

sudo dd if=/dev/zero of=/dev/swap bs=1M count=1000
sudo mkswap /swap
sudo chmod 0600 /swap
sudo swapon /swap

sudo apt-get install -y autoconf automake libtool gcc-4.8 g++-4.8 zip
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100

sudo cp bezel /usr/local/bin

wget https://github.com/tensorflow/tensorflow/archive/v1.1.0-rc2.tar.gz
tar vfx v1.1.0-rc2.tar.gz
cd tensorflow-1.1.0-rc2

unset IS_MOBILE_PLATFORM in tensorflow/core/platform/platform.h to fix https://github.com/tensorflow/tensorflow/issues/3469

./configure
passed -Os as compile flag, rest default
alternatively, to optimize for Pi2 and Pi3: -mfpu=neon-vfpv4 -funsafe-math-optimizations -ftree-vectorize -Os
something else that was suggested somewhere: -D__ANDROID_TYPES_SLIM__
bazel build --config opt tensorflow/java:tensorflow tensorflow/java:libtensorflow_jni

processing-simpleimagelabeling's People

Contributors

gohai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.