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

rknn-toolkit-lite2 dose not support data_format=['nchw'] #344

Open
Lu-tju opened this issue Nov 2, 2024 · 0 comments
Open

rknn-toolkit-lite2 dose not support data_format=['nchw'] #344

Lu-tju opened this issue Nov 2, 2024 · 0 comments

Comments

@Lu-tju
Copy link

Lu-tju commented Nov 2, 2024

In rknn-toolkit2, it works well:

outputs = rknn.inference(inputs=[img_norm], data_format=['nchw'])

but in rknn-toolkite-lite2, there is a error as:

self.rknn_runtime.set_inputs(inputs, data_type, data_format, inputs_pass_through=inputs_pass_through)
File "rknnlite/api/rknn_runtime.py", line 1008, in rknnlite.api.rknn_runtime.RKNNRuntime.set_inputs
KeyError: 'nchw'

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