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

TFLite conversion failed #178

Open
nassimus26 opened this issue Oct 12, 2024 · 0 comments
Open

TFLite conversion failed #178

nassimus26 opened this issue Oct 12, 2024 · 0 comments

Comments

@nassimus26
Copy link

Having this TFListe model which take as an input shape (None, 4, 224, 244, 3) (4 frames)

model.zip

    rknn.config(
        float_dtype='tfloat32',
        mean_values=[170, 170, 170, 170],
        std_values=[170, 170, 170, 170],
        target_platform='rv1106',
        dynamic_input=[[[1,4, 224, 224, 3]]])
    ret = rknn.load_tflite(model='model.tflite', input_is_nchw=False)

I am getting the error


ValueError: Traceback (most recent call last):
  File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
  File "rknn/api/rknn_base.py", line 1945, in rknn.api.rknn_base.RKNNBase.build
  File "rknn/api/rknn_base.py", line 176, in rknn.api.rknn_base.RKNNBase._quantize
  File "rknn/api/quantizer.py", line 1397, in rknn.api.quantizer.Quantizer.run
  File "rknn/api/quantizer.py", line 899, in rknn.api.quantizer.Quantizer._get_layer_range
  File "rknn/api/rknn_utils.py", line 274, in rknn.api.rknn_utils.get_input_img
  File "rknn/api/rknn_log.py", line 95, in rknn.api.rknn_log.RKNNLog.e
ValueError: The height_width of r_shape [224, 224, 3] is invalid!

Please help

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

1 participant