ZyboでGUINESSを試してみる

チュートリアル
https://www.dropbox.com/s/fyskw81ua1mqtze/guinness_tutorial1.pdf?dl=0

こういう構成になっている

SDカードに書き込んだファイル
https://github.com/shohei/GUINNESS-sample

最初ZYBO側にLANケーブルを指してなくてハマった→PCホストと通信するのでIPが必要

Zyboで実行するコード

root@zybo:/mnt# ./hoge.elf 192.168.100.205 10050

load weights
b0_BNFb.txt
b1_BNFb.txt
b2_BNFb.txt
b3_BNFb.txt
conv0W.txt
conv1W.txt
conv2W.txt
fc0W.txt
setup...
load conv0W
load conv1W
load conv2W
load fc0W
load b0_BNFb
load b1_BNFb
load b2_BNFb
load b3_BNFb
[INFO] IPADR=192.168.100.205 PORT=10050

Ubuntuホストで実効するコード

$ python cnn_capture.py --ip 192.168.100.205 --size 48 --tag class3_tag.txt

[INFO] TAGS= ['airplane', 'pets', 'car']
[INFO] IP ADDRESS = 192.168.100.205
[INFO] IMAGE SIZE = 48x48
Waiting for connections...
init done
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
Corrupt JPEG data: 1 extraneous bytes before marker 0xd3
Corrupt JPEG data: 3 extraneous bytes before marker 0xd7
Corrupt JPEG data: 1 extraneous bytes before marker 0xd3
Corrupt JPEG data: 2 extraneous bytes before marker 0xd1
Corrupt JPEG data: 2 extraneous bytes before marker 0xd3

微妙な結果