AI

Running Generative AI on an RP2350

Running Generative AI on an RP2350

Driven by a desire for privacy, customization, and lower costs, there’s growing interest in AI models which can be run on local hardware. Few of them go as far as …. Running Generative AI on an RP2350.

Few of them go as far as [Tim], though, who built an image generation diffusion model which can run on an RP2350 microcontroller. As might be expected, its capabilities are limited. The resolution is 128×128, it only generates images of human faces, and it takes about twenty seconds per image – still impressive for such limited hardware.

It runs on a Waveshare RP2350 development board, and it can output the generated image over USB or display it with the aid of a VGA adapter board. The generative model doesn’t directly create an image. Rather, it generates a distribution in a latent space, which a variational auto-encoder’s decoder component translates into an image.

The auto-encoder was trained in two parts: an encoder which transforms an image into a latent-space distribution, and a decoder to transform that distribution back to an image; once this was trained, only the decoder was used.


Discover more from ChuckysCarnage

Subscribe to get the latest posts sent to your email.

Leave a comment