Giter Site home page Giter Site logo

Comments (13)

abduallahmohamed avatar abduallahmohamed commented on July 17, 2024

In short for the visualization:
You figure out the homography matrix H for your dataset of interest.
Then you sample the video and capture a frame each 0.2 seconds, as mentioned in the dataset website like eth.
Then you do your predictions and transform them to the real world using H.
Last thing, to draw the distribution, it's a matter of choice, you can samples many trajectories from the predicted distribution and fit a KDE to it.

Hope this helps

from social-stgcnn.

yeyingdege avatar yeyingdege commented on July 17, 2024

In short for the visualization:
You figure out the homography matrix H for your dataset of interest.
Then you sample the video and capture a frame each 0.2 seconds, as mentioned in the dataset website like eth.
Then you do your predictions and transform them to the real world using H.
Last thing, to draw the distribution, it's a matter of choice, you can samples many trajectories from the predicted distribution and fit a KDE to it.

Hope this helps

@abduallahmohamed Sorry to bother. What does KDE mean?

from social-stgcnn.

xingchenzhang avatar xingchenzhang commented on July 17, 2024

Hi @abduallahmohamed,

I also have some questions about the visualization.

  1. You mentioned that ' sample the video and capture a frame each 0.2 seconds', I think this should be 0.4 seconds, right? because the coordiantes are sampled every 0.4 seconds

  2. To obtain a predicted trajectory, we need to make a sample from the predicted distribution, right?

  3. You mentioned 'Then you do your predictions and transform them to the real world using H'. It seems that the prediction we obtain is already read world coordinate? Maybe what we need to do is to trasnform them to pixel coordinate using H?

I am not sure if my understanding is correct...

Thank you very much for your help!
Bests,
Xingchen

from social-stgcnn.

abduallahmohamed avatar abduallahmohamed commented on July 17, 2024

from social-stgcnn.

xingchenzhang avatar xingchenzhang commented on July 17, 2024

Hi Abduallah @abduallahmohamed,

Thank you very much for your reply. I am now trying to visualize the trajectory. I have sampled the videos, and also have the H matrix. However, I am wondering:

  1. In your code, how you know which pedestrian and in which frame you are predicting? This is need to find the ground truth to do the plot.
  2. Which format should I use to store the predicted trajectory, so that I can compare with other algorithm?

Thanks a lot!
Xingchen

from social-stgcnn.

abduallahmohamed avatar abduallahmohamed commented on July 17, 2024

from social-stgcnn.

xingchenzhang avatar xingchenzhang commented on July 17, 2024

Hi Abduallah @abduallahmohamed,

Thank you very much for your reply, it is very helpful. I have worked out these. Another thing I am doubting is how to deal with the negative values in the test file? For example hotel/test/biwi_hotel.txt?

Thanks a lot!

from social-stgcnn.

abduallahmohamed avatar abduallahmohamed commented on July 17, 2024

from social-stgcnn.

xingchenzhang avatar xingchenzhang commented on July 17, 2024

Hi Abduallah @abduallahmohamed ,

Thank you very much for your reply. Regarding the negative value I mean in the training set and test set, some coordinates are negtive. But now I know it doesn't matter, and I have successfully plot trajectories. Thank you very much for your answers, which are very useful.

A final thing that I wish to ask, I don't know if you could give some suggestions according to your experience. In your code, after processing the test set, the frame ID and pedestrian ID are not preserved, only the (x,y) coordinates are used. Therefore the after sampling from the predicted distribution, we do not have the frame ID and pedestrian ID. Therefore, it is not very efficient to plot the trajectory. I am wondering do you have any suggestions to improve the efficiency of finding corresponding prediction results, frame ID and pedestrian ID.

Thanks a lot!

Bests,
Xingchen

from social-stgcnn.

abduallahmohamed avatar abduallahmohamed commented on July 17, 2024

from social-stgcnn.

henbucuoshanghai avatar henbucuoshanghai commented on July 17, 2024

help where is the visualization script?in test.py?

from social-stgcnn.

chuli97 avatar chuli97 commented on July 17, 2024

Hi Abduallah @abduallahmohamed ,

Thank you very much for your reply. Regarding the negative value I mean in the training set and test set, some coordinates are negtive. But now I know it doesn't matter, and I have successfully plot trajectories. Thank you very much for your answers, which are very useful.

A final thing that I wish to ask, I don't know if you could give some suggestions according to your experience. In your code, after processing the test set, the frame ID and pedestrian ID are not preserved, only the (x,y) coordinates are used. Therefore the after sampling from the predicted distribution, we do not have the frame ID and pedestrian ID. Therefore, it is not very efficient to plot the trajectory. I am wondering do you have any suggestions to improve the efficiency of finding corresponding prediction results, frame ID and pedestrian ID.

Thanks a lot!

Bests, Xingchen

嗨 Abduallah @abduallahmohamed

非常感谢您的回复。关于我在训练集和测试集中的负值,一些坐标是负的。但现在我知道没关系,我已经成功地绘制了轨迹。非常感谢您的回答,非常有用。

最后想问一下,不知道各位能否根据自己的经验给点建议。在您的代码中,处理完测试集后,不保留框架 ID 和行人 ID,仅使用 (x,y) 坐标。因此,从预测分布中采样后,我们没有帧 ID 和行人 ID。因此,绘制轨迹不是很有效。我想知道您有什么建议可以提高查找相应预测结果、帧 ID 和行人 ID 的效率。

非常感谢!

最好的, 星辰

Hello,
I've been learning about trajectory prediction recently, and I want this project to predict the trajectory of my own video data. Can you share your visualization code with me?
If you can, please email me: [email protected] ,
be deeply grateful!

from social-stgcnn.

abduallahmohamed avatar abduallahmohamed commented on July 17, 2024

from social-stgcnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.