gmalivenko / onnx2keras

Convert ONNX model graph to Keras model format.
MIT License
195 stars 116 forks source link

How to modify the convolution property to same. #135

Open yahuuu opened 2 years ago

yahuuu commented 2 years ago

I converted onnx to h5, but found that the padding property in the convolution is valid, how to modify the property to same. Whether this property affects the speed when post quantized model runs on the SnapDragon 855 DSP.

TianpengBu commented 2 years ago

You can do this by modifying the mode of Conv Op in def convert_conv of this tool. image

I have not tested the performance of this modification, I am looking forward to hearing your test result whether it does improve the speed.