Environmental Requirements
- protobuf (version >= 3.0 is required)
Steps
cd /path/to/MNN
./schema/generate.sh
- ./tools/script/get_model.sh(optional, models are needed only in demo project). Note get_model.sh requires you to build the MNNConvert tool first. See its build instructions here.
- open
project/ios/MNN.xcodeproj
with Xcode on macOS, then build.
Copy mnn.metallib
to the application’s main bundle directory if the Metal backend is in your need. You can also refer to Run Script
in Build Phases
of the Playground target.