flyyufelix / DenseNet-Keras

DenseNet Implementation in Keras with ImageNet Pretrained Models
MIT License
566 stars 264 forks source link

AssertionError: AbstractConv shape mismatch: shape of filters does not match given kshp. #17

Open ChengZheAn opened 6 years ago

ChengZheAn commented 6 years ago

AssertionError: AbstractConv shape mismatch: shape of filters does not match given kshp. Apply node that caused the error: Assert{msg='AbstractConv shape mismatch: shape of filters does not match given kshp.'}(InplaceDimShuffle{3,2,0,1}.0, Elemwise{eq,no_inplace}.0, Elemwise{eq,no_inplace}.0, Elemwise{eq,no_inplace}.0, Elemwise{eq,no_inplace}.0) Toposort index: 2069 Inputs types: [TensorType(float32, 4D), TensorType(bool, scalar), TensorType(bool, scalar), TensorType(bool, scalar), TensorType(bool, scalar)] Inputs shapes: [(3L, 64L, 7L, 7L), (), (), (), ()] Inputs strides: [(196L, 588L, 4L, 28L), (), (), (), ()] Inputs values: ['not shown', array(False, dtype=bool), array(False, dtype=bool), array(True, dtype=bool), array(True, dtype=bool)] Outputs clients: [[Subtensor{::, ::, ::int64, ::int64}(Assert{msg='AbstractConv shape mismatch: shape of filters does not match given kshp.'}.0, Constant{-1}, Constant{-1})]]

flyyufelix commented 6 years ago

Make sure the inputs to the model is of dimension (batch_size, 224, 224, 3) for tensorflow and (batch_size, 3, 224, 224) for theano backend

nader93k commented 5 years ago

make sure that reduction=0.5

huyanfei-cqupt commented 4 years ago

Make sure the inputs to the model is of dimension (batch_size, 224, 224, 3) for tensorflow and (batch_size, 3, 224, 224) for theano backend

hi,i try to run the test code,but i meet a error. the error as follow: TypeError: 'module' object is not callable can you help me to resolve it? thanks.