keras2caffe icon indicating copy to clipboard operation
keras2caffe copied to clipboard

Error while converting

Open linzhi123 opened this issue 6 years ago • 4 comments

out_w = math.ceil(w / float(strides[1])) TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

Excuse me, if my input is not fixed size input_shape[None None None 3], where should the code be modified?

linzhi123 avatar Dec 22 '18 08:12 linzhi123

Hi! Only models with specified input_shape could be converted to Caffe. You can set input size in Keras model.

uhfband avatar Dec 22 '18 18:12 uhfband

ok!thanks

linzhi123 avatar Dec 29 '18 07:12 linzhi123

I guess you use this tool to convert licenseplate detection model,, have you succeeded?

USTC-SQQ avatar Mar 01 '19 14:03 USTC-SQQ

I met the same problem

changgongcheng avatar Sep 17 '20 08:09 changgongcheng