Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RGB channel ordering for yolov8 #836

Merged
merged 4 commits into from
Mar 7, 2023
Merged

Fix RGB channel ordering for yolov8 #836

merged 4 commits into from
Mar 7, 2023

Conversation

mayrajeo
Copy link
Contributor

YOLOv8 expects numpy arrays to have BGR channel ordering instead of RGB. Examples here: https://nbviewer.org/gist/mayrajeo/033e842b7593e58135c7694944905937

@fcakyon
Copy link
Collaborator

fcakyon commented Feb 28, 2023

@mayrajeo thanks for your contribution!

Can you please reformat your code and push it again? You can follow the steps in https://github.com/obss/sahi#contributing

@mayrajeo
Copy link
Contributor Author

mayrajeo commented Mar 6, 2023

Fixed the tests to ensure that predictions acquired with Yolov8DetectionModel.perform_inference are equal with those acquired with using YOLOv8 model directly

@fcakyon fcakyon added this pull request to the merge queue Mar 7, 2023
@fcakyon
Copy link
Collaborator

fcakyon commented Mar 7, 2023

@mayrajeo thanks a lot for this amazing fix!

Merged via the queue into obss:main with commit 9b5aeb2 Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants