Skip to content

Recommendations for running Yolo5 on Android #973

@jeggers-88

Description

@jeggers-88

❔Question

Does anybody has recommendations, how to run yolo5 with nice performance on android ?

Additional context

First I tried to export my custom trained yolo5s NN to onnx to import it with opencv. But I was not able to load the onnx File successfully with the newest opencv 4.4.0:

 Slice layer only supports steps = 1 (expected: 'countNonZero(step_blob != 1) == 0'), where 'countNonZero(step_blob != 1)' is 1
 must be equal to  '0' is 0

Actually I was successfully able to run the torchscript export with pytorch in my android app. But with very poor performance (nearly 2 seconds inference time on galaxy tab a sm-t510).
Running on my laptop the detect.py shows only ~0.015 seconds (yolo5s with NVIDIA Quadro T2000).

Thanks very much for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions