Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It is possible to use Tensorflow C++ API in QT project?

I trained a Tensorflow model for image classification using the Python API, then i saved the model checkpoint.

Now I want to load this model in a QT(C++) project.

After looking into documentations, I found that to use Tensorflow C++ API you need to create a project inside a clone of the TensorFlow github repository, then build it with Bazel, who is not possible in my case.

Is there a way to include tensorflow library in my QT project ?

like image 373
lotfi Raghib Avatar asked Jul 19 '17 15:07

lotfi Raghib


1 Answers

You need bazel (or CMake) to build the tensorflow library, but once it is compiled you are free to use whatever tool you like and treat it like an external library.

Believe me, once you have compiled tensorflow, the last thing you want to do is add it to your project and rebuild it accidentally. This baby takes time.

like image 111
P-Gn Avatar answered Oct 22 '22 13:10

P-Gn