You're looking at a specific version of this model. Jump to the model overview.

zsxkib /keep:51d5aa9f

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
input_video
string
Input video file
draw_box
boolean
False
Draw box around detected faces
bg_enhancement
boolean
False
Enable background enhancement using RealESRGAN
upscale
integer
1

Min: 1

Upscaling factor for enhancement (RealESRGAN)
max_length
integer
20

Min: 1

Maximum number of frames to process in one batch for KEEP model
has_aligned
boolean
False
Set to true if faces in the video are already aligned and cropped (512x512)
only_center_face
boolean
True
Process only the center face if multiple faces are detected
detection_model
string (enum)
retinaface_resnet50

Options:

retinaface_resnet50, retinaface_mobile0.25, yolov5n, yolov5l

Face detection model to use
face_upsample
boolean
False
Upsample restored faces using RealESRGAN
bg_tile
integer
400

Min: 64

Tile size for background upsampler (RealESRGAN)
save_video_fps
number
FPS for the output video. If None, uses original FPS.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}