Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-502] Fixing broken feature_extract cpp example #11114

Merged
merged 13 commits into from
Jun 2, 2018
Prev Previous commit
Next Next commit
Update README.md
  • Loading branch information
ThomasDelteil authored May 31, 2018
commit 13fe82b0a2e0b0f65965c0219b988499fe7ad3d6
9 changes: 6 additions & 3 deletions cpp-package/example/feature_extract/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
This example shows how to extract features with a pretrained model.

You can first get a pretrained model from <https://github.com/dmlc/mxnet-model-gallery/blob/master/imagenet-1k-inception-bn.md>,
then prepare 2 pictures 1.jpg and 2.jpg to extract by executing `run.sh`.
Execute `run.sh` to:
- Download a pretrained model
- Download sample pictures (`1.jpg` and `2.jpg`)
- Compile the files
- Execute the featurization on `1.jpg` and `2.jpg`

Note:
1. The filename of network parameters may vary, line 67 in `feature_extract.cpp` should be updated accordingly.
2. As the build system has changed a lot, to build this example, you need to put the compiled library `libmxnet.so` in `../lib/linux`.
2. You need to build MXNet from source to get access to the `lib/libmxnet.so`