Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Disentangling Writer and Character Styles for Handwriting Generation

About

Training machines to synthesize diverse handwritings is an intriguing task. Recently, RNN-based methods have been proposed to generate stylized online Chinese characters. However, these methods mainly focus on capturing a person's overall writing style, neglecting subtle style inconsistencies between characters written by the same person. For example, while a person's handwriting typically exhibits general uniformity (e.g., glyph slant and aspect ratios), there are still small style variations in finer details (e.g., stroke length and curvature) of characters. In light of this, we propose to disentangle the style representations at both writer and character levels from individual handwritings to synthesize realistic stylized online handwritten characters. Specifically, we present the style-disentangled Transformer (SDT), which employs two complementary contrastive objectives to extract the style commonalities of reference samples and capture the detailed style patterns of each sample, respectively. Extensive experiments on various language scripts demonstrate the effectiveness of SDT. Notably, our empirical findings reveal that the two learned style representations provide information at different frequency magnitudes, underscoring the importance of separate style extraction. Our source code is public at: https://github.com/dailenson/SDT.

Gang Dai, Yifan Zhang, Qingfeng Wang, Qing Du, Zhuliang Yu, Zhuoman Liu, Shuangping Huang• 2023

Related benchmarks

TaskDatasetResultRank
Handwriting generationUWSC (Unseen Writer Same Content) Traditional Chinese 1.0
Content Score (CS)83.54
10
Handwriting generationUWUC (Unseen Writer Unseen Content) Traditional Chinese 1.0
Content Score (CS)81.04
10
Online Chinese handwriting generationChinese dataset CASIA-OLHWDB and ICDAR-2013 (test)
Style Score0.945
6
Handwriting generationUWSC Japanese
Content Score (CS)92.38
6
Handwriting generationJapanese (UWUC)
CS50.57
6
Handwriting generationTUAT Japanese dataset (test)
Style Score41.85
4
Handwriting generationIndic (test)
Content Score97.22
4
Handwriting generationEnglish (test)
Content Score0.8552
4
Handwriting generationTamil
Content Score68.5
3
Showing 9 of 9 rows

Other info

Code

Follow for update