Git Product home page Git Product logo

Comments (2)

jchibane avatar jchibane commented on August 19, 2024

@lykius
thanks!
to your points:

  • Yes, exactly - for the grid_sample function we need to convert to [-1,1] , additional 0.5 serves as slack - not strongly necessary theoretically.

  • Points in [-1,1] in grid sample coordiantes correspond to [-0.5,0.5] in mesh coordinates, so there is no mismatch.

  • The movements are predicted in mesh space, the grid_sample space is just intermediate and only important for implementation. The network is supervised with mesh space and the results are interpreted in mesh space - so this is correct as is.

  • We are sampling random points in a symmetric cube - so we don't need to swap any coordinates.

Best
Julian

from ndf.

Wi-sc avatar Wi-sc commented on August 19, 2024

Hi @jchibane,

I think @lykius is right here. The code here should be samples = samples - F.normalize(gradient, dim=2) * df_pred.reshape(-1, 1)*2. Because your inputs are grid coordinate points [-1,1] and your outputs are udf under mesh space [-0.5,0.5]. Here the samples are grid coordinate points instead of mesh space points. You move the grid coordinates points instead of mesh space points here.

from ndf.

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.