OverFeat4.2的安装和使用

简单测试

chapter@chapter-PC:~/Desktop/ctrPredict/OverFeat/overfeat$ ./bin/linux_64/overfeat samples/bee.jpg 

bee 0.861863

leaf beetle, chrysomelid 0.0543098

fly 0.0306221

long-horned beetle, longicorn, longicorn beetle 0.0206541

ladybug, ladybeetle, lady beetle, ladybird, ladybird beetle 0.0189475

 

错误记录

-- Error 1 --

使用一个图形处理软件时出现

./overfeat -n 3 samples/sample.jpg

sh: 1: convert: not found 

解决方法:

convert是imagemagick软件编译出的工具。

sudo apt-get install imagemagick

 

-- Error 2 --

error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory

解决方法

表示系統不知道xxx.so 放在哪個目錄下。

這個時候就要在/etc/ld.so.conf中加入xxx.so所在的目錄。

一般而言,有很多so檔會在/usr/local/lib這個目錄下,所以在/etc/ld.so.conf中加入/usr/local/lib這一行,可以解決此問題。

將 /etc/ld.so.conf存檔後,還要執行「/sbin/ldconfig –v」來更新一下才會生效。

---------------------------------------------------------------------------------------------------------------------------------------------------

这里缺的是Openblas相关的文件,将其安装路径加入到/etc/ld.so.conf, sudo /sbin/ldconfig –v生效即可。

你可能感兴趣的:(over)