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 Albu Transform in transforms.py #3770

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RanFeng2
Copy link

Directly using the Albu class in transforms.py for data augmentation will result in an error. After debugging point by point, I found that it was because redundant key-value pairs were passed into self.aug, so I made this modification.

Motivation

  • Added a new variable albumentations_results in the transform function to remove redundant keys from results, preventing errors in self.aug.

Modification

  • Introduced the albumentations_results variable in the transform function to store and process the image and mask keys.
  • Removed redundant keys from results to ensure self.aug works correctly.

Notes for Reviewers

  • Please review the implementation of albumentations_results to confirm it effectively removes redundant keys and works as expected.

@CLAassistant
Copy link

CLAassistant commented Sep 11, 2024

CLA assistant check
All committers have signed the CLA.

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