YOLOv3 Sample Code
The example directory provided by NPU Runtime (npu_runtime_sample) mainly includes sample code for calling the NPU Runtime interface and the model directory.
Installing YOLOv3 Example
sudo apt install es-sdk-sample-npu-runtime
After installation, the sample can be found in the /opt/eswin/sample-code/npu_sample/npu_runtime_sample
directory.
Directory
The example directory provided by NPU Runtime (npu_runtime_sample) mainly includes sample code for calling the NPU Runtime interface and the model directory: src
and models
. The detailed directory structure is as follows:
debian@rockos-eswin:/opt/eswin/sample-code/npu_sample/npu_runtime_sample$ tree
.
├── bin
│ └── sample_npu
├── models
│ └── yolov3
│ ├── es_yolov3_classes.txt
│ ├── es_yolov3_post_process.json
│ ├── es_yolov3_pre_process.json
│ ├── git_yolov3_416_mix_1x3x416x416_dyn_latency.model
│ ├── git_yolov3_416_mix_1x3x416x416_dyn_latency.ofmap_order.txt
│ ├── input
│ │ ├── pictures
│ │ │ └── input0
│ │ │ ├── bus.jpg
│ │ │ └── dog.jpg
│ │ └── preprocessed
│ │ ├── 0
│ │ │ └── bus.bin
│ │ ├── 1
│ │ │ └── dog.bin
│ │ └── list.txt
│ └── model.json