TensorFlow Lite C API on Windows

preview_player
Показать описание
How to build TensorFlow Lite C dll on Windows and run object detection using Visual Studio C++ and OpenCV.

Full tutorial on using tflite C API (Object Detection) across windows/android/ios here:
Рекомендации по теме
Комментарии
Автор

I have a problem, Can't include tflite and open cv on linux as there is no VS on Linux, Did you face that issue ?

mahmoudnasser
Автор

Build TensorFlow Lite C dll for windows does not work for me. I am getting the following error message:
error C2719: 'params': formal parameter with requested alignment of 64 won't be aligned
error C2719: 'params': formal parameter with requested alignment of 64 won't be aligned
... (same but other line mumbers)
Target failed to build

Vlad-jnfk
Автор

Hi, first of all thanks for the video, I'm a beginner but I understood things that are useful for me.
I wanted to ask you something because TF is confusing me a lot: I'm working on a very simple project but I can't get TF (regular, not lite) to work with c nor c++.
My idea was to use a simple keras sequential network model (classifying numeric feature vectors, uber simple), trained in google colab, to run inference on my ubuntu and then on a raspberry, but there seem to be no official tutorial/documentation on how to compile a TF shared library for C++. The C_api, instead, has the process explained on the official website but it has a completely different library setup and no documentation (at least I could't find it).
Basically I find myself managing to compile a c_api example, but having issues when loading my model and not finding any reference on the C methods that fail.
At this point I feel like I'm missing something really important, because nothing seems to make sense.
Do you think I would have better luck with documentation with tf-lite?
(I hope I've not bored you to death)

domste
Автор

ERROR: An error occurred during the fetch of repository 'flatbuffers': PLEASE ASSIST

arvinds
Автор

Thank you for your excellent explanation, That was useful for me
I wanted to ask you something. I have an issue when I try to open the .tflite model it gives me the error

ERROR: The model allocation is null/empty
Failed to load model

mahmoudnasser
Автор

Thanks for this video. I see that your tflite-dst/include has folders for absl and flatbuffers. Where would we make or get those if not from your distribution? I'm trying to do a Windows C++ not C build out of curiosity.

DavidBraun
Автор

Thank you very much for the video and the repo, with your repo and as a beginner I could already use the c-dll for win64. Sadly the build fails on my pc ( Skipping no such target '//tensorflow/lite/c:libtensorflowlite_c.dll'), probably because I made a stupid mistake which I have to identify... Also Im looking for a Win32 dll which (if Im correct) is not included in your repo. Do you plan on doing so (or could me advice where to find it if you already did)?

dernapf
Автор

Hi man, have you managed to compile and use the C-API with xnnpack delegate? if yes how did you include it?

Chendadon
Автор

Is it possible to create a 32bit tensorflow librairy?

laurick
Автор

hello guys, Why does my C API library load my training

saved_ model.pb error

If (TF_ GetCode(status) != TF_ OK)

陈周-zs
welcome to shbcf.ru