MIT License

项目介绍

emreaksan/deepwriting 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 119 个 Star、32 次 Fork。

仓库全名
emreaksan/deepwriting
开源许可证
MIT License
Star 数
119
Fork 数
32
未关闭 Issue
11

README 摘要

DeepWriting Code for DeepWriting: Making Digital Ink Editable via Deep Generative Modeling paper. Implementation of conditional variational RNNs (C-VRNN) fow handwriting synthesis, generation, beautification and editing tasks. Dataset (November 2021) We released json files includeing timestamp information and stroke-based segmentations. We collected data from 94 authors by using IAMOnDB corpus. After discarding…

完整内容见 GitHub 原始 README 或本页 。

常见问题

deepwriting 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 119 个 Star。

deepwriting 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 deepwriting 的源码?

可以直接克隆仓库:git clone https://github.com/emreaksan/deepwriting.git,默认分支为 master;安装与运行步骤见仓库 README。

deepwriting 最近还在维护吗?

仓库最近一次更新为 2023年11月20日,当前有 11 个未关闭 Issue;Star 数为 119,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Code for `DeepWriting: Making Digital Ink Editable via Deep Generative Modeling` paper

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
194
价值分
81
活跃状态
活跃

语言占比

Python

README

DeepWriting

Code for DeepWriting: Making Digital Ink Editable via Deep Generative Modeling paper.

Watch the video

Implementation of conditional variational RNNs (C-VRNN) fow handwriting synthesis, generation, beautification and editing tasks.

Dataset

(November 2021) We released json files includeing timestamp information and stroke-based segmentations.

We collected data from 94 authors by using IAMOnDB corpus. After discarding noisy samples of IAMOnDB, we compiled a dataset of 294 authors, fully segmented. You can download our preprocessed data. For the raw dataset, license and other information, please visit our project page.

The dataset is in compressed .npz format. Strokes, labels and statistics can be accessed by using <key, value> pairs. We split handwriting samples by end-of-characters such that each sample consists of ~300 strokes. Samples are then moved to the origin and represented by using the offset values between consecutive strokes.

For example, you can visualize validation samples with indices 1, 5 and 20 by running

python visualize_hw.py -D ./data/deepwriting_validation.npz -O ./data_images -S 1 5 20

If you use our data, we kindly ask you to cite our work, and also fill IAMOnDB’s registration form and follow their citation requirements since our dataset extends IAMOnDB.

Training Model

  1. Training details and hyper-parameters are defined in config.py.
  2. Download training dataset and copy into data folder. Otherwise, don’t forget to update training_data and validation_data entries in config.py.
  3. Set PYTHONPATH to include source.
export PYTHONPATH=$PYTHONPATH:./source
  1. Run training
python tf_train_hw.py -S <path_to_save_experiment>
  1. If you want to continue training
python tf_train_hw.py -S <path_to_save_experiment> -M <model_folder_name>

Evaluating Model

  1. You can either train a model or download our pretrained model.
  2. You can run
python tf_evaluate_hw.py -S <path_to_save_experiment> -M <model_folder_name> -QL
  1. Evaluation options are defined in tf_evaluate_hw.py globally.

Dependencies

  1. numpy
  2. Tensorflow 1.2+ (not sure if earlier versions work.)
  3. matplotlib
  4. OpenCV (pip install opencv-python is enough)
  5. svgwrite
  6. scikit
  7. sklearn

Missing

We are not planning to release demo interface.

Citation

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

@inproceedings{Aksan:2018:DeepWriting,
	author = {Aksan, Emre and Pece, Fabrizio and Hilliges, Otmar},
	title = {{DeepWriting: Making Digital Ink Editable via Deep Generative Modeling}},
	booktitle = {SIGCHI Conference on Human Factors in Computing Systems},
	series = {CHI '18},
	year = {2018},
	location = {Montr{\'}eal, Canada},
	publisher = {ACM},
	address = {New York, NY, USA},
}

评论

暂无评论