-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Negative dimension size caused by subtracting 3 from 1 for 'conv2d_2/convolution' (op: 'Conv2D') with input shapes: [?,1,78,32], [3,3,32,32] #1
Comments
Centos6.8 |
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ During handling of the above exception, another exception occurred: Traceback (most recent call last): Process finished with exit code 1 |
[root@MyVps captcha_break_keras]# python2.7 captcha_test.py
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
Using TensorFlow backend.
captcha_test.py:64: UserWarning: Update your
Conv2D
call to the Keras 2 API:Conv2D(32, (3, 3), activation="relu")
x=Convolution2D(322**i,3,3,activation='relu')(x)
captcha_test.py:65: UserWarning: Update your
Conv2D
call to the Keras 2 API:Conv2D(32, (3, 3), activation="relu")
x=Convolution2D(322i,3,3,activation='relu')(x)
Traceback (most recent call last):
File "captcha_test.py", line 65, in
x=Convolution2D(32*2i,3,3,activation='relu')(x)
File "/root/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 596, in call
output = self.call(inputs, **kwargs)
File "/root/anaconda2/lib/python2.7/site-packages/keras/layers/convolutional.py", line 164, in call
dilation_rate=self.dilation_rate)
File "/root/anaconda2/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 3138, in conv2d
data_format='NHWC')
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 670, in convolution
op=op)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 338, in with_space_to_batch
return op(input, num_spatial_dims, padding)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 662, in op
name=name)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 131, in _non_atrous_convolution
name=name)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 399, in conv2d
data_format=data_format, name=name)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2508, in create_op
set_shapes_for_outputs(ret)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1873, in set_shapes_for_outputs
shapes = shape_func(op)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1823, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 610, in call_cpp_shape_fn
debug_python_shape_fn, require_shape_fn)
File "/root/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 676, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Negative dimension size caused by subtracting 3 from 1 for 'conv2d_2/convolution' (op: 'Conv2D') with input shapes: [?,1,78,32], [3,3,32,32].
The text was updated successfully, but these errors were encountered: