Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Max and min for dynamic tensors should be recorded during calibration #5

Open
ghost opened this issue May 18, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented May 18, 2020

Hi,
When I convert .h5 model to .tflite, happened to RuntimeError: Max and min for dynamic tensors should be recorded during calibration.
I used tf-nightly version: 2.3.0, .h5 is convert from coco-tiny-v3-relu.weights, coco-tiny-v3-relu.cfg with your keras-yolov3 fork. Not modified anything.

@ghost ghost closed this as completed May 18, 2020
@ghost ghost reopened this May 18, 2020
@ghost
Copy link
Author

ghost commented May 19, 2020

I solved this by add converter.experimental_new_converter=False to keras_to_tflite_quant.py.
But when I compile output-filename.tflite with edgetpu_compiler (version: 2.1.302470888), comes out error:

ERROR: Didn't find op for builtin opcode 'RESIZE_NEAREST_NEIGHBOR' version '3' 
ERROR: Registration failed.`

@Air000
Copy link

Air000 commented May 26, 2020

Found the solution finally, downgrade tf-nightly version to 2.2.0:
pip install tf-nightly-cpu==2.2.0.dev20200301

@Sayyam-Jain
Copy link

Sayyam-Jain commented May 29, 2020

Solved installing Tensorflow 2.1.0 link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants