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

jd7h /propainter:e5ea7ae0

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
video
string
Input video
mask
string
Mask for video inpainting. Can be a static image (jpg, png) or a video (avi, mp4).
return_input_video
boolean
False
Return the input video in the output.
resize_ratio
number
1
Resize scale for processing video.
height
integer
-1
Height of the processing video.
width
integer
-1
Width of the processing video.
mask_dilation
integer
4
Mask dilation for video and flow masking.
ref_stride
integer
10
Stride of global reference frames.
neighbor_length
integer
10
Length of local neighboring frames.
subvideo_length
integer
80
Length of sub-video for long video inference.
raft_iter
integer
20
Iterations for RAFT inference.
mode
string (enum)
video_inpainting

Options:

video_inpainting, video_outpainting

Modes: video inpainting / video outpainting. If you want to do video inpainting, you need a mask. For video outpainting, you need to set scale_h and scale_w, and mask is ignored.
scale_h
number
1
Outpainting scale of height for video_outpainting mode.
scale_w
number
1
Outpainting scale of width for video_outpainting mode.
save_fps
integer
24
Frames per second.
fp16
boolean
False
Use fp16 (half precision) during inference. Default: fp32 (single precision).

Output schema

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

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