Skip to content

faster inference #3

Description

@instant-high

Hi, nice project.
Reminds me of of my own tkinter-gui / vb-gui projects.

You can speed up inference around 20-25% by creating the rectangle mask once and not inside the 'reverse2original' loop.
Also you can replace the reverse matrix code with one line = 'mat_rev = cv2.invertAffineTransform(mat)'

For faster detection 'scrfd_500m_bnkps.onnx' in most cases does a very good job.

Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions