Git Product home page Git Product logo

tf-slim-mnist's Introduction

tf-slim-mnist

MNIST tutorial with Tensorflow Slim (tf-slim)

Setting up data

run convert_to_records.py to create [train, validation, test].tfrecords files containing MNIST data by default (unless you specify --directory) they will be put into /tmp/data

Running

Run the training, validation, and tensorboard concurrently. The results of the training and validation should show up in tensorboard.

Running the training

run mnist_train.py which will read train.tfrecords using an input queue and output its model checkpoints, and summaries to the log directory (you can specify it with --log_dir)

Running the validation

run mnist_eval.py which will read validation.tfrecords using an input queue, and also read the train models checkpoints from log/train (by default). It will then load the model at that checkpoint and run it on the validation examples, outputting the summaries and log to its own folder log/eval (you can specify it with --log_dir)

Running tensorboard

Tensorboard allows you to keep track of your training in a nice and visual way. It will read the logs from the training and validation and should update on its own though you may have to refresh the page manually sometimes.

Make sure both training and validation output their summaries to one log directory and preferably under their own folder. Run tensorboard --logdir=log (replace log with your own log folder if you changed it).

If each process has its own folder then train and validation should have their own colour and checkbox

tf-slim-mnist's People

Contributors

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