Code Monkey home page Code Monkey logo

Comments (4)

ziqipang avatar ziqipang commented on June 17, 2024

@zen-d Thanks for your question! I only use the motion on the BEV for updating reference points (

motions = track_instances.motion_predictions[:, 0, :2].clone()
). However, what you mentioned is correct and interesting, and I haven't paid attention to it before. Somehow the training runs correctly even though the z-axis is not used.

from pf-track.

zen-d avatar zen-d commented on June 17, 2024

@ziqipang Thanks for your prompt reply! Maybe I would like to further make myself understood. The last layer of future_reg is an FC with the weight matrix of shape $256 \times 3$, but it seems that only the first two dimensions of its output are extracted for loss calculation
https://github.com/TRI-ML/PF-Track/blob/main/projects/tracking_plugin/models/trackers/tracker.py#L243-L247

Based on my experience, PyTorch DDP will raise an error when launching the training, since the weights of future_reg do not all receive gradients (only a $256 \times 2$ matrix do), i.e., "unused parameters" exist. However, I did not meet such an error. The underlying reason is actually what I am curious about.

from pf-track.

ziqipang avatar ziqipang commented on June 17, 2024

@zen-d Yeah, I agree with you. I am also surprised after noticing what you mentioned to me. I tend to think this is a behavior of DDP and not so familiar with it. Perhaps you could have a minimal example of exploring this and ask some experts on the Pytorch forum.

from pf-track.

zen-d avatar zen-d commented on June 17, 2024

@ziqipang After second thought, I realize that as a whole tensor, some entry of the FC weight matrix just receives zero gradients, instead of not receiving grad (thereby without triggering any error). It might not be so useful but correct. Thank you.

from pf-track.

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.