xaviviro / refacer

Refacer: One-Click Deepfake Multi-Face Swap Tool
MIT License
530 stars 130 forks source link

Add pipeline for image processing - also may solve memory issue #28

Open janvarev opened 1 year ago

janvarev commented 1 year ago

Hi!

It may be good to add pipeline to image processing - for example, to use upscaler/face restorer after img making.

As an example, you can use this stuff: https://github.com/janvarev/chain-img-processor - there are framework, where pipeline stages adjusted as a separate plugins.

I've already implemented codeformer upscale/face restore, so it may be good to implement it in this project too.

There are two options to implement it:

xaviviro commented 1 year ago

That's a great idea, it could have a lot of potential! I really appreciate the suggestion. It occurs to me that I could design it in such a way that more tools could be chained for pre-processing or post-processing.

Thnks!!!

janvarev commented 1 year ago

Just the notice - we increase number of plugins, so if you'll switch to this architecture, plugins for codeformer, gfpgan, gfpganonnx enchancement will be available (from https://github.com/RichardErkhov/Richard-roop ) (gfpganonnx near 10x faster then codeformer)