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

Difference between torchvision.transforms #30

Open
jizhang02 opened this issue Jun 21, 2023 · 1 comment
Open

Difference between torchvision.transforms #30

jizhang02 opened this issue Jun 21, 2023 · 1 comment

Comments

@jizhang02
Copy link

Hello,

I would like to know what's the difference between your volumentations and the lib of torchvision.transforms?

import torchvision.transforms as transforms

 im_aug = transforms.Compose([
                #tfs.Resize(120),
                #transforms.RandomCrop(image_size),
                transforms.RandomHorizontalFlip(),
                transforms.RandomVerticalFlip(),
                #transforms.RandomRotation(5),
                #transforms.ColorJitter(brightness=0.5, contrast=0.5, hue=0.5),
                #transforms.RandomPerspective(),
                #transforms.GaussianBlur(kernel_size=(3, 3), sigma=(0.1, 1.5)),
                #transforms.RandomInvert(),
                #transforms.RandomPosterize(bits=2),
                #transforms.RandomAdjustSharpness(sharpness_factor=2),
                #transforms.RandomAutocontrast(),
                #transforms.RandomEqualize()
            ])
            img = im_aug(img)

Thanks,
Jing

@ZFTurbo
Copy link
Owner

ZFTurbo commented Jun 21, 2023

The main difference is that torchvision is for images e.g. shapes like (224, 224, 3). This library is for 3D volumes e.g. shapes like (224, 224, 224, 3).

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