facebookresearch / AnimatedDrawings

Code to accompany "A Method for Animating Children's Drawings of the Human Figure"
MIT License
10.59k stars 929 forks source link

When synthesizing gif/videos, increase speed #193

Closed RevelationCollection closed 1 year ago

RevelationCollection commented 1 year ago

image

When testing on the official website at https://sketch.metademolab.com/canvas, the site only takes 2-4 seconds to load after everything is prepared even when switching actions. However, it takes me 10-20 seconds locally.

When executing on a Linux server, I noticed that only 4 CPUs are being used during synthesis. Where can I configure this?

Other than reducing frames in BVH processing, are there any other optimization methods available?

The demo used in local testing is located at: examples/config/mvc/export_mp4_example.yaml BVH: examples/bvh/fair1/jumping.bvh

hjessmith commented 1 year ago

There's no preset way to configure the number of CPUs being used. Feel free to submit a PR if you'd like.

You can try reducing the size of the output animation, and you can try running the code on a more powerful machine.