From 17f031356a6fa0ae4d7c7068d34deaececd0ff76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=93=D1=83?= =?UTF-8?q?=D1=80=D1=8C=D0=B5=D0=B2=20=7C=20Eugene=20Gourieff=20=7C=20?= =?UTF-8?q?=E5=8F=A4=E4=BB=81?= Date: Mon, 23 Sep 2024 14:57:17 +0700 Subject: [PATCH] FIX: Shape check False by default --- scripts/reactor_api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/reactor_api.py b/scripts/reactor_api.py index 13108c2..d9e6853 100644 --- a/scripts/reactor_api.py +++ b/scripts/reactor_api.py @@ -192,10 +192,9 @@ def reactor_api(_: gr.Blocks, app: FastAPI): source_images: list[str] = Body([""],title="Source Face Image List"), name: str = Body("",title="Face Model Name"), compute_method: int = Body(0,title="Compute Method (Mean, Median, Mode)"), - shape_check: bool = Body(False,title="Check Embedding Shape"), ): images = [api.decode_base64_to_image(img) for img in source_images] - blend_faces(images, name, compute_method, shape_check, is_api=True) + blend_faces(images, name, compute_method, False, is_api=True) return {"facemodels": [os.path.split(model)[1].split(".")[0] for model in get_facemodels()]} try: