Git Product home page Git Product logo

pl-tensorflowapp's Introduction

This repository has been archived, as we dont maintain it's content anymore, there is no new home for the code, feel free to contained any of the contributors!

pl-tensorflowapp

Abstract

Sample Tensorflow application plugin for Chris Project. The application is a digit-identification application based on MNIST data.

Run

usage: tensorflowapp.py [-h] [--json] [--savejson DIR] [--inputmeta INPUTMETA]
[--saveinputmeta] [--saveoutputmeta] [--prefix PREFIX] [--inference_path imagedir] inputdir outputdir

Runs the tensorflow application.

positional arguments:
inputdir directory containing the input files outputdir directory containing the output files/folders inference_path directory containing the test digit images
optional arguments:
-h, --help show this help message and exit
--json show json representation of app and exit
--savejson DIR save json representation file to DIR and exit
--inputmeta INPUTMETA
 meta data file containing the arguments passed to this app
--saveinputmeta
 save arguments to a JSON file
--saveoutputmeta
 save output meta data to a JSON file
--prefix PREFIX
 prefix for file names

Using docker run

Assign an "input" directory to /incoming and an output directory to /outgoing. The input is prepopulated with mnist data.

mkdir -p input && mkdir -p output

To train the mnist model. Below command will train a mnist model and output the accuracy to a file in $(pwd)/output folder.

docker run --rm -v $(pwd)/input:/incoming -v $(pwd)/output:/outgoing   \
        submod/pl-tensorflowapp tensorflowapp.py            \
        --prefix mnist-                                     \
        /incoming /outgoing

To train the mnist model & also run inference. Below command will train a mnist model also run inference on the test image against the mnist model.

docker run --rm -v $(pwd)/input:/incoming -v $(pwd)/output:/outgoing   \
        submod/pl-tensorflowapp tensorflowapp.py            \
        --prefix mnist-                                     \
        --inference_path /incoming/test/test.png            \
        /incoming /outgoing

Make sure that the host $(pwd)/output directory is world writable!

pl-tensorflowapp's People

Contributors

sub-mod avatar goern avatar saisankargochhayat avatar

Watchers

 avatar James Cloos avatar  avatar Kevin Postlethwait avatar Marek Čermák avatar  avatar

pl-tensorflowapp's Issues

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.