Matamata-Animator / Matamata

Automatically create lip-synced animations
https://youtu.be/U4W1bv_cai0
72 stars 13 forks source link

Async/parallelize image generation #21

Closed effdotsh closed 3 years ago

effdotsh commented 3 years ago

Video generation can be sped up dramatically if the generation of images in run in parallel.

Yey007 commented 3 years ago

Not sure how useful asyncio/async/await will be but the threading module definitely sounds like it would help here.

effdotsh commented 3 years ago

Currently I'm looking at either asyncio or multiprocessing. From what I've read (and there's a good chance I'm wrong about this) asyncio/mp work much better for pypy. The majority of the time currently comes from image generation but in the future if I want to min-max everything then I might set it up for that.

Yey007 commented 3 years ago

I have no knowledge of PyPy so do whatever you need on that front. However, I don't quite understand what you mean by "min-max" everything.

effdotsh commented 3 years ago

24