Git Product home page Git Product logo

Comments (5)

adavradou avatar adavradou commented on June 12, 2024

I also just reshaped my data, so that I don't have to do any other changes in the original code:

    y_true = tf.transpose(y_true2, [0, 3, 1, 2])
    y_pred = tf.transpose(y_pred2, [0, 3, 1, 2])

but unfortunately the training output is exactly the same.

from active-contour-loss.

yaoyz96 avatar yaoyz96 commented on June 12, 2024

Hello, I also encountered the same problem, have you solved it?

from active-contour-loss.

adavradou avatar adavradou commented on June 12, 2024

Hello!

I haven't solved the problem yet.
I contacted the author and he said that the loss is sensitive to unbalanced classes problems on diiferent datasets.

So, he suggested the following things:

  1. Try to find two another well-choosed hyperparameters a and b: a* regionin + b * regionout in the region term according to your dataset.
  2. Try to train with a pre-trained model (no need converged too much) to tackle the initialisation problem of model and the AC model.

Good luck!
Please update if you solve it, I wll do the same :)

from active-contour-loss.

yaoyz96 avatar yaoyz96 commented on June 12, 2024

Hi there, I solved this problem by crop my data. I think the loss is sensitive to unbalanced categories. And the learning rate is 0.0005, keep the y_pred is a probability map between [0,1]. No other code changes.

from active-contour-loss.

adavradou avatar adavradou commented on June 12, 2024

Thank you very much!
I can't test it for the next few weeks, but I will try and also update.

from active-contour-loss.

Related Issues (15)

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.