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

--resize_mode "center_crop" fails due to change in albumentations #433

Open
jonasricker opened this issue Jul 9, 2024 · 0 comments
Open

Comments

@jonasricker
Copy link
Contributor

Due a change in https://github.com/albumentations-team/albumentations/blob/main/albumentations/augmentations/crops/functional.py, the following line

img = A.center_crop(img, self.image_size, self.image_size)

causes the error "module 'albumentations' has no attribute 'center_crop'".

It looks like one could use the CenterCrop class or recreate center_crop using crop and get_center_crop_coords (https://github.com/albumentations-team/albumentations/blob/de2f0ccdd324c18ab2a30b6e9ef405ded260e272/albumentations/augmentations/crops/functional.py#L82).

@jonasricker jonasricker changed the title --resize_mode "center_crop" fails due change in albumentations --resize_mode "center_crop" fails due to change in albumentations Jul 12, 2024
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

No branches or pull requests

1 participant