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 #1559

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Fixes #1559

merged 2 commits into from
Mar 4, 2024

Conversation

ternaus
Copy link
Collaborator

@ternaus ternaus commented Mar 4, 2024

No description provided.

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: This pull request introduces several enhancements to the MixUp augmentation in the albumentations library. It modifies the handling of reference data and the return type of the read function to allow for more flexibility in the types of data that can be used for mixing. Additionally, it includes changes to the behavior when no reference data is provided and updates the return structure of the get_params method. The PR also extends test coverage to include new scenarios and ensure the robustness of these enhancements.

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:

  • Given the broadening of types accepted by reference_data and the return type of read_fn, it's crucial to ensure that the code is resilient to various data types and structures. Consider adding more comprehensive type checks or validations within the implementation to prevent runtime errors.
  • The PR could benefit from more detailed documentation or comments explaining the rationale behind allowing a wider range of types for reference_data and the implications of these changes on the augmentation's behavior.
  • It's important to ensure that the new test cases cover not only positive scenarios but also edge cases and potential error conditions. This will help in maintaining the robustness of the feature.
  • Review the PR title and description to ensure they accurately reflect the scope and impact of the changes. A more descriptive title and a detailed description can improve the clarity of the changes for reviewers and future maintainers.

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 fb81e6c into main Mar 4, 2024
17 checks passed
@ternaus ternaus deleted the fix_mixup branch March 4, 2024 19:45
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