HUB
Sign inSign up

arcturusnetworks/dvsdk

By arcturusnetworks

•Updated over 4 years ago

Image
0

576

arcturusnetworks/dvsdk repository overview

⁠Quick Start

Note: There's a one-liner command at the end which will perform all of the steps in this section

Pull and run bash inside container,

docker run -it --privileged arcturusnetworks/dvsdk bash

Inside the container, start dvinfproxy,

/dvproxy/dvinfproxy --firmware=/dvproxy/firmware --sock=0.0.0.0:5050 --daemon

Then run nnapp_async_perf app to get inference performance benchmarks,

/dvproxy/nnapp_async_perf --sock 0.0.0.0:5050 -i 10 -m /mobilenetv2_ssd/mobilenetv2_ssd.dvm -b 8

I:DVAPP: sock: 0.0.0.0:5050
I:DVAPP: endpoint: 0
I:DVAPP: model: /mobilenetv2_ssd/mobilenetv2_ssd.dvm
I:DVAPP: shm file:
I:DVAPP: iterations: 10
I:DVAPP: batch_size: 8
I:DVAPP: time latency between query: 0 ms
I:DVAPP: show per inference stats: 0
I:DVAPP: infinite run: false
I:DVAPP: Using inet sockets: 0.0.0.0:5050
I:DVAPP: Session info: handle:0xec6f7a0, socket_type:1, socket_str:0.0.0.0:5050
I:DVAPP: Found 1 dv endpoints connected to host
I:DVAPP: epid: 0x1
I:DVAPP: index=0 model=/mobilenetv2_ssd/mobilenetv2_ssd.dvm num_ip=1 num_op=1
I:DVAPP:     ipsize[0]=270000
I:DVAPP:     opsize[0]=5604
I:DVAPP: Ep stats: hndl=0x1, state=2, sys_clk=600MHz, dram_clk=1200MHz, avg_volt=0.905mv, avg_temp=54.382degC, num_inf_que=1, num_act_mdls=1
I:DVAPP: Ep dram stats: hndl=0x1, size=1073741824, occ=203587840, free=870153984, resvd=31457280, mdl_sz=171579136, tnsr_sz=0
I:DVAPP: Inf queue stats: id=0, len=1024, occ=0, wait_time=-0.000ms
I:DVAPP: Model stats: id=0, act_ip_tnsr=0, act_op_tnsr=0, act_inf=0, mdl_dram_sz=171579136, ip_dram_sz=0, op_dram_sz=0
I:DVAPP: Avg for iter=0 batch=8 model=0 hwinf_time=21.949ms ipxfer_time=0.885ms opxfer_time=0.150ms qsub_time=0.491ms
I:DVAPP: Avg for iter=0 batch=8 total_models=1 total_inference=8 e2e_time=29.383ms
I:DVAPP: Avg for iter=1 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.862ms opxfer_time=0.130ms qsub_time=0.456ms
I:DVAPP: Avg for iter=1 batch=8 total_models=1 total_inference=8 e2e_time=16.605ms
I:DVAPP: Avg for iter=2 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.881ms opxfer_time=0.127ms qsub_time=0.465ms
I:DVAPP: Avg for iter=2 batch=8 total_models=1 total_inference=8 e2e_time=16.590ms
I:DVAPP: Avg for iter=3 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.866ms opxfer_time=0.132ms qsub_time=0.466ms
I:DVAPP: Avg for iter=3 batch=8 total_models=1 total_inference=8 e2e_time=16.562ms
I:DVAPP: Avg for iter=4 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.882ms opxfer_time=0.130ms qsub_time=0.458ms
I:DVAPP: Avg for iter=4 batch=8 total_models=1 total_inference=8 e2e_time=16.583ms
I:DVAPP: Avg for iter=5 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.883ms opxfer_time=0.127ms qsub_time=0.445ms
I:DVAPP: Avg for iter=5 batch=8 total_models=1 total_inference=8 e2e_time=16.659ms
I:DVAPP: Avg for iter=6 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.868ms opxfer_time=0.126ms qsub_time=0.453ms
I:DVAPP: Avg for iter=6 batch=8 total_models=1 total_inference=8 e2e_time=16.685ms
I:DVAPP: Avg for iter=7 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.895ms opxfer_time=0.127ms qsub_time=0.489ms
I:DVAPP: Avg for iter=7 batch=8 total_models=1 total_inference=8 e2e_time=16.543ms
I:DVAPP: Avg for iter=8 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.891ms opxfer_time=0.129ms qsub_time=0.457ms
I:DVAPP: Avg for iter=8 batch=8 total_models=1 total_inference=8 e2e_time=16.459ms
I:DVAPP: Avg for iter=9 batch=8 model=0 hwinf_time=15.958ms ipxfer_time=0.914ms opxfer_time=0.125ms qsub_time=0.441ms
I:DVAPP: Avg for iter=9 batch=8 total_models=1 total_inference=8 e2e_time=16.490ms
I:DVAPP: Ep dram stats: hndl=0x1, size=1073741824, occ=203587840, free=870153984, resvd=31457280, mdl_size=171579136, tnsr_sz=0
I:DVAPP: Endpoint stats: sclk=600 dclk=1200
I:DVAPP: Model information: name=detection_detection_out_normalized_input_image_tensor_1x3x300x300x1 num_ip=1 num_op=1 total_ip_size=270000 total_op_size=5604
I:DVAPP: Run stats: num_inferences=80 (i=10 b=8) sdk_est_time=16.020 hw_time-sdk_time=0.537 hw_time=(16.557,15.955,63.883,5.325) ip_time=(0.883,0.793,1.047,0.038) op_time=(0.130,0.120,0.175,0.010) qsub_time=(0.462,0.414,0.627,0.038)
I:DVAPP: E2E stats: app_throughput=56.004ips hw_throughput=60.397ips inf_hw_time=16.557ms overhead=7.845%
I:DVAPP: Test passed
⁠One liner
docker run -it --privileged --rm arcturusnetworks/dvsdk bash -c "/dvproxy/dvinfproxy --firmware=/dvproxy/firmware --sock=0.0.0.0:5050 --daemon; /dvproxy/nnapp_async_perf --sock 0.0.0.0:5050 -i 10 -m /mobilenetv2_ssd/mobilenetv2_ssd.dvm -b 8"
Tag summary
Recent tags
Content type
Image
Digest
Size
1.3 GB
Last updated
over 4 years ago
docker pull arcturusnetworks/dvsdk:latest