Coder Social home page Coder Social logo

Comments (7)

ritheshkumar95 avatar ritheshkumar95 commented on July 19, 2024

Hey,

This issue seems peculiar to me.

Are you saying is_training=True returns the correct answer but is_training=False returns the wrong one?

from im2latex-tensorflow.

wh0 avatar wh0 commented on July 19, 2024

Are you saying is_training=True returns the correct answer but is_training=False returns the wrong one?

Yes

from im2latex-tensorflow.

wh0 avatar wh0 commented on July 19, 2024

I've found that the batch_norm wasn't working right in the training that went into the released weight files. The moving_mean and moving_variance tensors have initial values. We're going to try to update the code to carry out the batch_norm update operations during training. cc @mitar

from im2latex-tensorflow.

ritheshkumar95 avatar ritheshkumar95 commented on July 19, 2024

Right,

Sorry. I just noticed in tflib.contrib that batch_norm by default doesn't update moving means / averages. I thought it does by default.

Check this https://www.tensorflow.org/api_docs/python/tf/contrib/layers/batch_norm

from im2latex-tensorflow.

mingchen62 avatar mingchen62 commented on July 19, 2024

I encountered the same issue with is_training=False. Not sure if @wh0 get a chance to update the code.

from im2latex-tensorflow.

wh0 avatar wh0 commented on July 19, 2024

@mingchen62 I ended up not altering the training process at all.

from im2latex-tensorflow.

mingchen62 avatar mingchen62 commented on July 19, 2024

All right. According to document, it looks like we will need to update "attention.py"
adding something like this:

update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
with tf.control_dependencies(update_ops):
train_step =....

I will give it a try

from im2latex-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.