Labs · Neural Networks

Neural Network Painter

Neural Network Painter simulation

Curve fitting in 2D with colour. The network learns a function from a pixel's position (x, y) to its colour (r, g, b). Once trained, the whole picture is stored in its weights: a coordinate network, the idea behind NeRF 3D scenes.

Plain networks have a spectral bias: they learn blurry, low-frequency shapes first and struggle with sharp detail. Feeding in Fourier features (sines and cosines of the coordinates at several frequencies) lets them capture sharp edges much faster.

Train the "Rings" target with Fourier features off, then on, and compare the sharpness after the same number of steps.

Controls

Evolved from Neural Network Curve Fitting.