agrimgupta92 / sgan

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

'NoneType' object is not subscriptable #91

Open fengxianghu opened 3 years ago

fengxianghu commented 3 years ago

I have met the problem, when I run my the train.py.

Traceback (most recent call last): File "train.py", line 595, in main(args) File "train.py", line 160, in main batch_norm=args.batch_norm) File "/content/gdrive/MyDrive/SGAN/sgan/models.py", line 492, in init if self.noise_dim[0] == 0: TypeError: 'NoneType' object is not subscriptable

Has any friend met this problem and solved it?

rjycty commented 3 years ago

Friend, I have the same problem. Have you solved it now?

fengxianghu commented 3 years ago

Friend, I have the same problem. Have you solved it now?

I remember I have solved this problem with a answer under a previous issue. You can try it.

rjycty commented 3 years ago

Thanks!

cghaon commented 3 years ago

how did you solve it? I got same problem= = I think it is about the size of noise, but I do not totally understand how noise works.

rjycty commented 3 years ago

how did you solve it? I got same problem= = I think it is about the size of noise, but I do not totally understand how noise works.

train.py line53 (It may not be line 53, but it must contain '--noise_dim' ) change None to (0,)

Mogalipen commented 2 years ago

Try to change the codes image to image It will work and you can use '--noise_dim' option. If I'm wrong, just tell me. I'm a junior.

neugzy commented 4 months ago

how did you solve it? I got same problem= = I think it is about the size of noise, but I do not totally understand how noise works.

train.py line53 (It may not be line 53, but it must contain '--noise_dim' ) change None to (0,)

It is line 52 actually.