mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
refactor(api): remove face restoration endpoints and parameters
- Remove /sdapi/v1/face-restorers route from api.py - Remove get_restorers() function from endpoints.py - Remove gfpgan_visibility, codeformer_visibility, codeformer_weight fields from ReqProcess model - Remove GFPGAN and CodeFormer entries from run_extras() signature and create_args_for_run dict in postprocessing.py
This commit is contained in:
@@ -48,9 +48,6 @@ def get_controlnets(model_type: Optional[str] = None):
|
||||
from modules.control.units.controlnet import api_list_models
|
||||
return api_list_models(model_type)
|
||||
|
||||
def get_restorers():
|
||||
return [{"name":x.name(), "path": getattr(x, "cmd_dir", None)} for x in shared.face_restorers]
|
||||
|
||||
def get_detailers():
|
||||
shared.yolo.enumerate()
|
||||
return [{"name": k, "path": v} for k, v in shared.yolo.list.items()]
|
||||
|
||||
Reference in New Issue
Block a user