It is possible to use Tensorflow C++ API in QT pro

2019-04-10 17:00发布

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 ?

3条回答
兄弟一词,经得起流年.
2楼-- · 2019-04-10 17:16

It is also possible to use make instead of bazel to build the TensorFlow library for your target platforms.

查看更多
ら.Afraid
3楼-- · 2019-04-10 17:31

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.

查看更多
女痞
4楼-- · 2019-04-10 17:31

Yes, there is. Compile tensorflow project as a library (dll) and include it into qt project.

查看更多
登录 后发表回答