0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JetsonNanoでdlibがインストールできないとき

Posted at

はじめに

JetsonNanoを使って画像認識をするべく, face_recognitionをインストールしていたところ, その依存モジュールのdlibがなかなかJetsonNanoに入らなかったため, その備忘録を書いておく.

やったこと

現在, NvidiaのCUDAライブラリにバグがあり, dlibに少し手を加えてからインストールする必要があります.

#dlibのソースを取得
wget http://dlib.net/files/dlib-19.17.tar.bz2 
tar jxvf dlib-19.17.tar.bz2
cd dlib-19.17

#バグ対策のための編集
sudo gedit dlib/cuda/cudnn_dlibapi.cpp

forward_algo = forward_best_algo;を検索後, コメントアウトしてください.

//forward_algo = forward_best_algo;

上記の変更を保存後, 以下を実行.

sudo python3 setup.py install

これでdlibが正常にインストールされます.

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?