| 31 | pass |
| 32 | |
| 33 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected