Menu

My logo heals itself. Then I erased it into a stick.
πŸ“°

My logo heals itself. Then I erased it into a stick.

DEV Community: javascriptΒ·Gleb RosevΒ·8 days ago
#1tlbyJZA
#devtojavascript#devto#dev#model#stick
Reading 0:00
15s threshold

This week I erased my own logo down to a thin strip and waited for it to heal.

It thought about it for a while. Then it turned into a stick. Not a G, not an R. A long horizontal stick, and it stayed a stick forever.

That was awkward, because the whole point of this logo is that it heals.

What this thing is

On rossev.dev there's a "GR" monogram that nobody drew. It grows from a single pixel. Drag your cursor across it and it grows back.

Under the hood it's a neural cellular automaton, after Mordvintsev et al., Distill 2020 . I reimplemented it from scratch in PyTorch. The short version:

56Γ—56 grid, and every cell holds 16 numbers: RGBA plus 12 hidden channels the network invents a use for.

Each step, a cell looks at its 3Γ—3 neighbours through identity and Sobel filters, and a tiny network (48 β†’ 128 β†’ 16) decides how to change it.

Only a random half of the cells update on each step, and cells with no living neighbour die.

That's 8,320 parameters .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.