You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
avg_l2_dist = (1./batch_size) * ((1./seq_lengths) * l2_dist.sum(1)).sum()
Why do you still multiply 1./batch_size while you have already multiplied 1./seq_lengths. I can't figure out the reason. Let's assume that all the positions in the predicted trajectory are valid, which means seq_legths = 12 and batch_size = 12. So in your code, you divide the l2_dist.sum(1) by 12*12. I think the right way is to divide it by 12. Could you tell me the reason why you do that?
The text was updated successfully, but these errors were encountered:
Hi, thanks for sharing your codes. You have done a great job. But I have a question about the ADE in the codes:
constant_velocity_pedestrian_motion/metrics.py
Lines 4 to 15 in 7fe0716
avg_l2_dist = (1./batch_size) * ((1./seq_lengths) * l2_dist.sum(1)).sum()
Why do you still multiply 1./batch_size while you have already multiplied 1./seq_lengths. I can't figure out the reason. Let's assume that all the positions in the predicted trajectory are valid, which means seq_legths = 12 and batch_size = 12. So in your code, you divide the l2_dist.sum(1) by 12*12. I think the right way is to divide it by 12. Could you tell me the reason why you do that?
The text was updated successfully, but these errors were encountered: