Code Monkey home page Code Monkey logo

neural_cellular_automata's Introduction

nca - neural cellular automata

normally noise:
gif_0

uniform noise:
gif_1

lower traingular kernel:
gif_2

random noise:
gif_3

description

visualizing nca's in python/jupyter notebook:

  • 256, 256, 3 dim normally distributed tensors with value in range [0, 1] are used as the starting board / playground
  • kernel/convolutional filter of size 3, 3, 3 with values in range [0, 1]
  • activation function is defaulted to sigmoid but can be changed to anything i.e np.tanh ...

random noise example:
random_noise.png

usage

git clone "https://github.com/hashirkz/neural_cellular_automata" <directory to save to e.x /mnt/c/users/<urname>/documents>
code <directory u saved to>
pip3 install -r 'requirements.txt'

# 1. edit the kernel to your preference keeping its dimensions as 3, 3, 3
# 2. edit the starting playground or leave as random noise
# 3. run the notebook and view the gifs in ./gifs

issues

  1. currently not sure why the imgs gradually lose color as they evolve/simulate could be activation function / hyperparameters
  2. imageio.v3 is not working correctly not my fault the gifs produced flicker the first frame of the gif occasionally

neural_cellular_automata's People

Contributors

hashirkz avatar

Watchers

 avatar

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.