我正在尝试为im2txt张量流模型准备训练数据 我已经安装了bazel-0.4.3并将其添加到env路径中 为了准备培训数据, 我在命令窗口中试过这个:
C:\Users\Akriti\Downloads\im2txt>set MSCOCO_DIR=c:/im2txt/data/mscoco
后来
C:\Users\Akriti\Downloads\im2txt>bazel build //im2txt:download_and_preprocess_mscoco
日志信息:
INFO: Found 1 target...
Target //im2txt:download_and_preprocess_mscoco up-to-date:
C:/Users/Akriti/AppData/Local/Temp/_bazel_Akriti/$3vD$Qgm/execroot/im2txt/bazel-out/local-fastbuild/bin/im2txt/download_and_preprocess_mscoco
INFO: Elapsed time: 8.063s, Critical Path: 0.05s
下一次当我尝试
时C:\Users\Akriti\Downloads\im2txt>bazel-bin/im2txt/download_and_preprocess_mscoco "${MSCOCO_DIR}"
我得到了:
'bazel-bin' is not recognized as an internal or external command, operable program or batch file.
如何准备培训数据?
链接到tensorflow模型: https://github.com/tensorflow/models/tree/master/im2txt
答案 0 :(得分:1)
根据https://github.com/tensorflow/models/blob/master/im2txt/im2txt/BUILD#L22
//im2txt:download_and_preprocess_mscoco
是一个sh_binary,因此您无法在cmd.exe下运行它 您可以尝试在Windows上的MSYS下运行它。
对于你得到的错误,因为你在cmd.exe下运行二进制文件时应该在路径中使用反斜杠。像这样:
bazel-bin\im2txt\download_and_preprocess_mscoco