Comments (13)
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.
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.
I also have some questions about the visualization.
-
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
-
To obtain a predicted trajectory, we need to make a sample from the predicted distribution, right?
-
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.
from social-stgcnn.
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:
- 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.
- 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.
from social-stgcnn.
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.
from social-stgcnn.
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.
from social-stgcnn.
help where is the visualization script?in test.py?
from social-stgcnn.
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.
from social-stgcnn.
Related Issues (20)
- ValueError: The parameter covariance_matrix has invalid values HOT 7
- Why should we choose the normalized laplacian matrix? HOT 1
- about torch HOT 2
- anorm problem about step_rel and step_ HOT 4
- Data visualization HOT 3
- Why does the loss value change from positive to negative HOT 1
- PROBLEM About TCN HOT 1
- could min-pedestrian greater than 1? HOT 1
- How to handle trajectories with missing frames? HOT 2
- Visualize trajectory in picture HOT 6
- Details about data processing HOT 3
- Questions about data process
- I am very curious about the element in your proposed adjacency matrix
- I am very curious about the element in your proposed adjacency matrix HOT 3
- When I test my own model, some datasets work fine, but the univ dataset reports errors. The specific error message is as follows. HOT 1
- details about dataset .txt file encoding type. HOT 1
- A question of determining linear or nonlinear
- During visualization, the jupyter notebook encountered the following error
- Details about Gaussian path visualization
- Question about the code in basic gcn unit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from social-stgcnn.