Painter: Teaching Auto-Regressive Language Models to Draw Sketches

Abstract

Large language models (LLMs) have made tremendous progress in natural language understanding and they have also been successfully adopted in other domains such as computer vision, robotics, reinforcement learning, etc. In this work, we apply LLMs to image generation tasks by directly generating the virtual brush strokes to paint an image. We present Painter, an LLM that can convert user prompts in text description format to sketches by generating the corresponding brush strokes in an auto-regressive way. We construct Painter based on off-the-shelf LLM that is pre-trained on a large text corpus, by fine-tuning it on the new task while preserving language understanding capabilities. We create a dataset of diverse multi-object sketches paired with textual prompts that covers several object types and tasks. Painter can generate sketches from text descriptions, remove objects from canvas, and detect and classify objects in sketches. Although this is an unprecedented pioneering work in using LLMs for auto-regressive image generation, the results are very encouraging.

Cite

Text

Pourreza et al. "Painter: Teaching Auto-Regressive Language Models to Draw Sketches." IEEE/CVF International Conference on Computer Vision Workshops, 2023. doi:10.1109/ICCVW60793.2023.00038

Markdown

[Pourreza et al. "Painter: Teaching Auto-Regressive Language Models to Draw Sketches." IEEE/CVF International Conference on Computer Vision Workshops, 2023.](https://mlanthology.org/iccvw/2023/pourreza2023iccvw-painter/) doi:10.1109/ICCVW60793.2023.00038

BibTeX

@inproceedings{pourreza2023iccvw-painter,
  title     = {{Painter: Teaching Auto-Regressive Language Models to Draw Sketches}},
  author    = {Pourreza, Reza and Bhattacharyya, Apratim and Panchal, Sunny and Lee, Mingu and Madan, Pulkit and Memisevic, Roland},
  booktitle = {IEEE/CVF International Conference on Computer Vision Workshops},
  year      = {2023},
  pages     = {305-314},
  doi       = {10.1109/ICCVW60793.2023.00038},
  url       = {https://mlanthology.org/iccvw/2023/pourreza2023iccvw-painter/}
}