Patent ID: 11935214
Assignee: BAIDU USA LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. A non-transitory computer-readable medium or media comprising one or more sequences of instructions which, when executed by at least one processor, causes steps comprising:
splitting an input video into a set of video sequences, which comprise one or more video frames;
generating one or more object masks, which represent one or more areas comprising an object or objects targeted to be removed and inpainted in the video sequences;
generating optical flows for each video sequence;
for each video sequence from the set of video sequences:
adaptively training an inpainting model, which has been pretrained, using, as inputs into the inpainting model independent from being input, if at all, into a loss function, masked patch samples, in which patch samples were selected from the video sequence using at least some of the optical flows to obtain an updated inpainting model; and
using the updated inpainting model to modify the video sequence to inpaint at least part of the video sequence; and

outputting a final modified version of the input video comprising the modified video sequences.