defensegan
defensegan copied to clipboard
problem for nonetype
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
images like this
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.