question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Real-time-processing Tf_lite inference program ERROR

See original GitHub issue

Hi I loaded a noisy one channel .wav file to perform inference using real_time_processing_tf_lite.py. I got the following Dimension mismatch error.

Traceback (most recent call last): File “real_time_processing_tf_lite.py”, line 70, in <module> interpreter_1.set_tensor(input_details_1[0][‘index’], states_1) File “/Users/cyberon/anaconda3/envs/dtln_py/lib/python3.7/site-packages/tflite_runtime/interpreter.py”, line 399, in set_tensor self._interpreter.SetTensor(tensor_index, value) File “/Users/cyberon/anaconda3/envs/dtln_py/lib/python3.7/site-packages/tflite_runtime/interpreter_wrapper.py”, line 148, in SetTensor return _interpreter_wrapper.InterpreterWrapper_SetTensor(self, i, value) ValueError: Cannot set tensor: Dimension mismatch. Got 4 but expected 3 for input 0.

Any inputs on this will be helpful!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cybermax-008commented, Jul 6, 2020

Should be fixed now.

Thanks for the quick fix! The audio file is denoised finally.

1reaction
breizhncommented, Jul 6, 2020

Should be fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error during Inference of LSTM Tflite model #55065 - GitHub
It returns this error: RuntimeError: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure ...
Read more >
TensorFlow Lite inference
The term inference refers to the process of executing a TensorFlow Lite model on-device in order to make predictions based on input data....
Read more >
python - TFLite model error, Regular TensorFlow ops are not ...
I have installed tflite_runtime 2.5.0.post1 using !pip install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime ...
Read more >
My Journey in Converting PyTorch to TensorFlow Lite
inference with TFLite. The tests resulted in a mean error of 2.66-07. I hope that you found my experience useful, good luck!
Read more >
eIQ ® Inference with TensorFlow™ Lite Micro - NXP
eIQ inference engine supporting TensorFlow™ Lite for Microcontrollers (TF Micro); ... Overview; Software Details; Documentation; Design Resources; Training ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found