Keras_age_gender icon indicating copy to clipboard operation
Keras_age_gender copied to clipboard

AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'convolution'

Open beratn opened this issue 6 years ago • 0 comments

Hello everyone.I got this error in my raspberry pi.How to i fix it?

Using TensorFlow backend. Traceback (most recent call last): File "realtime_demo.py", line 143, in <module> main() File "realtime_demo.py", line 138, in main face = FaceCV(depth=depth, width=width) File "realtime_demo.py", line 27, in __init__ self.model = WideResNet(face_size, depth=depth, k=width)() File "/home/pi/Desktop/Keras_age_gender-master/wide_resnet.py", line 122, in __call__ use_bias=self._use_bias)(inputs) # "One conv at the beginning (spatial size: 32x32)" File "/home/pi/.local/lib/python3.5/site-packages/keras/engine/topology.py", line 619, in __call__ output = self.call(inputs, **kwargs) File "/home/pi/.local/lib/python3.5/site-packages/keras/layers/convolutional.py", line 168, in call dilation_rate=self.dilation_rate) File "/home/pi/.local/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 3329, in conv2d x = tf.nn.convolution( AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'convolution'

beratn avatar Apr 28 '18 17:04 beratn