HarshayuGirase / Human-Path-Prediction

State-of-the-art methods for human trajectory forecasting. Contains code for papers published at ECCV 2020 and ICCV 2021.
MIT License
341 stars 81 forks source link

Normalize the gt template #43

Open HRHLALALA opened 2 years ago

HRHLALALA commented 2 years ago

Hi, thanks for your excellent work!

I notice that your template is within (0,0.0099) and you do not normalize the template to (0,1) though there is such a choice. Would this affect the sigmoid function and BCE? Because usually, we use binary labels for this. May I ask any reason behind that?

Just want to make sure I am not missing important details! It will be helpful if you can answer these. Thanks!

ArcaneEmergence commented 2 years ago

The template reflects a probability distribution over positions, so everything should sum up to 1. As you mentioned, usually BCE is used for binary labels, but it can also be used to measure a distribution to another, as negative log-likelihood does.

https://pytorch.org/docs/stable/generated/torch.nn.BCELoss.html