kubric icon indicating copy to clipboard operation
kubric copied to clipboard

Include script / notebook for generating visualizations / animated GIFs

Open Qwlouse opened this issue 4 years ago • 2 comments

Qwlouse avatar Jun 07 '21 17:06 Qwlouse

@Qwlouse note this goes quite nicely as a (final) follow-up to the edits in: https://github.com/google-research/kubric/pull/103

More specifically contributing a new example/metadata.py and the corresponding docs/source/3_metadata.rst?

taiya avatar Jun 07 '21 23:06 taiya

I don't see any example/metadata.py in any of the public branches.

I'm currently using this simple bash script to create a stitch similar to the one in the readme. concat

#!/bin/bash -ex

DELAY=20

for i in $(ls output/pics/rgba_* | grep rgba_ | cut -d_ -f2 | cut -d. -f1); do
        montage -font DejaVu-Sans-Mono -label %t -tile 4x2 -geometry 333x333 output/pics/*_$i.png output/pics/concat_$i.png
done

for gif in rgba segmentation depth backward forward normal object concat; do
        convert -delay $DELAY -loop 0 output/pics/${gif}*.png output/${gif}.gif
done

I'd like to make the RGBA bigger (like in the readme) but I don't know how to do that with just convert and montage.

I'd be interested in the script used to generate that readme gif; I suppose it's some function calling the kubric.plotting submodule, but I don't see the main function anywhere.

gabriel-v avatar May 03 '22 11:05 gabriel-v