如何使用 bazel 运行 预处理脚本?
How to run the preprocessing script using bazel?
我正在尝试为 im2txt 张量流模型准备训练数据。
我已经安装了 bazel-0.4.3 并将其添加到环境路径中。
为了准备训练数据,
我在命令 window:
中尝试过这个
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/vD$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.
我该如何准备训练数据?
Link 到tensorflow模型:
https://github.com/tensorflow/models/tree/master/im2txt
根据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
我正在尝试为 im2txt 张量流模型准备训练数据。
我已经安装了 bazel-0.4.3 并将其添加到环境路径中。
为了准备训练数据,
我在命令 window:
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/vD$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.
我该如何准备训练数据?
Link 到tensorflow模型: https://github.com/tensorflow/models/tree/master/im2txt
根据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