Skip to content

[SIGGRAPH Asia'24] Hyperstroke: A Novel High-quality Stroke Representation for Assistive Artistic Drawing

License

Notifications You must be signed in to change notification settings

JeffersonQin/Hyperstroke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperstroke: A Novel High-quality Stroke Representation for Assistive Artistic Drawing



Haoyun Qin, Jian Lin, Hanyuan Liu, Xueting Liu, Chengze Li
SIGGRAPH Asia 2024


🔆 Introduction

Assistive drawing aims to facilitate the creative process by providing intelligent guidance to artists. Existing solutions often fail to effectively model intricate stroke details or adequately address the temporal aspects of drawing. We introduce hyperstroke, a novel stroke representation designed to capture precise fine stroke details, including RGB appearance and alpha-channel opacity. Using a Vector Quantization approach, hyperstroke learns compact tokenized representations of strokes from real-life drawing videos of artistic drawing. With hyperstroke, we propose to model assistive drawing via a transformer-based architecture, to enable intuitive and user-friendly drawing applications, which are experimented in our exploratory evaluation.

🌈 Representation Showcase

We demonstrate the effectiveness of our hyperstroke representation on both real-life timelapse drawing data and synthetic dataset.

Hyperstroke model result on real-life timelapse drawing data. For each group, the four rows from the top to the bottom stand for the previous frame, the latter frame, the predicted strokes between the two frames, and finally the blended result of the predicted strokes onto the initial frames.

Hyperstroke model result on synthetic dataset. For each group, the five rows from the top to the bottom stand for the original cropped illustration, the generated ground truth stroke images, the blended illustration by the ground truth, the predicted strokes between the two frames, and finally the blended result of the predicted strokes.

🌈 Autoregressive Generation Showcase

Our generation model is trained and evaluated on the QuickDraw dataset.

Results on assistive sketch generation from blank canvas, conditioned on seen text categories.

Results on assistive sketch generation, conditioned the raster canvas images and seen text categories.

⚙️ Setup

conda create -n hyperstroke python=3.10
conda activate hyperstroke
pip install -r requirements.txt

💫 Inference

Example Script

To test Quickdraw generation, run the following command:

python inference/generation.py

To test VQ stroke reconstruction, run the following command:

python inference/representation.py

Gradio Demo

Coming soon.

😉 Citation

@incollection{qin2024hyperstroke,
  title={Hyperstroke: A Novel High-quality Stroke Representation for Assistive Artistic Drawing},
  author={Qin, Haoyun and Lin, Jian and Liu, Hanyuan and Liu, Xueting and Li, Chengze},
  booktitle={SIGGRAPH Asia 2024 Technical Communications},
  pages={1--4},
  year={2024}
}

About

[SIGGRAPH Asia'24] Hyperstroke: A Novel High-quality Stroke Representation for Assistive Artistic Drawing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages