docker cp不工作 [英] docker cp not working
问题描述
我正在追踪本教程,当我到达我调用的部分时:
I'm following this tutorial and when I get to the part where I call:
cp /tf_files/stripped_retrained_graph.pb bazel-bin/tensorflow/examples/android/assets/stripped_output_graph.pb
和
cp /tf_files/retrained_labels.txt bin/tensorflow/examples/android/assets/imagenet_comp_graph_label_strings.txt
他们都说没有这样的文件或目录。
They both say "No such file or directory".
正如你可以看到在这张图片我可以 cd
tf_files文件夹,并看到文件在那里。
As you can see in this image I can cd
to the tf_files folder and see that the files are there.
我也可以 cd
到 / tensorflow / tensorflow / examples / android / assets
并调用 ls
,显示只有一个 BUILD
文件在那里。
I can also cd
to /tensorflow/tensorflow/examples/android/assets
and call ls
which shows there's just a BUILD
file there.
在 cp
命令中应该是 stripped_output_graph.pb
文件在目的地被替换?还是意味着只是在那里创建一个新文件?
In the cp
command is there supposed to already be a stripped_output_graph.pb
file in the destination which gets replaced? Or is it meant to just be creating a new file there?
有没有办法做$ code> cp [source] [current directory] code>而不是将目的地指定为路径?
Is there some way of doing cp [source] [current directory]
rather than specifying the destination as a path?
我尝试删除文件路径部分,希望它只是使用源文件名,但是没有
I've tried removing the file path part in hope that it just uses the source filename but that doesn't work.
推荐答案
致电
cp /tf_files/stripped_retrained_graph.pb /tensorflow/tensorflow/examples/android/assets/stripped_output_graph.pb
和
cp /tf_files/retrained_labels.txt /tensorflow/tensorflow/examples/android/assets/imagenet_comp_graph_label_strings.txt
终于工作了,显而易见的是我不得不改变目标路径或什么应该是
此外,我意外地将文件保存为.p而不是.pb,但设法使用 $ docker exec< container> rm -rf / tensorflow / tensorflow / examples / android / asset
s / stripped_output_graph.p
finally worked, wasn’t at all obvious that I’d have to change the destination path or what it should be though.
Also I accidentally saved a file as .p rather than .pb but managed to remove it using $ docker exec <container> rm -rf /tensorflow/tensorflow/examples/android/asset
s/stripped_output_graph.p
现在我设法复制文件在正确的,但是当我安装的应用程序,它仍然只是运行常规演示程序。
不知道为什么它不起作用,令人沮丧。
当我重新构建文件复制后,我得到了这些冲突信息
Now I managed to copy the files in correctly, but then when I installed the app it was still just running the regular demo app. Not sure why it didn’t work, so frustrating. When I rebuilt it after copying the files in I got these conflict messages
这些是否正常?
看起来可能是一个不同的标签文件优先于我的,如何达到 external / inception5h / imagenet_comp_graph_label_strings.txt
文件删除它,所以我的文件用吗
外部部分是否意味着我无法实际访问?
Are these normal to have?
It looks like maybe a different labels file is taking priority over mine, how can I reach the external/inception5h/imagenet_comp_graph_label_strings.txt
file to delete it so my file is used instead?
Does the "external" part mean that I can’t actually access it?
这篇关于docker cp不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!