Giter Site home page Giter Site logo

karlnicholas / tensorflowmodel Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 4.0 22 KB

Java read Tensorflow model created at Deep MNIST for Experts

Home Page: https://www.tensorflow.org/get_started/mnist/pros

Java 88.91% Python 11.09%
tensorflow tensorflow-models mnist-data

tensorflowmodel's Introduction

Java read Tensorflow model

Fixed version of Java MNIST Data Read Routines for playing with tensorflow tutorials. Displays the handwritten numbers properly.

Reads a tensorflow model written in Python and trained for the MNIST data and does an accuracy check against the MNIST training data. Uses the model from the tensorflow tutorial Deep MNIST for Experts . The python code in the root is the result of that tutorial with the code for saving the resulting trained model. This Java code reads that model and submits the MNIST data to it for predictions. The accuracy of the predictions are displayed. This Java code is based on the tutorial (or an earlier version of the same) for the same at Using Tensorflow models with Java.

There are a couple of Java apps.

1: Package mnist - code for reading MNIST data. Not mine, best I could find on github. Seems to work okay.

2: ShowMnistImages.java - reads MNIST data files and displays a random selection of digits.

3: LoadTensorFlowModel.java - reads MNIST data and submits images one at a time to the model, checks results. Code from the tutorial.

4: TensorFlowAtOnce.java - reads all 10,000 MNIST images and submits them all at once to the model, checks results. Works, but causes some serious pagefile swapping on my Windows machine.

5: TensorFlowLambda.java - same as tutorial code, I think, but with a lambda expression to submit the image to tensorflow.

6: TensorFlowLambdaMin.java - uses a real simple model that multiplies the input by 2. Someone along the lines of Getting Started With TensorFlow

Uses the expert convolutional neural net model in the Deep MNIST for Experts tensorflow getting started guide.

tensorflowmodel's People

Contributors

karlnicholas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.