With well-selected data, homogeneous diffusion inpainting can reconstruct images from sparse data with high quality. While 4K colour images of size 3840 x 2160 can already be inpainted in real time, optimising the known data for applications like image compression remains challenging: Widely used stochastic strategies can take days for a single 4K image. Recently, a first neural approach for this so-called mask optimisation problem offered high speed and good quality for small images. It trains a mask generation network with the help of a neural inpainting surrogate. However, these mask networks can only output masks for the resolution and mask density they were trained for. We solve these problems and enable mask optimisation for high-resolution images through a neuroexplicit coarse-to-fine strategy. Additionally, we improve the training and interpretability of mask networks by including a numerical inpainting solver directly into the network. This allows to generate masks for 4K images in around 0.6 seconds while exceeding the quality of stochastic methods on practically relevant densities. Compared to popular existing approaches, this is an acceleration of up to four orders of magnitude.
翻译:通过精选数据,均匀扩散修复可以从稀疏数据中重建高质量图像。虽然尺寸为3840 x 2160的4K彩色图像已经可以在实时中进行修复,但优化已知数据以进行图像压缩等应用仍然具有挑战性:常用的随机策略可能需要数天来处理单个4K图像。最近,第一个用于称为掩模优化问题的高速、高质量神经网络方法基于神经修复代理训练掩模生成网络。然而,这些掩模网络只能为它们训练的分辨率和掩模密度生成掩模。我们通过神经显式的粗到精策略解决了这些问题,并为高分辨率图像提供掩模优化。此外,我们通过将数值修复求解器直接纳入网络中来提高掩模网络的训练和可解释性。这允许在约0.6秒内为4K图像生成掩模,并在实际密度上超越随机方法的质量。与流行的现有方法相比,这是加速高达四个数量级。