Giter Site home page Giter Site logo

Comments (8)

xuuuuuuchen avatar xuuuuuuchen commented on June 2, 2024

Yes.

from active-contour-loss.

aa1234241 avatar aa1234241 commented on June 2, 2024

Subtracting zeros has no sense. C_1 = np.ones(256,256), I wonder why you don't just implement it as region_in = K.abs(K.sum(y_pred * ((y_true - 1) ** 2)))

from active-contour-loss.

achaiah avatar achaiah commented on June 2, 2024

That's what I was wondering as well. Also, abs() here is not necessary as your values are already squared and y_pred is in [0-1] range.

from active-contour-loss.

ojedaa avatar ojedaa commented on June 2, 2024

Hi friends. If I'm working with Keras CoLab and I'm using image_data_format": "channels_last"
is it enough to reorder the indixes to make it work?
For example, using (B,M,N,D) x = y_pred[:,1:,:,:] - y_pred[:,:-1,:,:]
instead of (B,D,M,N,)
x = y_pred[:,:,1:,:] - y_pred[:,:,:-1,:] ?

from active-contour-loss.

lc82111 avatar lc82111 commented on June 2, 2024

What is the value of y_true in region_in and region_out ?
Is y_truth[region_in] == 1 and y_truth[region_out]== 0 ?

from active-contour-loss.

xuuuuuuchen avatar xuuuuuuchen commented on June 2, 2024

@achaiah @aa1234241
Sorry for the late reply.
The reason why the loss function was expressed like that because we tried to make it is easy to be understood from the general AC equations.
Of course, you can simplify the loss function as much as you can on your own experiments.

from active-contour-loss.

xuuuuuuchen avatar xuuuuuuchen commented on June 2, 2024

@lc82111 Hi. y_true is fixed all the time, namely your ground truth.

from active-contour-loss.

xuuuuuuchen avatar xuuuuuuchen commented on June 2, 2024

@ojedaa Hi friend,
As long as you pre-define the tensor format already, it would be fine to do the indexing stuff.

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.