Dilating object masks to reduce artifacts during inpainting

Fecha de publicación: --
Fuente: Wipo "digitalization"
A computer-implemented method, which reduces artifacts during inpainting, comprises: providing, for display within a graphical user interface of a client device, a digital image 3204 displaying a plurality of objects 3206a 3202, 3205b; generating, using a segmentation neural network and without user input, object masks for objects of the plurality of objects; generating an expanded object mask by expanding the object mask 3212, deleting the expanded object mask; and inpainting a hole corresponding to the expanded object mask using an inpainting neural network. Identifying an object 3206 to remove from the digital image may be carried out by user selection or may comprise classifying the object as a distracting object using a distractor detection neural network. Smart mask dilation may be achieved by expanding the object mask into areas not occupied by other object masks or by reducing expansion over foreground relative to expansion of the background. The system may involve detecting 3214 and deleting a region of other object overlap 3216 of the expanded object mask 3218. Shadow removal using a shadow detection neural network may be employed. Pixel expansion amounts may be predefined.