defensegan icon indicating copy to clipboard operation
defensegan copied to clipboard

problem for nonetype

Open infinitr0us opened this issue 5 years ago • 2 comments

I ran the codes on my computer for python3 and tensorflow-gpu, but I found a trouble that: stddev=np.sqrt(1.0 / self.latent_dim)), TypeError: unsupported operand type(s) for /: 'float' and 'NoneType' In fact, the self.latent_dim is defined in the gan.py as a initial for None, Is it a problem for python3? Thanks a lot

infinitr0us avatar Mar 22 '19 07:03 infinitr0us

image images like this

infinitr0us avatar Mar 22 '19 07:03 infinitr0us

I ran the codes on my computer for python3 and tensorflow-gpu, but I found a trouble that: stddev=np.sqrt(1.0 / self.latent_dim)), TypeError: unsupported operand type(s) for /: 'float' and 'NoneType' In fact, the self.latent_dim is defined in the gan.py as a initial for None, Is it a problem for python3? Thanks a lot

You can print latent_dim, and see what type and format it is.

xubo0321 avatar Jul 25 '19 02:07 xubo0321