Zooming into a pixel: the simulated demo

A car on a highway interchange, about 20 pixels long in the recording, followed through six seconds and enlarged four times by two networks: the compact one that runs on the TPUle, and the large RRDBNet for comparison. Simulated: no board was involved. The compact network's output here is computed on the host by the integer reference model, which gives the bytes the unit has to return. RRDBNet's is computed the same way, by its integer model; the program that runs it on the unit is not written yet.

At the clip's speed, 30 frames a second. From the left: the scene with the tracked window; the view as recorded (32 x 26 pixels, cut at whole pixels); the view enlarged by bicubic interpolation; by the compact network; by RRDBNet. The enlarged views are stabilised on the car's front: it stays in place while the road moves past.

The two networks side by side

Bicubic interpolation, the compact network, RRDBNet; each frame shown four times.

Slower

The same frames, each shown four times.

What is shown

Making it again

make -C ../demo fetch                     # the clip (Wikimedia Commons) and the float weights (Real-ESRGAN), once
make -C ../demo prep                      # the clip tracked, the windows, the network, the references
make -C ../demo prep-rrdb                 # the second model on the windows (64 MB of weights; some 20 minutes)
python3 make.py                          # zoom.mp4, zoom_slow.mp4, poster.jpg