All Projects → ShusenTang → FontRNN

ShusenTang / FontRNN

Licence: Apache-2.0 license
Implementation of FontRNN [Computer Graphics Forum, 2019].

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to FontRNN

transformer
A PyTorch Implementation of "Attention Is All You Need"
Stars: ✭ 28 (+3.7%)
Mutual labels:  seq2seq
papers
Summarizing the papers I have read (Japanese)
Stars: ✭ 38 (+40.74%)
Mutual labels:  computer-graphics
PARE
Code for ICCV2021 paper PARE: Part Attention Regressor for 3D Human Body Estimation
Stars: ✭ 222 (+722.22%)
Mutual labels:  computer-graphics
colidr
Coherent Line Drawing implementation in Go.
Stars: ✭ 52 (+92.59%)
Mutual labels:  computer-graphics
WebGL-Billiards
ThreeJS based 8-ball pool
Stars: ✭ 28 (+3.7%)
Mutual labels:  computer-graphics
glText
Cross-platform single header text rendering library for OpenGL
Stars: ✭ 93 (+244.44%)
Mutual labels:  computer-graphics
minimal-nmt
A minimal nmt example to serve as an seq2seq+attention reference.
Stars: ✭ 36 (+33.33%)
Mutual labels:  seq2seq
Conversational-AI-Chatbot-using-Practical-Seq2Seq
A simple open domain generative based chatbot based on Recurrent Neural Networks
Stars: ✭ 17 (-37.04%)
Mutual labels:  seq2seq
Shakespearizing-Modern-English
Code for "Jhamtani H.*, Gangal V.*, Hovy E. and Nyberg E. Shakespearizing Modern Language Using Copy-Enriched Sequence to Sequence Models" Workshop on Stylistic Variation, EMNLP 2017
Stars: ✭ 64 (+137.04%)
Mutual labels:  seq2seq
rasterator
Real-time software rasterizer written in C++ with windowing and model loading support.
Stars: ✭ 15 (-44.44%)
Mutual labels:  computer-graphics
CubbyFlow
Voxel-based fluid simulation engine for computer games
Stars: ✭ 215 (+696.3%)
Mutual labels:  computer-graphics
A-Persona-Based-Neural-Conversation-Model
No description or website provided.
Stars: ✭ 22 (-18.52%)
Mutual labels:  seq2seq
GX-EncinoWaves
Graphics Experiment - FFT Ocean Water Simulation
Stars: ✭ 34 (+25.93%)
Mutual labels:  computer-graphics
chatbot
kbqa task-oriented qa seq2seq ir neo4j jena seq2seq tf chatbot chat
Stars: ✭ 32 (+18.52%)
Mutual labels:  seq2seq
deep-keyphrase
seq2seq based keyphrase generation model sets, including copyrnn copycnn and copytransfomer
Stars: ✭ 51 (+88.89%)
Mutual labels:  seq2seq
keras-chatbot-web-api
Simple keras chat bot using seq2seq model with Flask serving web
Stars: ✭ 51 (+88.89%)
Mutual labels:  seq2seq
YodaSpeak
Translating English to Yoda English using Sequence-to-Sequence with Tensorflow.
Stars: ✭ 25 (-7.41%)
Mutual labels:  seq2seq
Nuts
自然语言处理常见任务(主要包括文本分类,序列标注,自动问答等)解决方案试验田
Stars: ✭ 21 (-22.22%)
Mutual labels:  seq2seq
computer-graphics-from-scratch-Notes
my notes of reading the book <computer-graphics-from-scratch>
Stars: ✭ 31 (+14.81%)
Mutual labels:  computer-graphics
DeepLearning-Lab
Code lab for deep learning. Including rnn,seq2seq,word2vec,cross entropy,bidirectional rnn,convolution operation,pooling operation,InceptionV3,transfer learning.
Stars: ✭ 83 (+207.41%)
Mutual labels:  seq2seq

FontRNN

This repository contains the implementation in tensorflow of FontRNN described in our paper FontRNN: Generating Large-scale Chinese Fonts via Recurrent Neural Network(Computer Graphics Forum, 2019).

Overview of Paper

Despite the recent impressive development of deep neural networks, using deep learning based methods to generate large-scale Chinese fonts is still a rather challenging task due to the huge number of intricate Chinese glyphs, e.g., the official standard Chinese charset GB18030-2000 consists of 27,533 Chinese characters. Until now, most existing models for this task adopt Convolutional Neural Networks (CNNs) to generate bitmap images of Chinese characters due to CNN based models’ remarkable success in various application fields. However, CNN based models focus more on image-level features while usually ignore stroke order information when writing characters. Instead, we treat Chinese characters as sequences of points (i.e., writing trajectories) and propose to handle this task via an effective Recurrent Neural Network (RNN) model with monotonic attention mechanism, which can learn from as few as hundreds of training samples and then synthesize glyphs for remaining thousands of characters with the same style. Experiments show that our proposed FontRNN can be used for synthesizing large-scale Chinese fonts as well as generating realistic Chinese handwritings efficiently.

Quickstart

code

The code of FontRNN that contains model defination (model.py), training script (train.py) and testing jupyter notebook (test.ipynb).

Some scripts are borrowed from Sketch-RNN.

training example:

CUDA_VISIBLE_DEVICES=0 python train.py -hparams="log_root=../log/demo, batch_size=128, attention_method=LM"

testing:

Make sure training was done before testing. We've provided a simple jupyter notebook (test.ipynb) to show you how to load a trained model and generate the generate results.

data

For copyright reasons, we only provide one font data (FZTLJW.npz) for research (commercial use prohibited), that contains three parts of train, validation and test sets. The train set contains 775 samples described in paper, the remaining samples are randomly divided into validation and test sets.

Requirements

  • python=3.6
  • tensorflow-gpu=1.11.0
  • tensorboard

Citation

If you use this code or data in your research, please cite us as follows:

@inproceedings{tang2019fontrnn,
  title={FontRNN: Generating Large-scale Chinese Fonts via Recurrent Neural Network},
  author={Tang, Shusen and Xia, Zeqing and Lian, Zhouhui and Tang, Yingmin and Xiao, Jianguo},
  booktitle={Computer Graphics Forum},
  volume={38},
  number={7},
  pages={567--577},
  year={2019},
  organization={Wiley Online Library}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].