add /detailers api endpoint

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2025-12-06 12:33:52 +01:00
parent 1cfb61809f
commit 7bd04e0b5c
7 changed files with 19 additions and 9 deletions
+2
View File
@@ -102,6 +102,8 @@ def setup_model(dirname):
gfpgan_constructor = gfpgan.GFPGANer
class FaceRestorerGFPGAN(modules.detailer.Detailer):
cmd_dir = model_path
def name(self):
return "GFPGAN"
+1
View File
@@ -48,6 +48,7 @@ class YoloRestorer(Detailer):
self.models = {} # cache loaded models
self.list = {}
self.ui_mode = True
self.cmd_dir = shared.opts.yolo_dir
self.enumerate()
def name(self):