pbaylies / stylegan-encoder

StyleGAN Encoder - converts real images to latent space
Other
740 stars 182 forks source link

Weird error, how do I fix it???' #67

Open elliotmarks06 opened 3 years ago

elliotmarks06 commented 3 years ago

Every time I run this, it runs into the same error.

WARNING:tensorflow:From C:\Users\ellio\.conda\envs\py36\lib\site-packages\tensorflow\python\ops\init_ops.py:1251: calling VarianceScaling.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version. Instructions for updating: Call initializer instance with the dtype argument instead of passing it to the constructor Traceback (most recent call last): File "encode_images.py", line 243, in <module> main() File "encode_images.py", line 129, in main perceptual_model.build_perceptual_model(generator, discriminator_network) File "C:\Users\ellio\Projects\encoder2\encoder\perceptual_model.py", line 152, in build_perceptual_model self.perceptual_model = Model(vgg16.input, vgg16.layers[self.layer].output) File "C:\Users\ellio\.conda\envs\py36\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "C:\Users\ellio\.conda\envs\py36\lib\site-packages\keras\engine\network.py", line 95, in __init__ self._init_graph_network(*args, **kwargs) File "C:\Users\ellio\.conda\envs\py36\lib\site-packages\keras\engine\network.py", line 239, in _init_graph_network self.inputs, self.outputs) File "C:\Users\ellio\.conda\envs\py36\lib\site-packages\keras\engine\network.py", line 1355, in _map_graph_network tensor_index=tensor_index) File "C:\Users\ellio\.conda\envs\py36\lib\site-packages\keras\engine\network.py", line 1336, in build_map for i in range(len(node.inbound_layers)): TypeError: object of type 'Conv2D' has no len()

How do I fix this???