Skip to main content

Command Palette

Search for a command to run...

Corrupting Pixel Arts

Updated
1 min read
Corrupting Pixel Arts

In this memo, we work on a corrupt.py which will corrupt sprites.

Trial 1

Operations:

  1. White BG

  2. Apply random translation (less than 1px)

  3. Apply random scale (less than 1 px)

  4. Gaussian Noise

  5. Gaussian Blur

Actual

  • Left: hand pixeled

  • Middle: Resampled Pseudo Pixel Art

  • Right: Artificial Corruption

This already is pretty good.

Trial 2

Operations:

  1. Add White BG

  2. Layer the sprite

  3. Upscale 3x (nearest neighbor)

  4. Add minor compression artifact

  5. Add gaussian noise

  6. Blur

  7. Translate randomly few pixels

  8. Upscale 2x (bilinear)

  9. Add jpeg compression artifact

  10. Downscale (bilinear) to original size.

  11. 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 🐛