Corrupting Pixel Arts

In this memo, we work on a corrupt.py which will corrupt sprites.
Trial 1
Operations:
White BG
Apply random translation (less than 1px)
Apply random scale (less than 1 px)
Gaussian Noise
Gaussian Blur
Actual

Left: hand pixeled
Middle: Resampled Pseudo Pixel Art
Right: Artificial Corruption
This already is pretty good.
Trial 2
Operations:
Add White BG
Layer the sprite
Upscale 3x (nearest neighbor)
Add minor compression artifact
Add gaussian noise
Blur
Translate randomly few pixels
Upscale 2x (bilinear)
Add jpeg compression artifact
Downscale (bilinear) to original size.
Add jpeg compression artifact

resample (bilinear), corrupt_v1, corrupt_v2
Next Steps:
I will run this corruption on my sprite dataset to prepare data.
Then, I will work on model design and training
— Sprited Dev 🐛


![[WIP] Digital Being - Texture v1](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fuploads%2Fcovers%2F682665f051e3d254b7cd5062%2F0a0b4f8e-d369-4de0-8d46-ee0d7cc55db2.webp&w=3840&q=75)

