GoalFlow icon indicating copy to clipboard operation
GoalFlow copied to clipboard

About goal point in training

Open fengjiang5 opened this issue 4 months ago • 1 comments

Hello, thank you for your excellent work. I'm really interested in these!

I have a question: in your training code, has_navi=True. However, in the flow section, there is code like this:

if self._config.has_navi:
  navi=gt_trajs[:,7:8,:2].clone().to(device)
  navi_feature=pos2posemb2d(navi,num_pos_feats=self._config.tf_d_model//2).squeeze(1)
  global_feature=trajectory_query.squeeze(1)

Is this using the ground-truth point?

Shouldn't it use the goal point?

fengjiang5 avatar Aug 05 '25 11:08 fengjiang5

@fengjiang5 Yes, in training, we have tried two different settings: using the gt goal point (end point of the gt trajectory) and the goal point predicted by the goal point construction module. The results of these are very similar, and the former is slightly better.

ZebinX avatar Aug 13 '25 14:08 ZebinX

@fengjiang5 Yes, in training, we have tried two different settings: using the gt goal point (end point of the gt trajectory) and the goal point predicted by the goal point construction module. The results of these are very similar, and the former is slightly better.

So if I want to use this model in a real-world scenario, do I need to run inference twice? First to infer a goal point, and then to infer the trajectory?

frkmac3 avatar Dec 11 '25 15:12 frkmac3

@frkmac3 Yes, you should first infer a goal point, and then the trajectory.

ZebinX avatar Dec 12 '25 11:12 ZebinX