Tensorflow: XCode CpResource imagenet_comp_graph_label_strings.txt No such file or directory

Created on 6 Nov 2016  ·  1Comment  ·  Source: tensorflow/tensorflow

When I compile the iOS simple project I get the following error:

CpResource data/imagenet_comp_graph_label_strings.txt /Users/CYL/Library/Developer/Xcode/DerivedData/tf_ios_makefile_example-agwbsoccjjkvrwgzihhrjmljlwss/Build/Products/Debug-iphonesimulator/tf_ios_makefile_example.app/imagenet_comp_graph_label_strings.txt
cd /Users/CYL/tensorflowGIT/tensorflow/contrib/ios_examples/simple
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/CYL/tensorflowGIT/tensorflow/contrib/ios_examples/simple/data/imagenet_comp_graph_label_strings.txt /Users/CYL/Library/Developer/Xcode/DerivedData/tf_ios_makefile_example-agwbsoccjjkvrwgzihhrjmljlwss/Build/Products/Debug-iphonesimulator/tf_ios_makefile_example.app

error: /Users/CYL/tensorflowGIT/tensorflow/contrib/ios_examples/simple/data/imagenet_comp_graph_label_strings.txt: No such file or directory

screen shot 2016-11-06 at 12 13 27

I did everything up to the compile in XCode part as described here. I downgraded from XCode 8 to XCode 7.3.1 with no change. I have MacOS El Capitan.

Most helpful comment

Okay just found it out myself...

In the part in the tutorial

mkdir -p ~/graphs
curl -o ~/graphs/inception5h.zip
https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip
&& unzip ~/graphs/inception5h.zip -d ~/graphs/inception5h
cp ~/graphs/inception5h/* tensorflow/contrib/ios_examples/benchmark/data/
cp ~/graphs/inception5h/* tensorflow/contrib/ios_examples/camera/data/
cp ~/graphs/inception5h/* tensorflow/contrib/ios_examples/simple/data/

The cp parts are meant to be executed seperately. So the first 4 lines are one command and the next 3 lines are seperate commands. I'm new to mac and don't have that much experience with Linux and I didn't got that at first.

>All comments

Okay just found it out myself...

In the part in the tutorial

mkdir -p ~/graphs
curl -o ~/graphs/inception5h.zip
https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip
&& unzip ~/graphs/inception5h.zip -d ~/graphs/inception5h
cp ~/graphs/inception5h/* tensorflow/contrib/ios_examples/benchmark/data/
cp ~/graphs/inception5h/* tensorflow/contrib/ios_examples/camera/data/
cp ~/graphs/inception5h/* tensorflow/contrib/ios_examples/simple/data/

The cp parts are meant to be executed seperately. So the first 4 lines are one command and the next 3 lines are seperate commands. I'm new to mac and don't have that much experience with Linux and I didn't got that at first.

Was this page helpful?
0 / 5 - 0 ratings