MPolaris / onnx2tflite

Tool for onnx->keras or onnx->tflite. Hope this tool can help you.
Apache License 2.0
526 stars 42 forks source link

ValueError: Unrecognized keyword arguments passed to Conv2D: {'weights': [array([[[[-2.05928516e-02, -1.33914594e-02, -1.65286055e-03, ..., #67

Closed feff2 closed 4 months ago

feff2 commented 4 months ago

I tried to convert TrOCR in onnx format to tf lite, but convert.py throw such a strange mistake

MPolaris commented 4 months ago

maybe your tensorflow version is too high.

avatarrokuaskingquestions commented 4 months ago

I can get rid of this error by using tensorflow 2.15.1, as of right now everyone will have to change this locally. @MPolaris could you update the requirements file so the users don't have to make this change manually?

MPolaris commented 4 months ago

I can get rid of this error by using tensorflow 2.15.1, as of right now everyone will have to change this locally. @MPolaris could you update the requirements file so the users don't have to make this change manually?

thanks for your suggestion, I will update requirements.txt later.