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

Why did I encounter such a mistake? #43

Open DENGZAIXU opened 5 years ago

DENGZAIXU commented 5 years ago

This error occurred when I ran ‘script/train.py’

[INFO: train.py: 119]: Initializing train dataset [INFO: train.py: 121]: Initializing val dataset [INFO: train.py: 129]: There are 21.03125 iterations per epoch Traceback (most recent call last): File "scripts/train.py", line 581, in main(args) File "scripts/train.py", line 149, in main batch_norm=args.batch_norm) File "/home/xu/dengzaixu/sgan/sgan/models.py", line 425, in init if self.noise_dim[0] == 0: TypeError: 'NoneType' object is not subscriptable

DENGZAIXU commented 5 years ago

I have solved this mistake.

renegaderl commented 5 years ago

I have solved this mistake.

I have the same problem and I'm confused. So how did u solve the problem?

x-dimension commented 5 years ago

batch_norm=None,so batch_norm[0] is inexistent.

YueWang72 commented 4 years ago

I have solved this mistake. I have the same problem.Can you tell me how ti solve it?

cxc1219 commented 3 years ago

I have solved this mistake.

Can you tell me how to solve the problem? thanks very much