FIX: Shape check False by default
This commit is contained in:
parent
58ddc725db
commit
17f031356a
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user