In recent years, the field of image inpainting has developed rapidly, learning based approaches show impressive results in the task of filling missing parts in an image. But most deep methods are strongly tied to the resolution of the images on which they were trained. A slight resolution increase leads to serious artifacts and unsatisfactory filling quality. These methods are therefore unsuitable for interactive image processing. In this article, we propose a method that solves the problem of inpainting arbitrary-size images. We also describe a way to better restore texture fragments in the filled area. For this, we propose to use information from neighboring pixels by shifting the original image in four directions. Moreover, this approach can work with existing inpainting models, making them almost resolution independent without the need for retraining. We also created a GIMP plugin that implements our technique. The plugin, code, and model weights are available at https://github.com/a-mos/High_Resolution_Image_Inpainting.
翻译:近年来,图像绘制领域发展迅速,基于学习的方法显示在图像中填充缺失部分的任务中取得了令人印象深刻的成果。 但大多数深层次的方法都与所培训的图像的解析过程紧密相连。 轻微的解析过程导致严重的文物和不满意的填充质量。 因此,这些方法不适合交互式图像处理。 在此篇文章中, 我们提出一种方法来解决绘制任意大小图像的问题。 我们还描述了在填充区域中更好地恢复纹理碎片的方法。 为此, 我们提议使用邻居像素的信息, 将原始图像转换为四个方向。 此外, 这种方法可以与现有的油漆模型合作, 使这些模型几乎能够独立解析, 无需再培训。 我们还创建了一个应用我们技术的 GIMP 插件。 插件、 代码和模型重量可以在 https://github.com/a-mos/high_Oid_Image_Inpainting上查阅。