FIX: Shape check False by default

This commit is contained in:
Евгений Гурьев | Eugene Gourieff | 古仁 2024-09-23 14:57:17 +07:00
parent 58ddc725db
commit 17f031356a

View File

@ -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: