I just convert from a model from onnx to ncnn and want to benchmark my custom model on Android but I don't know how.
I followed the step in https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-android to build ncnn for Android and follow the instruction here https://github.com/Tencent/ncnn/blob/master/benchmark/README.md to benchmark my model. After pushing models in $ROOT/benchmark and my custom models into the device, it only benchmarks the model in $ROOT/benchmark, but not my model. Where should I fix so that it benchmark my custom model?
1条答案
按热度按时间erhoui1w1#
@longxvu Try to modify the benchncnn.cpp file which is in the $ROOT/benchmark, use the defined benchmark function with parameter(your custom model name, specific input size, opt).