agrimgupta92 / sgan

Code for "Social GAN: Socially Acceptable Trajectories with Generative Adversarial Networks", Gupta et al, CVPR 2018
MIT License
819 stars 260 forks source link

Question: Dataset #16

Closed daehoumich closed 5 years ago

daehoumich commented 5 years ago

Hi, Agrim

I am trying to make my own dataset following the same format that you used (i.e., eth, zara, hotel, and univ).

The data files have four columns though, I couldn't clearly understand what the value of each column represents.

If you may, could you explain it?

angeliand commented 5 years ago

Hi daehoumich, Although I'm not Agrim, I hope my answer will be fit for your liking.

If you check out the sgan.data.trajectories.py file, and inside that the TrajectoryDataset class, you will find a docstring with the answer to your question:

- data_dir: Directory containing dataset files in the format
        <frame_id> <ped_id> <x> <y>

Just to make things a bit clearer:

daehoumich commented 5 years ago

Thank you so much~!

mikegillimage commented 5 years ago

Hi, this may sound silly, but does anyone know what is physical scale of the images in eth, zara and hotel datasets? Is there a way to get it from the homography matrix?

amiryanj commented 5 years ago

Hi, this may sound silly, but does anyone know what is physical scale of the images in eth, zara and hotel datasets? Is there a way to get it from the homography matrix?

I am just telling you the basic things. Having Homography matrix and a pixel coordinate [u,v], you should calculate H * [u, v, 1]^t => (x, y, z) and divide the resultant vector by (z) and you have the world coordinate: (x', y', 1). To know the boundaries of those scenes, it's enough to test the boundaries of the images; e.g. [0,0], [640, 480] for ETH!

mikegillimage commented 5 years ago

Thanks Amiryanj