This project is derived from yoloNCS and is intended to be used on the PYNQ-Z1 board.
To use this code on your PYNQ-Z1, just follow these steps:
-
Install NCSDK in API-mode on your PYNQ-Z1 as explained here: Setting up the PYNQ-Z1 for the Intel Movidius NCS
-
Clone this repo onto your PYNQ-Z1 in this directory:
/home/xilinx/jupyter_notebooks
-
Boot the PYNQ-Z1, open Jupyter in a web browser (http://pynq:9090) and open one of the notebooks
- Camera App is working.
- YOLOv1 Tiny is working.
./prototxt/
- Compile .prototxt and corresponding .caffemodel (with the same name) to get NCS graph file. For example: "mvNCCompile prototxt/yolo_tiny_deploy.prototxt -w weights/yolo_tiny_deploy.caffemodel -s 12"
- The compiled binary file "graph" has to be in main folder after this step.
- Run "yolo_example.py" to process a single image. For example: "python3 py_examples/yolo_example.py images/dog.jpg" to get detections as below.
- Run "object_detection_app.py" to process a videos from your camera. For example: "python3 py_examples/object_detection_app.py" to get camera detections as below.
- Modify script arguments if needed.
- Press "q" to exit app.