albumentations_examples
albumentations_examples copied to clipboard
Migrating from torchvision to Albumentations/ Using albumentations with PIL (Normalize)
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
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