LoginSignup
3
6

More than 5 years have passed since last update.

TensorFlowのiOSデモをビルドする

Posted at

この記事を参考にインストールを進めたのですが、途中でハマってしまったので、微妙に手順を変えてみました。前半部分は参考記事と同じです。

まずはbrewで必要なものを追加しときます。

brew instal automake libtools

続けて参考記事の通りに実行。

cd tensorflow/tensorflow/contrib/makefile
./download_dependencies.sh
cd downloads/protobuf/
./autogen.sh
./configure
make
sudo make install

compile_ios_tensorflow.shでどうしてもエラーが出るので、代わりにこちらを実行(ほとんど当てずっぽうです…)。ものすごく時間がかかりましたが、無事に終わった模様。

cd ../../
./build_all_ios.sh 

学習済みのモデルをゲットします。

cd ../ios_examples/camera/data/
curl -O https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip
unzip inception5h.zip

あとはXcodeを起動して、ビルド(インストール)するだけ。

IMG_2069.jpg

考察とかも元の記事の方が充実してますので、再びこちらをどうぞ。

3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6