Code Monkey home page Code Monkey logo

Comments (2)

jakeret avatar jakeret commented on July 17, 2024

1&2) I looked at the code, it could be that there is a bug when I set up the exponential decaying learning rate. Maybe it should be global_step=global_step*self.batch_size but I'm not sure and I can't test it atm.

  1. I don't have any experience with the dice coefficient. I could change the tf_unet code a bit such that it becomes easier to change the loss function

  2. everything you pass as opt_kwargs is forwarded to the optimizer. According to the API, momentum is not a parameter of AdamOptimizer. So the exception is expected

from tf_unet.

surfreta avatar surfreta commented on July 17, 2024

Hi Joel,

I think your finding is right. This mnist example https://github.com/tensorflow/tensorflow/blob/master/tensorflow/models/image/mnist/convolutional.py#L245 discusses the same thing.

However, I have a question regarding your using global_step

the sess.run((self.optimizer ....)) (line 380 in unet.py)is called within the iteration setup by

for step in range((epoch*training_iters), ((epoch+1)*training_iters)):

It seems to me, we should use step*self.batch_size to get the current index in the dataset.
I understand when you define self.learning_rate_nodeat line 285, you can only get access global_step.

In specific, my question is how do you connect stepwith global_step. I could not find the code in your program that
can bridge these two vectors. I know I may miss something, but I am kind of confused where I am wrong.

Besides, during the training epochs, the prediction figures looks like the background (or opposite) of the raw image. Did you have similar observations even for your other data sets, if you have not tested the kaggle set. Thanks.

epoch_0

surfreta

from tf_unet.

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.