使用Windows10构建label_image tensorflow示例

Build label_image tensorflow example with Windows10

本文关键字:image tensorflow 示例 label Windows10 构建 使用      更新时间:2023-10-16

我按照这里的每一条指令构建了tensorflow
使用VS2015 x64的构建看起来不错,但在编译tensorflowexampleslabel_image示例时,我有很多错误:

tensorflowthird_partyeigen3unsupportedeigencxx11tensor(1): fatal error C1014: too many include files: depth = 1024

a #pragma once修复它,然后我得到了这个(还有很多类似的)

template <>
struct NumTraits<QInt8> : GenericNumTraits<int8_t> {};

给出以下错误:

tensorflowthird_partyeigen3unsupportedeigencxx11srcfixedpointfixedpointtypes.h(27): error C2988: unrecognizable template declaration/definition

我也想念文件

#include "tensorflow/cc/ops/image_ops.h"

是否有人成功构建(并链接…)此示例?

我也有同样的问题,但这篇文章解决了它:

https://joe-antognini.github.io/machine-learning/windows-tf-project

您的包含目录需要按照正确的顺序,特别是

{您的路径}\tensorflow\tensorflow\contrib\cmake\build\external\egent_archive

必须在之前列出

{您的路径}\ tensorflow \ third_party \本征3

可能是您的include路径错误。在我的项目中,我将beam_search_ops项目中的所有includ路径复制到我的项目。那么就解决了问题