Closed Golbstein closed 5 years ago
line 118 in deformable_conv_layer.py batch_size = int(inputs.get_shape()[0])
batch_size = int(inputs.get_shape()[0])
But the batch_size dimension in Keras layers are always None and it crushes
example:
from deform_conv.deformable_conv_layer import DeformableConvLayer from keras.layers import Input x = Input((28, 28, 1)) output = DeformableConvLayer(filters=6, kernel_size=3, strides=1, padding='valid', dilation_rate=1, num_deformable_group=1)(x)
throws the error:
TypeError Traceback (most recent call last)
Sorry, the code can only run in tf eager execution.
line 118 in deformable_conv_layer.py
batch_size = int(inputs.get_shape()[0])
But the batch_size dimension in Keras layers are always None and it crushes
example:
throws the error:
TypeError Traceback (most recent call last)