Training AI to Paint with Code(surya.website) |
Training AI to Paint with Code(surya.website) |
I am reminded of a paper I was inspired by a long time ago [0], (okay it's 2018 so I guess just 8 years ago, but it feels like longer, from the before-times), that demonstrated learning brush strokes. At the time there was already a lot of work on GANs, but these are pixel-based methods, and I was really interested in the idea of how to derive descriptive methods of scene generation/understanding. I found this work really interesting because it combined RL and GAN techniques in a creative way. I miss that kind of research.
Now of course VLMs have shown that you can mix modalities in generalized sequence-to-sequence problems and it doesn't surprise me that this kind of thing is possible, but it's so nice to see it done well using modern techniques.
Wild the possibilities
Played a lot with p5js some years ago, might pick it up again and try some of your ideas. The reinforcement learning part sounds about above my skill level though. :)
It seems to me that teaching a model to directly produce SVG is more helpful than teaching to write JavaScript that produce pixels.
By the way, someone here is benchmarking LLMs on how they draw an SVG of a pelican on a bicycle.
And the fact that it's flowers creates a pretty nice mental model for it! One can plant seeds and cultivate the plants that grow from them but ultimately aren't in complete control of the outcome.
Are they trained roughly like this? Or is it an LLM conditioned on image? Or on diffusion latents from a model trained to emit SVG-compatible imagery?