Bug 11478

Summary: Move caffe from meta-refkit-extra to meta-refkit
Product: [Yocto Project Subprojects] IoT Reference OS Kit Reporter: Ismo Puustinen <ismo.puustinen>
Component: intel-iot-refkit-profile-computer-visionAssignee: Ismo Puustinen <ismo.puustinen>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: matti-pekka.sivosuo
Version: 2.4   
Target Milestone: 2.4 M1   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Ismo Puustinen 2017-05-08 12:51:49 UTC
Make Caffe a first-class citizen in Refkit. Work with the recipes (Caffe + its dependencies) and make them nicer. Separate Caffe-based demos from Caffe itself.
Comment 1 Ismo Puustinen 2017-05-24 11:28:26 UTC
One way forward might be to enable OpenCV DNN module. It can read Caffe models and implements a subset of Caffe layers.

http://docs.opencv.org/trunk/d5/de7/tutorial_dnn_googlenet.html
http://docs.opencv.org/3.1.0/d6/d0f/group__dnn.html

DNN module needs to be tried out in practice first and possibly benchmarked against real Caffe. If it works well enough, it might be enough to solve the Caffe classification issues for most of the users. Real Caffe could then be used only for complex or non-standard models and non-cv use cases, and might continue living in meta-refkit-extra.
Comment 2 Ismo Puustinen 2017-06-05 08:15:52 UTC
DNN build fix is in meta-openembedded master-next now.

https://patchwork.openembedded.org/patch/140142/
Comment 3 Ismo Puustinen 2017-06-14 12:02:01 UTC
PR for this feature: https://github.com/intel/intel-iot-refkit/pull/186
Comment 4 Ismo Puustinen 2017-06-29 09:43:04 UTC
The DNN module is now enabled and a test is added to Refkit. The test downloads an ImageNet Caffe model (the same used in the meta-refkit-extra Caffe demos) and uses it to classify an image without enabling meta-refkit-extra layer. In the future the caffe recipe could be changed to use the caffe-reference-bvlc recipe for downloading the test data.