arXiv(opens in a new tab)Computer ScienceAug 2023

Manuscript Offprint

arXiv:2308.14191

SketchDreamer: Interactive Text-Augmented Creative Sketch Ideation

Zhiyu Qu, Tao Xiang, Yi-Zhe Song

Abstract

Artificial Intelligence Generated Content (AIGC) has shown remarkable progress in generating realistic images. However, in this paper, we take a step “backward” and address AIGC for the most rudimentary visual modality of human sketches. Our objective is on the creative nature of sketches, and that creative sketching should take the form of an interactive process. We further enable text to drive the sketch ideation process, allowing creativity to be freely defined, while simultaneously tackling the challenge of “I can’t sketch”. We present a method to generate controlled sketches using a text-conditioned diffusion model trained on pixel representations of images. Our proposed approach, referred to as SketchDreamer, integrates a differentiable rasteriser of Bézier curves that optimises an initial input to distil abstract semantic knowledge from a pretrained diffusion model. We utilise Score Distillation Sampling to learn a sketch that aligns with a given caption, which importantly enable both text and sketch to interact with the ideation process. Our objective is to empower non-professional users to create sketches and, through a series of optimisation processes, transform a narrative into a storyboard by expanding the text prompt while making minor adjustments to the sketch input. Through this work, we hope to aspire the way we create visual content, democratise the creative process, and inspire further research in enhancing human creativity in AIGC. The code is available at https://github.com/WinKawaks/SketchDreamer.

1 Introduction

Artificial Intelligence Generated Content (AIGC) has been making tremendous progress [Saharia et al.(2022b)Saharia, Chan, Saxena, Li, Whang, Denton, Ghasemipour, Gontijo Lopes, Karagol Ayan, Salimans, et al., Ramesh et al.(2022)Ramesh, Dhariwal, Nichol, Chu, and Chen, Rombach et al.(2022)Rombach, Blattmann, Lorenz, Esser, and Ommer] in generating high-quality images that are often indistinguishable from real photographs. However, despite this significant advancement, there remains a critical lack of creativity embedded in the AIGC process [Li et al.(2022)Li, Lin, Zhou, Qi, Wang, and Jia, Wang et al.(2022)Wang, Zhang, Zhang, Ouyang, Chen, Chen, and Wen]. In this paper, we aim to tackle this issue by exploring the most fundamental form of visual communication known to humanity since prehistoric times - human sketches [Ha and Eck(2018), Das et al.(2020)Das, Yang, Hospedales, Xiang, and Song, Ge et al.(2021)Ge, Goswami, Zitnick, and Parikh, Pang et al.(2020)Pang, Yang, Hospedales, Xiang, and Song, Das et al.(2021)Das, Yang, Hospedales, Xiang, and Song, Yang et al.(2022a)Yang, Pang, Zhang, and Song]. Sketches are an essential means of conveying ideas, emotions, and information, and their creative nature makes them an ideal candidate for exploring new avenues in AIGC [Voynov et al.(2022)Voynov, Abernan, and Cohen-Or, Mikaeili et al.(2022)Mikaeili, Perel, Cohen-Or, and Mahdavi-Amiri, Zhang and Agrawala(2023)].

{subfigure}

[h]

Figure 1: Generation by single round.

{subfigure}

[h]

Figure 2: Interactive generation by multiple rounds.

Figure 3: (a) Given an initial sketch and a textual prompt, SketchDreamer can generate a new sketch that closely corresponds to the text and initial sketch conditions. (b) By iteratively expanding the text prompt ([…] indicating the previous text prompt) and making minor adjustments such as resizing, relocating or adding new strokes, our model can easily generate a storyboard interactively. It is important to note that all initial sketches used in this paper were selected from QuickDraw [Ha and Eck(2018)], which accurately reflects the average sketching ability of non-professional users.

Existing AIGC approaches, such as DALL-E 2 [Ramesh et al.(2022)Ramesh, Dhariwal, Nichol, Chu, and Chen], Imagen [Saharia et al.(2022b)Saharia, Chan, Saxena, Li, Whang, Denton, Ghasemipour, Gontijo Lopes, Karagol Ayan, Salimans, et al.], and Latent Diffusion [Rombach et al.(2022)Rombach, Blattmann, Lorenz, Esser, and Ommer], which mainly focus on high-quality image generation, have been limited in their ability to capture human creativity in the content creation process. Most recent works in AIGC use a multi-stage approach that allows user edits [Li et al.(2022)Li, Lin, Zhou, Qi, Wang, and Jia, Yang et al.(2022b)Yang, Huang, Song, Hong, Li, Zhang, Cui, Ghanem, and Yang, Lugmayr et al.(2022)Lugmayr, Danelljan, Romero, Yu, Timofte, and Van Gool, Saharia et al.(2022a)Saharia, Chan, Chang, Lee, Ho, Salimans, Fleet, and Norouzi, Wang et al.(2023)Wang, Yu, and Zhang, Zhang et al.(2023)Zhang, Qiu, Lin, Zhang, Shi, Yang, Shi, Yang, Xu, and Yu], but the newly generated content is essentially a new image. However, with sketches, we believe it is possible to capture a truly interactive and procedural creative visual content creation process, where new strokes are added to the previous drawn sketch, instead of producing a new sketch from scratch. This approach mimics the way humans draw and encourages a more interactive and dynamic creative process.

Furthermore, our approach uniquely allows for both text and sketch to inform the creative ideation process, which is crucial in maximally injecting creativity into the sketching process. This is because sketching and text ideation are not mutually exclusive, and our method allows for the two modalities to interact and influence each other in the ideation process. Importantly, this also addresses the “I can’t sketch” problem (see Fig. 3 (a)), thereby democratising the ideation process and enabling novice users to create sketches effortlessly. By allowing for a more interactive and fluid ideation process, we hope to pave the way for a more inclusive and democratised approach to visual content creation, where creativity can be expressed more freely and inclusively (see Fig. 3 (b)).

Closest to our setup would be the very recent work [Jain et al.(2022)Jain, Xie, and Abbeel] on optimising SVG paths using a differentiable rasteriser to generate SVG images aligned with captions. Their reliance on text-only conditional diffusion models [Rombach et al.(2022)Rombach, Blattmann, Lorenz, Esser, and Ommer] however largely limits the creative process and more importantly, it fundamentally lacks the concept of interactive ideation. To address these limitations, we introduce SketchDreamer, a method that generates controllable sketches from text captions based on initial sketches, while freely allowing for consequent ideation prompts via both text and sketch. The effectiveness of our method is demonstrated in Fig. 3.

Following previous works [Li et al.(2020b)Li, Lukáč, Gharbi, and Ragan-Kelley, Frans et al.(2022)Frans, Soros, and Witkowski, Schaldenbrand et al.(2022)Schaldenbrand, Liu, and Oh, Vinker et al.(2022)Vinker, Pajouheshgar, Bo, Bachmann, Bermano, Cohen-Or, Zamir, and Shamir, Jain et al.(2022)Jain, Xie, and Abbeel], we utilise a differentiable Bézier curves renderer to allow for a flexible sketch representation. We further use a score distillation sampling (SDS) loss [Poole et al.(2023)Poole, Jain, Barron, and Mildenhall] to enhance control over sketch generation while preserving coherence with the caption. To empower users to further engage in the creative process, our approach integrates ControlNet [Zhang and Agrawala(2023)], which supports multiple types of extra conditions (e.g, canny edges, HED boundaries, user scribbles, human poses, semantic maps, depths, etc.) to manipulate the diffusion process instead of a text-only conditional diffusion model. The initial sketch serves a dual purpose: it acts as both the default image for the renderer and the scribble condition for ControlNet [Zhang and Agrawala(2023)], providing a more controllable and interactive creative process.

Our contributions are threefold: (i) we introduce the problem of creative sketch ideation in the context of recent approaches in AIGC that lack creativity, (ii) we propose a novel paradigm for interactive sketch generation that enables users to effortlessly create sketches via both text and sketch prompts, and (iii) we demonstrate the effectiveness of our approach through qualitative results and a human study that validates our method.

Figure 4: Various storyboards created by SketchDreamer are shown, with […] indicating the previous text prompt. The initial sketches of the first column are all selected from QuickDraw [Ha and Eck(2018)], which reflects the average sketch ability of non-professional users. Our model provides multiple adjustable settings, such as resizing, relocating, adding new strokes, or setting the initial position manually, allowing users to generate their own unique storyboard by continually expanding the text prompt. The prompts are based on The Adventure of the Dancing Men from The Canon of Sherlock Holmes, The Tortoise and the Hare from Aesop’s Fables and our own imagination, respectively.

References (72)