MCPcopy Create free account
hub / github.com/RichardErkhov/FastFaceSwap / PluginCodeformer

Class PluginCodeformer

plugins/plugin_codeformer.py:33–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 pass
32
33class PluginCodeformer(ChainImgPlugin):
34 def init_plugin(self):
35 import plugins.codeformer_app_cv2
36 pass
37
38 def process(self, img, params:dict):
39 # params can be used to transfer some img info to next processors
40 from plugins.codeformer_app_cv2 import inference_app
41 options = self.core.plugin_options(modname)
42
43 image = inference_app(img, options.get("background_enhance"), options.get("face_upsample"),
44 options.get("upscale"), options.get("codeformer_fidelity"),
45 options.get("skip_if_no_face"))
46
47 return image
48
49
50

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected