Research
HN
Training AI to Paint with Code
TLDR
A researcher fine-tuned Qwen to generate painting-style Python code that produces visual art when executed, training on a dataset of code-as-art examples. Reinforcement learning from visual feedback was used to improve output quality. The resulting model generates code that, when run, produces images with a painterly aesthetic.