Yolov5: Why postprocess of yolov5 is not same with yolov3

Created on 28 Jul 2020  Â·  5Comments  Â·  Source: ultralytics/yolov5

I find yolov5's postprocess is not same with yolov3。
postprocess of yolov5 is follow:
y = x[i].sigmoid()
y[..., 0:2] = (y[..., 0:2] * 2. - 0.5 + self.grid[i].to(x[i].device)) * self.stride[i] # xy
y[..., 2:4] = (y[..., 2:4] * 2) ** 2 * self.anchor_grid[i] # wh

when I deploy yolov5 in Hi3559,I find the result is incorrect。

Additional context

Stale question

Most helpful comment

@yangfei963158659 I think you may find out the answer from this issue

All 5 comments

Hello @yangfei963158659, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook Open In Colab, Docker Image, and Google Cloud Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

  • Cloud-based AI systems operating on hundreds of HD video streams in realtime.
  • Edge AI integrated into custom iOS and Android apps for realtime 30 FPS video inference.
  • Custom data training, hyperparameter evolution, and model exportation to any destination.

For more information please visit https://www.ultralytics.com.

when I deploy yolov5 in Hi3559 using yolov3‘s postprocess,I find the result is incorrect。

@yangfei963158659 I think you may find out the answer from this issue

@yangfei963158659 why would you expect them to be the same?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maykulkarni picture maykulkarni  Â·  3Comments

ShreshthSaxena picture ShreshthSaxena  Â·  4Comments

hktxt picture hktxt  Â·  3Comments

dereyly picture dereyly  Â·  4Comments

FSNStefan picture FSNStefan  Â·  4Comments