https://github.com/zavalit/cppn
Compositional pattern-producing network demo
https://github.com/zavalit/cppn
Last synced: 9 months ago
JSON representation
Compositional pattern-producing network demo
- Host: GitHub
- URL: https://github.com/zavalit/cppn
- Owner: zavalit
- Created: 2019-05-19T14:31:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T21:59:12.000Z (over 3 years ago)
- Last Synced: 2023-08-04T14:22:11.065Z (over 2 years ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPPN Demo
[Compositional pattern-producing network](https://en.wikipedia.org/wiki/Compositional_pattern-producing_network) demo
## Installation
just install dependencies first
```
pip install -r requirements.txt
```
## Running
To create a set of abstract images in png format of size 128x128
```
python cppn.py --png
```
if you want any other size provide it as an argument, like
```
python cppn.py --png --size 640
```
and you will get an 640x640 image back
In case you want to play around with density and structure of a generated image then just provide *num_layers* and/or *num_neurons*, like
```
python cppn.py --png --num_neurons 20 --num_layers 20
```
or with a shortcuts:
```
python cppn.py --png -n 20 -l 20
```