We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The PadIfNeeded transform doesn't serialize the position parameter.
PadIfNeeded
Steps to reproduce the behavior:
import albumentations as A transform = A.PadIfNeeded(min_height=512, min_width=512, p=1, border_mode=0, value=[124, 116, 104], position="top_left") transform.to_dict()
Output:
{'__version__': '1.4.1', 'transform': {'__class_fullname__': 'PadIfNeeded', 'always_apply': False, 'p': 1, 'min_height': 512, 'min_width': 512, 'pad_height_divisor': None, 'pad_width_divisor': None, 'border_mode': 0, 'value': [124, 116, 104], 'mask_value': None}}
The position parameter should be included in the dict.
dict
conda
pip
The text was updated successfully, but these errors were encountered:
Thanks! Will look into it.
Sorry, something went wrong.
Fixed in #1570
@margilt, would you consider becoming a sponsor for the library? Lowest tier is only $2 / month
$2 / month
https://github.com/sponsors/albumentations-team
No branches or pull requests
🐛 Bug
The
PadIfNeeded
transform doesn't serialize the position parameter.To Reproduce
Steps to reproduce the behavior:
Output:
Expected behavior
The position parameter should be included in the
dict
.Environment
conda
,pip
, source):pip
The text was updated successfully, but these errors were encountered: