How to benchmark ncnn custom model

guicsvcw  于 2022-10-22  发布在  其他
关注(0)|答案(1)|浏览(193)

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?

erhoui1w

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).

相关问题