Git Product home page Git Product logo

Comments (6)

xuuuuuuchen avatar xuuuuuuchen commented on June 11, 2024

from active-contour-loss.

JunMa11 avatar JunMa11 commented on June 11, 2024

Hi @xuuuuuuchen ,

Thanks for your quick reply.

In eq. (11), length term requires to compute the derivative of u. However, the derivative has been computed by forward difference here.

x = y_pred[:,:,1:,:] - y_pred[:,:,:-1,:] # horizontal and vertical directions
y = y_pred[:,:,:,1:] - y_pred[:,:,:,:-1]

from active-contour-loss.

xuuuuuuchen avatar xuuuuuuchen commented on June 11, 2024

The purpose for line 17 & 18 line is to compute within (a-1, a-1) shape, because after line 14 & 15, the shape of x & y are like (a-1, a) and (a, a-1),

Hope it answers your question.

from active-contour-loss.

JunMa11 avatar JunMa11 commented on June 11, 2024

Hi @xuuuuuuchen ,
Thanks for your reply.
I understand, but I think the shape of delta_x/y is (a-2, a-2) in your code. For ACDC, it is (254, 254).

from active-contour-loss.

xuuuuuuchen avatar xuuuuuuchen commented on June 11, 2024

@JunMa11 Yes, it is (a-2, a-2) not (a-1, a-1) in this code. I'm trying to make sure the shape of delta_x/delta_y is always square as well as contain meaningful info., but you could try on (a-1, a-1). I think there's no big difference if the image size is large enough.

Hope it answers your question.

from active-contour-loss.

JunMa11 avatar JunMa11 commented on June 11, 2024

Got it. Yes, a-1 or a-2 is not critical.
Thanks for your reply very much.

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.