lmb-freiburg / Contrastive-Future-Trajectory-Prediction

The official repository of the ICCV paper "On Exposing the Challenging Long Tail in Future Prediction of Traffic Actors"
Apache License 2.0
25 stars 5 forks source link

Features at the bottleneck #6

Open ArielleZhang opened 9 months ago

ArielleZhang commented 9 months ago

Hi,

I noticed that in the code implementaion, there is a (232,) feature for each trajectory at each timestep. When scoring and classifying the difficulty of the trajectory we only have one score per trajectory, then in the contrastive loss step, how are anchors selected? Is it the average of all the features at each timestep of the same trajectory?

Thanks,

Arielle

os1a commented 7 months ago

Hi Arielle,

Sorry for the late response. Yes, the features for each trajectory has a dimension of 232. When applying the contrastive learning we multiply the features with its transpose (matrix multiplication) in line 24. The result will be a matrix of size (num_trajectories, num_trajectories), which are the anchors. Then we select the maximum one.

Best, Osama