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

Please Help!: How to save pred_traj_fake tensor? #17

Closed daehoumich closed 5 years ago

daehoumich commented 5 years ago

Hi,

Could anyone can help me to save the 'pred_traj_fake (final prediction of this model)' tensor as the format compatible to be used in Matlab?

I am not an expert on python and torch so I am struggling at saving this variable. I would like to use it for some visualization.

Thanks in advance~!

daehoumich commented 5 years ago

I converted it to numpy array and export it as matlab file using scipy.io.savemat. Is it right direction?

agrimgupta92 commented 5 years ago

Yes, you can also refer https://stackoverflow.com/questions/10997254/converting-numpy-arrays-to-matlab-and-vice-versa.

Psychic-DL commented 4 years ago

Have you solved this problem?I also want to get this result.Thx.