Random Bézier Walk in a Random Neural Network

The video above was generated using neuralart.

The neural network takes position coordinates, distance to origin, and a vector z as inputs, and outputs a corresponding pixel intensity. The weights are randomly initialized. This configuration is described in more detail in the following blog posts and pages from studio otoro.

The video frames are generated by transitioning the z input. In an earlier experiment, I tried varying z by transitioning along a straight line. The corresponding video is included in an earlier post. I also tried using a random walk, but found that there was too much back-and-forth motion this way.

The video above transitions z by walking along randomly generated cubic Bézier curves. The curves are connected, and the first handle of each curve has the same slope as the last handle of the preceding curve, in order to achieve smooth transitions across curves. Binary search is used so that the distance of each step along the curve is approximately fixed.

Here’s the source code.

This entry was tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *