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

Feature/random masking on images tests #1138

Merged
merged 8 commits into from
Nov 18, 2024

Conversation

chakravarthik27
Copy link
Collaborator

@chakravarthik27 chakravarthik27 commented Nov 6, 2024

This pull request adds several new image transformation classes to the langtest/transform/image/robustness.py file, enhancing the robustness testing capabilities for visual QA tasks. The most significant changes include the addition of multiple transformation classes and the inclusion of new image manipulation utilities.

New image transformation classes:

  • Added ImageTranslate class to apply translation transformations to images.
  • Added ImageShear class to apply shear transformations to images.
  • Added ImageBlackSpot class to corrupt images by adding black spots.
  • Added ImageLayeredMask class to apply layered mask transformations with optional flipping.
  • Added ImageTextOverlay class to overlay text on images.
  • Added ImageWatermark class to apply watermark transformations to images.

Enhancements to image manipulation utilities:

  • Imported ImageDraw module to support drawing operations required by the new transformations.
  • Added Literal type import to support type annotations for specific string values.

@chakravarthik27 chakravarthik27 self-assigned this Nov 6, 2024
@chakravarthik27 chakravarthik27 merged commit b11fe41 into release/2.5.0 Nov 18, 2024
3 checks passed
@chakravarthik27 chakravarthik27 linked an issue Dec 24, 2024 that may be closed by this pull request
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.

Random Masking on Images Tests
1 participant