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

resized_image = F.resize(image, height=256, width=256) #27

Open
ArupSankarRoy opened this issue Feb 16, 2024 · 2 comments
Open

resized_image = F.resize(image, height=256, width=256) #27

ArupSankarRoy opened this issue Feb 16, 2024 · 2 comments

Comments

@ArupSankarRoy
Copy link

AttributeError Traceback (most recent call last)
in <cell line: 5>()
3 image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
4
----> 5 resized_image = F.resize(image, height=256, width=256)
6 padded_image = F.pad(image, min_height=512, min_width=512)
7 padded_constant_image = F.pad(image, min_height=512, min_width=512, border_mode=cv2.BORDER_CONSTANT)

AttributeError: module 'albumentations.augmentations.functional' has no attribute 'resize'

@ternaus
Copy link
Collaborator

ternaus commented Jun 26, 2024

What is the source of this code, i.e. what notebook?

@tanmay4269
Copy link

this worked for me: from albumentations.augmentations.geometric import functional as F

I'm using albumentations version 1.3.1

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

3 participants