Skip to content

Update imports to use albumentationsx everywhere#36

Closed
Borda wants to merge 1 commit into
albumentations-team:mainfrom
Borda:fix/import
Closed

Update imports to use albumentationsx everywhere#36
Borda wants to merge 1 commit into
albumentations-team:mainfrom
Borda:fix/import

Conversation

@Borda

@Borda Borda commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the import statements in the video and image transform implementation files to use the albumentationsx library instead of albumentations. This change ensures that both modules are using the correct library for their transformations.

Library update:

  • Changed the import from albumentations to albumentationsx in benchmark/transforms/albumentationsx_impl.py to use the appropriate library for image transformations.
  • Changed the import from albumentations to albumentationsx in benchmark/transforms/albumentationsx_video_impl.py to use the appropriate library for video transformations.

cc: @ternaus

Summary by Sourcery

Update image and video transform implementations to import and use the albumentationsx library consistently.

Enhancements:

  • Replace albumentations imports with albumentationsx in image transform implementation.
  • Replace albumentations imports with albumentationsx in video transform implementation.

Copilot AI review requested due to automatic review settings January 14, 2026 10:01
@sourcery-ai

sourcery-ai Bot commented Jan 14, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Standardizes the transformation implementations to use the albumentationsx library by updating imports in both the image and video transform modules from albumentations to albumentationsx.

File-Level Changes

Change Details Files
Switch image and video transform implementations from albumentations to albumentationsx imports.
  • Replace albumentations imports with albumentationsx in the image transform implementation module so all image transforms rely on the correct library.
  • Replace albumentations imports with albumentationsx in the video transform implementation module so all video transforms rely on the correct library.
  • Aligns naming and usage so that modules named albumentationsx_* consistently import from albumentationsx, reducing confusion and potential runtime mismatches.
benchmark/transforms/albumentationsx_impl.py
benchmark/transforms/albumentationsx_video_impl.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the import statements in two AlbumentationsX implementation files to use the correct albumentationsx package name instead of albumentations. This aligns the imports with the file names, the LIBRARY constant defined in both files, and the rest of the codebase which already references albumentationsx.

Changes:

  • Updated import from albumentations to albumentationsx in the image transform implementation
  • Updated import from albumentations to albumentationsx in the video transform implementation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
benchmark/transforms/albumentationsx_impl.py Updates import to use albumentationsx package, aligning with the file name and LIBRARY constant
benchmark/transforms/albumentationsx_video_impl.py Updates import to use albumentationsx package, aligning with the file name and LIBRARY constant

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ternaus

ternaus commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

Not really.

pip install albumentationsx

but

import albumentations as A


This is a bit confusing, but wanted the transition to albumentationsx be seamless, without any changes in the code, only in requirements.txt

@ternaus ternaus closed this Jan 14, 2026
@Borda Borda deleted the fix/import branch January 14, 2026 12:04
@Borda

Borda commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

This is a bit confusing, but wanted the transition to albumentationsx be seamless, without any changes in the code, only in requirements.txt

Ahh, you are right! Was confused by the transition...

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.

3 participants