GithubHelp home page GithubHelp logo

batch normalize about densenet-tensorflow HOT 3 CLOSED

taki0112 avatar taki0112 commented on June 14, 2024
batch normalize

from densenet-tensorflow.

Comments (3)

taki0112 avatar taki0112 commented on June 14, 2024 1

If you look at this url, when you use tf.layers.batch_normalization, you have to define update_ops

However, there were the following issues (Only in my case... NOT all people)

  1. There was a problem that the learning was not good(the accuracy was low).
  2. I personally like simple code. In that case, I wrote the code in a way that I would not add it because I do not think it would be well understood by other users.
    It seemed like other users did not know something about control_dependencies or get_collection

So I used batch_norm in contrib
If you do updates_collections = None, the code is much simpler and easier to understand.
Also, the performance has been increased, and if you gave None, it's the same as doing control_dependencies above.

thank you

from densenet-tensorflow.

ydnaandy123 avatar ydnaandy123 commented on June 14, 2024

Oh wow! Many thanks for your detailed explanations!
You are so friendly~
I'm surprised that the performance will be affected!
Thanks for your sharing anyway.

BTW,
for the Global_Average_Pooling
I use tf.reduce_mean(input_tensor=x, axis=[1, 2], keep_dims=True)
What do you think~

from densenet-tensorflow.

taki0112 avatar taki0112 commented on June 14, 2024

Oh good idea.
Also, using reduce_mean is global_average_pooling.

from densenet-tensorflow.

Related Issues (20)

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.