onnx / keras-onnx

Convert tf.keras/Keras models to ONNX
Apache License 2.0
379 stars 110 forks source link

convert models output not right #722

Closed fightseed closed 3 years ago

fightseed commented 3 years ago

i use https://github.com/bubbliiiing/Mobilenet-SSD-Essay transfer model. and i use keras2onnx 1.7.0 and tensorflow 1.15.4 to transfer:

model = keras.models.load_model('linear.h5',custom_objects={'relu6': keras.layers.ReLU(6.),'Normalize':Normalize}) 
onnx_model = keras2onnx.convert_keras(model, model.name)  
temp_model_file = 'linear.onnx' 
onnx.save_model(onnx_model, temp_model_file) 

the final output not right.and i find that when use pointwise_conv_filters,the output will not right