Tflite based object counting error

Hi all,
It is my first topic in this forum.
I m trying to follow this → GitHub - TannerGilbert/Tensorflow-2-Object-Counting: Cumulative object counting with Tensorflow 2
where it uses
“tensorflow_cumulative_object_counting.py” and “tflite_cumulative_object_counting.py” for counting pedestrians. “tensorflow_cumulative_object_counting.py” works just fine, But when try to use “tflite_cumulative_object_counting.py” it throws (ImportError: generic_type: type “InterpreterWrapper” is already registered!) error. Since, Im new to tensorflow I couldn’t figure it out. What might be the reason for this error? Any help would be appreciated.

@Shokirkhon_Oppokhono,

Welcome to the Tensorflow Forum!

Sorry for the delay in responding. Are you still looking for a solution?

There might be some issue while installing tflite_runtime. Could you try uninstalling the tflite_runtime package and installing version that matches tensorflow version and see if the issue is resolved.

Thank you!