android-demo-app
android-demo-app copied to clipboard
When I click the detect button, the app crashes abnormally (I am using the model I trained myself, not the yolov5 model )
You need to convert the output to Tensor
final Tensor outputTensor = mModule.forward(IValue.from(mInputTensor)).toTensor();
I am also facing the same issue. @bebbieyin it's already converted to Tensor
After all, I solved the problem. The error kept showing up even after converting the output to Tensor. By upgrading my gradle to higher version, the model started working well. @zjnlxk to to update your gradle version