https://github.com/chanind/attr2font
[SIGGRAPH 2020] Attribute2Font: Creating Fonts You Want From Attributes
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org, researchgate.net -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
[SIGGRAPH 2020] Attribute2Font: Creating Fonts You Want From Attributes
Basic Info
- Host: GitHub
- Owner: chanind
- License: other
- Default Branch: master
- Homepage: https://hologerry.github.io/Attr2Font/
- Size: 215 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of hologerry/Attr2Font
Created almost 5 years ago
· Last pushed almost 5 years ago
https://github.com/chanind/Attr2Font/blob/master/
# Attr2Font
## Introduction
This is the official PyTorch implementation of the **Attribute2Font: Creating Fonts You Want From Attributes**.

Paper: [arXiv](https://arxiv.org/abs/2005.07865) | [Research Gate](https://www.researchgate.net/publication/341423467_Attribute2Font_Creating_Fonts_You_Want_From_Attributes/comments)
Supplementary Material: [link](paper/Siggraph2020_Attr2Font_Supplemental_Material.pdf)
Video: [link](img/att2font_demo.mov)
Code: [GitHub](https://github.com/hologerry/Attr2Font)
## Abstract
Font design is now still considered as an exclusive privilege of professional designers, whose creativity is not possessed by existing software systems. Nevertheless, we also notice that most commercial font products are in fact manually designed by following specific requirements on some attributes of glyphs, such as italic, serif, cursive, width, angularity, etc. Inspired by this fact, we propose a novel model, Attribute2Font, to automatically create fonts by synthesizing visually pleasing glyph images according to user-specified attributes and their corresponding values. To the best of our knowledge, our model is the first one in the literature which is capable of generating glyph images in new font styles, instead of retrieving existing fonts, according to given values of specified font attributes. Specifically, Attribute2Font is trained to perform font style transfer between any two fonts conditioned on their attribute values. After training, our model can generate glyph images in accordance with an arbitrary set of font attribute values. Furthermore, a novel unit named Attribute Attention Module is designed to make those generated glyph images better embody the prominent font attributes. Considering that the annotations of font attribute values are extremely expensive to obtain, a semi-supervised learning scheme is also introduced to exploit a large number of unlabeled fonts. Experimental results demonstrate that our model achieves impressive performance on many tasks, such as creating glyph images in new font styles, editing existing fonts, interpolation among different fonts, etc.
## Model Architecture

## Demonstration

## Prerequisites
* Linux
* CPU or NVIDIA GPU + CUDA cuDNN
* Python 3
* PyTorch 1.0+
## Get Started
### Installation
1. Install PyTorch, torchvison and dependencies from [https://pytorch.org](https://pytorch.org)
2. Clone this repo:
```shell
git clone https://github.com/hologerry/Attr2Font
cd Attr2Font
```
3. Download the official pre-trained vgg19 model: [vgg19-dcbb9e9d.pth](https://download.pytorch.org/models/vgg19-dcbb9e9d.pth), and put it under this project root folder
### Datasets
Download the dataset from [PKU Disk](https://disk.pku.edu.cn:443/link/984852AA48580C84B1A63467390DAB69), [Google Drive](https://drive.google.com/open?id=1P2DbNbVw4Q__WcV1YdzE7zsDKilmd3pO) or [MEGA](https://mega.nz/file/zoYmyIxZ#1DqZjgu21AAJ1nenruYQPo2cS0Xjw4dINAjj3iTmfr8) and put it into the `data/`:
```
data/
explor_all/
image/
attributes.txt/
```
| This dataset is constructed by ODonovan et al. *Exploratory Font Selection Using Crowdsourced Attributes*. TOG 2014
### Model Training
```
python main.py --phase train
```
### Model Testing
```
python main.py --phase test
```
### Model Interpolation
```
python main.py --phase test_interp --test_epoch EPOCH
```
## Citation:
If you use this code or find our work is helpful, please consider citing our work:
```
@article{WangSIGGRAPH2020,
author = {Yizhi Wang*, Yue Gao*, Zhouhui Lian},
title = {Attribute2Font: Creating Fonts You Want From Attributes},
journal = {ACM Trans. Graph.},
year = {2020}
}
```
| * Denotes equal contribution
## Copyright
The code and dataset are only allowed for PERSONAL and ACADEMIC usage.
Owner
- Name: David Chanin
- Login: chanind
- Kind: user
- Location: London, UK
- Company: UCL
- Website: https://chanind.github.io
- Repositories: 97
- Profile: https://github.com/chanind