agrimgupta92 / sgan

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

error when running evaluate_model.py #79

Open golnazhabibi3 opened 4 years ago

golnazhabibi3 commented 4 years ago

Hi,

Thanks for sharing the code. I am trying to evaluated the pretrained model, but i have got the following error, I have installed all requirement and followed the steps: File "scripts/evaluate_model.py", line 7, in from sgan.data.loader import data_loader ImportError: No module named 'sgan'

Could you help me how i can fix it? thanks!

golnazhabibi3 commented 4 years ago

I have moved this file to outside of scripts and it did not give me that error.

cxc1219 commented 3 years ago

I have met the same problem with you ,according to the author, the problem had solved after the file was moved outside of the scripts. Maybe you should also take care of the gpu_num,i have met errors,then changed.

aalikadic commented 2 years ago

If you are using Linux, go to the folder /sgan, open the terminal and type 'export PYTHONPATH=.' . This should solve your problem.

bind-TIAN commented 1 year ago

may be you can try to use this following code:sys.path.append('..') line 7 in train.py