image_generator
image_generator copied to clipboard
Issue with running notebook
When running the application with a good dataset I get the following errors.
ValueError: Trying to share variable discriminator/conv1/kernel, but specified shape (5, 5, 3, 64) and found shape (5, 5, 4, 64).
`
ValueError Traceback (most recent call last)
WARNING: Logging before flag parsing goes to stderr. W0827 08:43:17.895732 14504 deprecation.py:323] From <ipython-input-2-6a171d8d9e59>:5: dense (from tensorflow.python.layers.core) is deprecated and will be removed in a future version. Instructions for updating: Use keras.layers.dense instead. W0827 08:43:17.899729 14504 deprecation.py:506] From c:\users\srudloff\appdata\local\programs\python\python36\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 W0827 08:43:18.230528 14504 deprecation.py:323] From <ipython-input-2-6a171d8d9e59>:16: conv2d_transpose (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version. Instructions for updating: Use
tf.keras.layers.Conv2DTransposeinstead. W0827 08:43:18.795181 14504 deprecation.py:323] From <ipython-input-2-6a171d8d9e59>:20: batch_normalization (from tensorflow.python.layers.normalization) is deprecated and will be removed in a future version. Instructions for updating: Use keras.layers.BatchNormalization instead. In particular,
tf.control_dependencies(tf.GraphKeys.UPDATE_OPS)should not be used (consult the
tf.keras.layers.batch_normalizationdocumentation). W0827 08:43:19.111992 14504 deprecation.py:323] From <ipython-input-3-5b9e48b97d85>:11: conv2d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version. Instructions for updating: Use
tf.keras.layers.Conv2D instead.
I've just run into the exact same issue.
As a side note, I had to manually downgrade my TensorFlow from v2 to v1 using: import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
How can I deal with this problem?
WARNING:tensorflow:From layer.__call__
method instead.
WARNING:tensorflow:From tf.keras.layers.Conv2DTranspose
instead.
WARNING:tensorflow:From tf.control_dependencies(tf.GraphKeys.UPDATE_OPS)
should not be used (consult the tf.keras.layers.BatchNormalization
documentation).
WARNING:tensorflow:From tf.keras.layers.Conv2D
instead.