Training AI to Paint with Code

(surya.website)

164 points | by Tiberium 1 day ago

14 comments

  • Brendinooo 35 minutes ago
    This is really nice, and it's a good reminder that we're so early with regards to how AI can be used to make art.
  • radarsat1 5 hours ago
    Beautiful.

    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.

    [0] https://proceedings.mlr.press/v80/ganin18a.html

  • lxrogers 3 hours ago
    Really awesome! Been thinking about how to get LLMs to do generative art (yes, the pre-AI definition of generative art). Love to see this approach and results!
  • mskogly 9 hours ago
    Really liked your video presentation, thanks for sharing, especially the part of image generators locking us into a certain context immediately, reducing us to spectators instead of creatives.

    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. :)

  • _boffin_ 1 day ago
    I think this actually might be one of the best ways to train people to use AI. I can see this honing people's prompting abilities and expressiveness, along with constraints and desired outcome.

    Wild the possibilities

  • iambenm 2 hours ago
    It's Genetic Programming via LLM, cool!
  • mysterydip 1 day ago
    Makes me wonder, can any LLMs code in Logo? Could result in some interesting designs.
  • thrance 3 hours ago
    I've been building something similar, but for voxels. It's able to make pretty good models from just Python code (calling into a custom native module written in Rust). Better than I hoped it would, in fact, but it's still not perfect.
  • bombastic311 11 hours ago
    This is really really awesome
  • ACCount37 6 hours ago
    I wonder how the image generation models that generate SVGs work.

    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?

  • accomplishdent 1 day ago
    What is the JavaScript doing?
    • simonw 4 hours ago
      Drawing things with p5.js.
  • 13639366668 2 hours ago
    [flagged]
  • behnamoh 11 hours ago
    [flagged]
    • aflinik 7 hours ago
      Can you post some links to other similar projects you've seen? I'd love to compare different approaches
    • smokel 7 hours ago
      Interesting, tell me more!
    • pelasaco 9 hours ago
      March 2026 · Research, Design, Development.
  • yoloakki 58 minutes ago
    For anyone looking to do this on their own, Datapoint (trydatapoint.com) lets you collect thousands of pairwise human preferences within minutes, and also has a pretty generous data grant for academics.