Giter VIP home page Giter VIP logo

resnet_tensorflow's Introduction

Generate dataset

I've uploaded the partial gnt dataset, you can transfer it to any form as you need. Here, you can use resnet_tensorflow1.12/tfrecord_op/gnt2tfrecord.py to convert gnt to tfrecord within one minutes. After activating tensorflow-gpu, you can print python gnt2tfrecord.py -h to get the helpful information about parameters.

When you want to generate the training set, it's matter that to set the shuffle=1, or the network will be hard to converge.

Image text

If you are in Windows, Ubuntu or other systems which have the GUI, you can verify tfrecords by printing the images and theirs label. The python document involved is resnet_tensorflow1.12/tfrecord_op/test_tfrecord.py.

Image text

Train, Validate and Inference

All of the three sections were wrote in ./main.py, and you can print python main.py -h to get the helpful information.

How to start training

python  main.py --mode train 

Image text

How to start validation

python  main.py --mode validation 

How to start inference

Here, it needs you have the GUI in order that you can install pillow.

python  main.py --mode inference --png_dir xxx 

Image text Image text

How to use tensorboard

tensorboard –logdir=./log3755/train

Image text Image text

How to optimize the parameters

Firstly, you can change the learning_rate, decay_step, optimizer in ./main.py, I suggested that you can set them to 0.0001, 0.9, adam. Secondly, weight_decay, batch_norm_decay, batch_norm_epsilon in ./model/resnet_utils.py also can influence the accuracy.

Get the checkpoints and images

https://pan.baidu.com/s/1AnRdHv_ff-513OI5n7Cepg code: iiww

resnet_tensorflow's People

Contributors

huiyanwen avatar

Stargazers

 avatar

Watchers

James Cloos 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.