Giter VIP home page Giter VIP logo

deepaa's Introduction

DeepAA

This is convolutional neural networks generating ASCII art. This repository is under construction.

This work is accepted by NIPS 2017 Workshop, Machine Learning for Creativity and Design The paper: ASCII Art Synthesis with Convolutional Networks

Web application (using previous version model) (by tar-bin)

image sample

Change log

  • 2017/12/2 added light model

Requirements

  • TensorFlow (1.3.0)
  • Keras (2.0.8)
  • NumPy (1.13.3)
  • Pillow (4.2.1)
  • Pandas (0.18.0)
  • Scikit-learn (0.19.0)
  • h5py (2.7.1)
  • model's weight (download it from here and place it in dir model.)
  • training data (additional, download it from here, extract it and place the extracted directory in dir data.) )

How to use

please change the line 15 of output.py

image_path = 'sample images/original images/21 original.png' # put the path of the image that you convert.

into the path of image file that you use. You should use a grayscale line image.

then run output.py . converted images will be output at output/ .

You can select light model by change the line 13, 14 of output.py into

model_path = "model/model_light.json"
weight_path = "model/weight_light.hdf5"

License

The pre-trained models and the other files we have provided are licensed under the MIT License.

deepaa's People

Contributors

osciiart avatar suizman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepaa's Issues

Font?

I was wondering which font would be best for output.
I generated ascii art someting like this:

   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,   
  |                      |    
  |  '|''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|    |   
  |  :|  ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-,,,,   |    |   
  |  :|   |          ]|  |    |   
  |  :|   |          :|  :|    |   
  |  :|   |          :|  :|    |   
  |  :|   |           l|   |    |   
  |  :|   └――――――-┘  |    |   
  |  .|____________,|    |   
   |                      :|   
  |-----------------------------┘

and I think fixed width font is not proper for this.

Weights access on drive

I was trying to download the weights file over google drive and it asked for me to request access. I believe there is a way to set it to not make people request access, but still not be able to edit the file. That will make it so you don't have to give access to anyone who wants to download in the future.

Thanks for the cool program!

deepaa_output.pyを実行時にmodel_from_jsonで実行時例外が発生しますー。

pip でtensorflowとKerasはインストールしましたー。

#スタックトレース

Using TensorFlow backend.
Traceback (most recent call last):
File "C:/Users/(ユーザー名)/Downloads/DeepAA-master/deepaa_output.py", line 24, in
model = model_from_json(json_string)
File "C:\Program Files\Anaconda3\lib\site-packages\keras\models.py", line 325, in model_from_json
return layer_module.deserialize(config, custom_objects=custom_objects)
File "C:\Program Files\Anaconda3\lib\site-packages\keras\layers_init_.py", line 46, in deserialize
printable_module_name='layer')
File "C:\Program Files\Anaconda3\lib\site-packages\keras\utils\generic_utils.py", line 140, in deserialize_keras_object
list(custom_objects.items())))
File "C:\Program Files\Anaconda3\lib\site-packages\keras\engine\topology.py", line 2370, in from_config
process_layer(layer_data)
File "C:\Program Files\Anaconda3\lib\site-packages\keras\engine\topology.py", line 2339, in process_layer
custom_objects=custom_objects)
File "C:\Program Files\Anaconda3\lib\site-packages\keras\layers_init_.py", line 46, in deserialize
printable_module_name='layer')
File "C:\Program Files\Anaconda3\lib\site-packages\keras\utils\generic_utils.py", line 141, in deserialize_keras_object
return cls.from_config(config['config'])
File "C:\Program Files\Anaconda3\lib\site-packages\keras\engine\topology.py", line 1202, in from_config
return cls(**config)
TypeError: init() got an unexpected keyword argument 'input_dtype'

#環境
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
依存ライブラリのバージョン

  • tensorflow (1.0.1)
  • Keras (2.0.1)
  • numpy (1.12.0)
  • Pillow (3.3.1)

It looks very nice

Sorry, I can not understand Japanese language. I think your work looks promising 👍 I've also written some codes trying to achieve the results as Xu did in her article, but what I got is pretty messy as in the following image(70 chars a line) 😥
image
Hope you can write an article explaining the details about how you train the model 😁

Link to training data is actually to the weight.hdf5 file

The bullet point "training data (additional, download it from [here], extract it and place the extracted directory in dir data.) )" in the readme seems like it should link to a training data file but it actually links to the same weights.hdf5 file as in the previous bullet point.

typo

make Ascii Art by Deep Learing

Learing -> Learning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.