tree: 3d704c38cae9a232312ce1853a381479aafbeb75 [path history] [tgz]
  1. feature_extract.cpp
  2. Makefile
  3. prepare_data_with_opencv.cpp
  4. README.md
  5. 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