Bug 11478 - Move caffe from meta-refkit-extra to meta-refkit
Summary: Move caffe from meta-refkit-extra to meta-refkit
Status: RESOLVED FIXED
Alias: None
Product: IoT Reference OS Kit
Classification: Yocto Project Subprojects
Component: intel-iot-refkit-profile-computer-vision (show other bugs)
Version: 2.4
Hardware: x86 x86_64
: Medium enhancement
Target Milestone: 2.4 M1
Assignee: Ismo Puustinen
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-05-08 12:51 UTC by Ismo Puustinen
Modified: 2017-06-29 09:43 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.