GRIP icon indicating copy to clipboard operation
GRIP copied to clipboard

issue about only one agent prediction

Open jhtao1860 opened this issue 4 years ago • 5 comments

prediction-12 @xincoder thanks for sharing your algorithm. I have a question, for only one-agent, the prediction looks no good. Do you know the reason?

jhtao1860 avatar Mar 08 '21 05:03 jhtao1860

Hi @jhtao1860 , thank you for your interest in our work and run it on your side. I did not face this problem before. There are several things that we may want to double-check: (1) While you are predicting the trajectories, please make sure the data of valid traffic objects are put in the first raws. (2) Data scale. The observed history (blue) and predicted trajectory (red) should have the same scale. If there is no problem with the above-mentioned parts, you should not get such kind of outputs.

xincoder avatar Mar 08 '21 09:03 xincoder

@xincoder the result is the 12th( index 0 is the first ) case of all 415 scenarios in "prediction_test.txt" . I did not change the source code so I did not change the "Data scale"(and dont know how to change it). I found some phenomenon. ONLY the predicition of one-agent-in-a-scenario is not good. SO I tried 2 ways to cope the problem. 1. Make a static-fake agent to get 2 agent in the case. 2 Change the in_channels to 2. Both the ways get good prediction(though i dont know why)

jhtao1860 avatar Mar 09 '21 02:03 jhtao1860

@jhtao1860 Thank you for clarifying. I did not visualize all testing samples before, thus I thought you run the code on your own data. Sorry about the misunderstanding. In this case, it may be caused by the trained-weight. Maybe a single object causes a numerical stability problem.

xincoder avatar Mar 09 '21 06:03 xincoder

How did you draw the trajectory?Thanks

lylyjy avatar Mar 25 '21 03:03 lylyjy

@lylyjy Thank you for asking. The visualized results reported in our paper were generated using Plotly. It is very easy to draw it using any library that you are familiar with, e.g., Matplotlib, etc.

xincoder avatar Mar 25 '21 04:03 xincoder