You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Love the library? You can contribute to its development by becoming a sponsor for the library. Your support is invaluable, and every contribution makes a difference.
Haven't starred our repo yet? Show your support with a ⭐! It's just only one mouse click.
Applies one of the eight possible D4 dihedral group transformations to a square-shaped input, maintaining the square shape. These transformations correspond to the symmetries of a square, including rotations and reflections by @ternaus
The D4 group transformations include:
- e (identity): No transformation is applied.
- r90 (rotation by 90 degrees counterclockwise)
- r180 (rotation by 180 degrees)
- r270 (rotation by 270 degrees counterclockwise)
- v (reflection across the vertical midline)
- hvt (reflection across the anti-diagonal)
- h (reflection across the horizontal midline)
- t (reflection across the main diagonal)
Could be applied to:
image
mask
bounding boxes
key points
Does not generate interpolation artifacts as there is no interpolation.
Provides the most value in tasks where data is invariant to rotations and reflections like:
New, preferred wat is to use num_shadows_limit instead of num_shadows_lower / num_shadows_upper by @ayasyrev
Improvements and bug fixes
Added check for input parameters to transforms with Pydantic
Now all input parameters are validated and prepared with Pydantic. This will prevent bugs, when transforms are initialized without errors with parameters that are outside of allowed ranges.
by @ternaus
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Albumentations 1.4.4 Release Notes
Support Our Work
Transforms
Added D4 transform
Applies one of the eight possible D4 dihedral group transformations to a square-shaped input, maintaining the square shape. These transformations correspond to the symmetries of a square, including rotations and reflections by @ternaus
The D4 group transformations include:
-
e
(identity): No transformation is applied.-
r90
(rotation by 90 degrees counterclockwise)-
r180
(rotation by 180 degrees)-
r270
(rotation by 270 degrees counterclockwise)-
v
(reflection across the vertical midline)-
hvt
(reflection across the anti-diagonal)-
h
(reflection across the horizontal midline)-
t
(reflection across the main diagonal)Could be applied to:
Does not generate interpolation artifacts as there is no interpolation.
Provides the most value in tasks where data is invariant to rotations and reflections like:
Example:
Added new normalizations to Normalize transform
standard
-subtract
fixed mean, divide by fixedstd
image
- the same asstandard
, butmean
andstd
computed for each image independently.image_per_channel
- the same as before, but per channelmin_max
- subtractmin(image)
and divide bymax(image) - min(image)
min_max_per_channel
- the same, but per channelby @ternaus
Changes in the interface of RandomShadow
New, preferred wat is to use
num_shadows_limit
instead ofnum_shadows_lower
/num_shadows_upper
by @ayasyrevImprovements and bug fixes
Added check for input parameters to transforms with Pydantic
Now all input parameters are validated and prepared with Pydantic. This will prevent bugs, when transforms are initialized without errors with parameters that are outside of allowed ranges.
by @ternaus
Updates in RandomGridShuffle
Example:
New way to add additional targets
Standard way uses
additional_targets
Now you can also add them using
add_targets
:by @ayasyrev
Small fixes
add_weighted
function by @gogetronDocumentation
This discussion was created from the release Albumentations 1.4.4 Release Notes.
Beta Was this translation helpful? Give feedback.
All reactions