digitalbrain79 / darknet-nnpack

Darknet with NNPACK
Other
306 stars 76 forks source link

Not working with Pi Zero #15

Open cah-jeffgraham opened 7 years ago

cah-jeffgraham commented 7 years ago

I figure the problem is likely due to the different ARM processor in the zero. All your install steps worked fine, but I get these results:

./darknet detect cfg/yolo.cfg tiny-yolo.weights data/dog.jpg
Illegal instruction

I'm only looking to detect every 60 seconds. Do you think this is feasible?

Thanks for the repo.

digitalbrain79 commented 7 years ago

I'm sorry. I did not tested on Pi Zero.

Fred-Erik commented 7 years ago

The Pi Zero has a ARM v6 CPU, which is much slower for matrix multiplication than the ARM v7 of the Pi 2. The NNPack GitHub says:

ARMv7 processor with NEON instruction set VFP instruction set (including ARMv6 systems with VFPv2) can be targeted using --backend=scalar configuration option, but for performance reasons it is not recommended for production use.

So maybe you could try that when compiling NNPack?