-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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 BGR->RGB Bug in albumentations #8641 #8695
Fix BGR->RGB Bug in albumentations #8641 #8695
Conversation
7910199
to
44004d1
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@UnglvKitDe yes this is probably the simplest fix but not a very good one. I think we need to convert the LoadImagesAndLabels dataloader to be fully RGB. I'll merge this now as a temp fix though so I don't forget. |
@glenn-jocher I looked at it. Think it might be worth adding it right after the image loading and rebuilding the other methods. Because we don't really have any opencv operations in the data loader anymore except in augmentations. Good point! |
Caused bug in #8724 |
Second fix attempt PR #8747, can you please review? |
* Fix BGR->RGB Bug in albumentations ultralytics#8641 * Change transform methode from cv2 to numpy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Simplify * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update augmentations.py Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <[email protected]>
…tics#8727) Revert "Fix BGR->RGB Bug in albumentations ultralytics#8641 (ultralytics#8695)" This reverts commit 2e1291f.
@glenn-jocher First idea. Easy, but maybe not the fastest one...
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Improved image augmentation compatibility for BGR image inputs.
📊 Key Changes
🎯 Purpose & Impact