darknet-nnpack icon indicating copy to clipboard operation
darknet-nnpack copied to clipboard

When I enable the NNPACK option, the network 's output is incorrect.

Open yjcn opened this issue 7 years ago • 3 comments

When I enable the NNPACK option, the network 's output is incorrect. And I disable NNPACK, the result is right. image image

yjcn avatar Jan 25 '18 15:01 yjcn

I think you need to make sure you're calling nnp_initialize if you are using different functionality in the code.

For an example of the necessary changes, look at https://github.com/shizukachan/darknet-nnpack/commit/b9402ac82c6935ea5040c37ad321e868399a05f7

shizukachan avatar Mar 25 '18 17:03 shizukachan

@shizukachan Yes. Thank you for your reminding. I forget to add "nnp_initialize();" and "net->threadpool = pthreadpool_create(4); ". Now I use digitalbrain79 's darknet-nnpack and the result is correct, but the speed isn't faster(don't use nnpack 46ms per image; use nnpack 50ms per image ). And I try to use your darknet-nnpack, the result is still incorrect. Besides "nnp_initialize();",should I complete other initialization?

yjcn avatar Mar 29 '18 13:03 yjcn

it might work now. I updated my version of darknet

shizukachan avatar May 31 '18 09:05 shizukachan