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

Migrating from torchvision to Albumentations/ Using albumentations with PIL (Normalize) #19

Open
HajunKim opened this issue Feb 26, 2022 · 1 comment

Comments

@HajunKim
Copy link

it is mentioned how to convert torchvision transform:normalize to albumetaions transform:normalize when using the same pipe line.
but it is not metioned how to convert torchvision normalize to albumentaions normalize when using albumentaions with PIL.

If it is impossible, I'd appreciate it if you could mention it. If it is possible, please give use some example. Thank you

@Dipet
Copy link
Collaborator

Dipet commented Feb 28, 2022

I can not understand your problem. Could you provide small reproducible example?
If you read PIL image you need convert it into np.ndarray and then provide it into pipeline.
Try to look into this tutorial: https://albumentations.ai/docs/examples/migrating_from_torchvision_to_albumentations/#migrating-from-torchvision-to-albumentations

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

2 participants