Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated line+README smooth out #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DeepAA
====

This is convolutional neural networks generating ASCII art.
This is convolutional neural network that generates ASCII art from an image.
This repository is under construction.

This work is accepted by [NIPS 2017 Workshop, Machine Learning for Creativity and Design](https://nips2017creativity.github.io/)
Expand All @@ -28,18 +28,18 @@ The paper: [ASCII Art Synthesis with Convolutional Networks](https://nips2017cre
)

## How to use
please change the line 15 of `output.py `
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/ `.
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
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"
Expand Down
4 changes: 2 additions & 2 deletions output.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def pickleload(path):
print("len(char_list)", len(char_list))
# print(char_list.head())
char_list = char_list[char_list['frequency']>=10]
char_list = char_list['char'].as_matrix()
char_list = char_list['char'].to_numpy()

for k, v in enumerate(char_list):
if v==" ":
Expand Down Expand Up @@ -125,4 +125,4 @@ def pickleload(path):

f=open(save_path[:-4] + '.txt', 'w')
f.writelines(text)
f.close()
f.close()