This paper presents a new synthesis-based approach for batch image processing. Unlike existing tools that can only apply global edits to the entire image, our method can apply fine-grained edits to individual objects within the image. For example, our method can selectively blur or crop specific objects that have a certain property. To facilitate such fine-grained image editing tasks, we propose a neuro-symbolic domain-specific language (DSL) that combines pre-trained neural networks for image classification with other language constructs that enable symbolic reasoning. Our method can automatically learn programs in this DSL from user demonstrations by utilizing a novel synthesis algorithm. We have implemented the proposed technique in a tool called ImageEye and evaluated it on 50 image editing tasks. Our evaluation shows that ImageEye is able to automate 96% of these tasks.
翻译:本文提出了一种基于程序合成的新方法用于批量图像处理。与现有工具仅能对整张图像应用全局编辑不同,我们的方法能够对图像中的单个对象进行精细编辑。例如,该方法可选择性地模糊或裁剪具有特定属性的对象。为了实现这种细粒度图像编辑任务,我们提出了一种神经符号领域特定语言(DSL),该语言将用于图像分类的预训练神经网络与支持符号推理的其他语言构造相结合。我们的方法可通过用户演示,利用一种新型合成算法自动学习该DSL中的程序。我们将所提出的技术实现为名为ImageEye的工具,并在50个图像编辑任务上进行了评估。评估结果表明,ImageEye能够自动化完成其中96%的任务。