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%的任务。