zhangy76 / PhysMoP

Code repository for Incorporating Physics Principles for Precise Human Motion Prediction
MIT License
23 stars 3 forks source link

question for fusion_net #4

Closed ChangjianLi closed 3 months ago

ChangjianLi commented 3 months ago

Hi, great work. I have a little question about the calculation about weight_t ---> weight_t = torch.tanh(self.fusion_net(motion_pred_data[:, config.hist_length:].clone().detach(), motion_pred_physics_pred[:, config.hist_length:].clone().detach(), motion_feats.clone().detach(), time_idx.clone().detach())) ** 2 which is calculated using detach() parameters, I wondering why

zhangy76 commented 3 months ago

Our framework basically consists of three components, the data-drive, the physics, and the fusion model. Adding ".detach()" is intended to train each model individually.

zhangy76 commented 3 months ago

Close due to being inactive, please feel free to reopen.