tree: 1342af2ce887fe47ae18ef4cb6700ab0049c1053 [path history] [tgz]
  1. feature_extract.cpp
  2. prepare_data_with_opencv.cpp
  3. README.md
  4. run.sh
cpp-package/example/feature_extract/README.md

This example shows how to extract features with a pretrained model.

Execute run.sh to:

  • Download a pretrained model
  • Download sample pictures (dog.jpg and cat.jpg)
  • Compile the files
  • Execute the featurization on dog.jpg and cat.jpg

Note:

  1. The filename of network parameters may vary, line 67 in feature_extract.cpp should be updated accordingly.
  2. You need to build MXNet from source to get access to the lib/libmxnet.so or point LD_LIBRARY_PATH to where it is installed in your system