Asciiko

Deep ASCII Art Generator
Alternatives To Asciiko
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Deepaa1,318
2 years ago1March 01, 20181mitPython
make ASCII Art by Deep Learning
Keras Sequential Ascii84
5 years ago1March 19, 20181Jupyter Notebook
ASCII summary for simple sequential models in Keras
Ddx39
7 years agoapache-2.0JavaScript
Deep Learning Dashboard
Tree Extended321145 months ago51August 24, 20221mitTypeScript
NodeJs make a raw text tree representation of a directory's content. It is highly customizable: max-deep, filters by deep level, different charsets...
Asciiko3
5 years agootherPython
Deep ASCII Art Generator
Alternatives To Asciiko
Select To Compare


Alternative Project Comparisons
Readme

asciiko (アス子)


A deep ascii art generator. Work done during MSR Montreal hackathon 2018.

Requirements

  • Python 2/3
  • Install Pytorch, follow this.
  • Install OpenCV2, conda install opencv should work.
  • Ask for permission of using ETL (a Japanese handwritten character recognition dataset) from here, then unzip and put ETL1 or ETL6 inside asciiko/ (we recommend using ETL6, which contains more punctuation marks, they might be helpful for generating ascii arts).

First Time Running

It will take some time if you run the first time, asciiko will preprocess and parse the ETL datasets, save the useful part into .npy files.

To Run

  • In config/config.yaml, enable CUDA if you have access to it, also specify which split of ETL data are you using.
  • To train a model, run python train.py -c config/.
  • To generate ascii strings from an image, modify and run python img2charid.py, it will generate a .json file;
  • To generate ascii strings from a video, run python utils/get_video_frames.py, to get all frames of a video into a folder, then modify and run python img2charid.py, it will generate a .json file.
  • To render the ascii arts, run python char_classifier/renderer.py, with your .json file specified inside.
  • a pretrained model (on ETL6) is provided in saved_models/.

Image Processing

Image processing is an important step before generating ascii arts, and the performance of the latter steps are highly relying on how good the images are processed, i.e., how good the edges are extracted. To our knowledge there's no 'panacea' for all input images/videos, so depending on which specific image or video you are using, sometimes you need to massage your edge detector carefully. Thanks to OpenCV, one can do some standard image processing tricks in one line of python code. We provide code to help tweaking your edge detector in utils/.

Demo

Authors

eric yuan, @oya0306, @penzant

LICENSE

GLWTPL

References

DeepAA

Popular Ascii Projects
Popular Deep Learning Projects
Popular Text Processing Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Deep Learning
Pytorch
Edge
Ascii
Etl
Ascii Art