Environmental Requirements

  • cmake (version >=3.10 is recommended)
  • protobuf (version >= 3.0 is required)
  • gcc (version >= 4.9 is required)

Steps

  1. cd MNN/
  2. ./schema/generate.sh
  3. mkdir build
  4. cd build
  5. cmake .. -DMNN_BUILD_CONVERTER=true && make -j4

The compiled product contains the model conversion tool MNNConvert and the model output tool MNNDump2Json.out.