2017-12-28から1日間の記事一覧

PYNQでface detection

facedetect.py from pynq import Overlay Overlay("base.bit").download() import time import cv2 import numpy as np from pynq.drivers import HDMI from pynq.drivers.video import VMODE_1920x1080 hdmi_out = HDMI('out', video_mode=VMODE_1920x1080)…

PYNQでリアルタイムエッジ検出

canny.py from pynq import Overlay Overlay("base.bit").download() import time import cv2 import numpy as np from pynq.drivers import HDMI from pynq.drivers.video import VMODE_1920x1080 hdmi_out = HDMI('out', video_mode=VMODE_1920x1080) hdmi…

PYNQにCaffeをインストール

sudo apt-get install -y libgflags-dev libgtest-dev libc++-dev clang libgoogle-glog-dev liblmdb-dev

Ubuntuのaptのsources.listの書き方

http://blog.goo.ne.jp/j_adversaria/e/4c024665dc61a79510d72cdf5444467a書式:deb URL Distribution [component1] [component2]... 書式:deb-src URL Distribution [component1] [component2]...

PYNQのubuntu 15.10 (wily)のaptのsources.list

/etc/apt/sources.list.d/multistrap-wily.list #以下を変更する #deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports wily universe main #deb-src http://ports.ubuntu.com/ubuntu-ports wily universe main deb [arch=armhf] http://old-releases.ub…

PYNQでHDMI+OpenCV

PYNQはv2.0だとpynq.driversがないようなのでHDMIが使えない(追記:v2.0のドキュメントに気づかなかった。APIが多少変わっているが普通に動きます。) v1.4を使う https://github.com/Xilinx/PYNQ/tree/v1.4 face detect sample https://github.com/Xilinx…

音楽生成

ゲームx強化学習

Introduction to AI for Video Games (Reinforcement Learning)

YOLO v2を試す

YOLOの解説 darkflowを使った https://github.com/thtrieu/darkflow YOLO v2のcfgとweightsのダウンロード https://pjreddie.com/darknet/yolo/ darkflowのインストール python3 setup.py build_ext --inplace実行 ./flow --model cfg/yolo-voc.cfg --load b…