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

Fixes #1557

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Fixes #1557

merged 2 commits into from
Mar 4, 2024

Conversation

ternaus
Copy link
Collaborator

@ternaus ternaus commented Mar 4, 2024

No description provided.

@ternaus ternaus changed the title giFixes Fixes Mar 4, 2024
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Type: Enhancement

PR Summary: The pull request introduces enhancements to the MixUp transformation in the albumentations library, focusing on improving type safety, error handling, and extending functionality to handle different data types more robustly. It modifies the handling of reference data, clarifies the behavior when no reference data is provided, and introduces checks to ensure the correct data types are used. Additionally, it updates the handling of bounding boxes and keypoints to raise NotImplementedError, indicating areas for future development.

Decision: Comment

📝 Type: 'Enhancement' - not supported yet.
  • Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
✅ Small diff: the diff is small enough to approve with confidence.
No details provided.

General suggestions:

  • Consider adding more precise type hints for reference_data to ensure type safety and prevent runtime errors due to incorrect data structures.
  • It would be beneficial to include more comprehensive tests, especially focusing on the new or modified methods such as apply_to_global_label, apply_to_bboxes, and apply_to_keypoints, to ensure they behave as expected under various conditions.
  • Given the changes to error handling and type checking, ensure that the documentation is updated accordingly to reflect these changes and guide users on how to correctly use the modified functionality.
  • Review the implementation of the MixUp class to ensure that it gracefully handles cases where reference_data is None or an empty list, as these scenarios seem to be a significant focus of the changes.

Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨

Share Sourcery

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@ternaus ternaus merged commit 6494ef3 into main Mar 4, 2024
17 checks passed
@ternaus ternaus deleted the fixes_in_mixup branch March 4, 2024 04:15
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.

1 participant