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

Most corruptions fail on Cifar dataset with size 32 x 32 x 3 #21

Open
Kishaan opened this issue Sep 19, 2022 · 0 comments
Open

Most corruptions fail on Cifar dataset with size 32 x 32 x 3 #21

Kishaan opened this issue Sep 19, 2022 · 0 comments

Comments

@Kishaan
Copy link

Kishaan commented Sep 19, 2022

I'm trying to create corrupted version of Cifar-10 train set and I noticed that this library fails for most of the corruptions. I have attached example images of some noises at severity level 5 where the object in the image is barely visible anymore.

Screenshot from 2022-09-19 13-25-26
Screenshot from 2022-09-19 13-25-03
Screenshot from 2022-09-19 13-24-53
Screenshot from 2022-09-19 13-29-45

And here's the code I'm using to create them:

for corruption_name in ['motion_blur', 'gaussian_noise', 'snow',
                        'pixelate', 'shot_noise', 'impulse_noise', 'defocus_blur',
                        'glass_blur', 'zoom_blur', 'frost', 'fog',
                        'brightness', 'contrast', 'elastic_transform', 'jpeg_compression',
                        'speckle_noise', 'gaussian_blur', 'spatter', 'saturate']:
    print(corruption_name)
    img = img.astype('uint8')
    corrupted_img = corrupt(img, corruption_name=corruption_name, severity=5)
    plt.figure(figsize=(2,2))
    plt.imshow(corrupted_img)
    plt.show()

I remember reading that this library supports images as small as 32x32. Am I missing something?

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