Towards Interactive Image Inpainting via Sketch Refinement

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Liu, Chang, Xu, Shunxin, Peng, Jialun, Zhang, Kaidong, Liu, Dong
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916250749239296
author Liu, Chang
Xu, Shunxin
Peng, Jialun
Zhang, Kaidong
Liu, Dong
author_facet Liu, Chang
Xu, Shunxin
Peng, Jialun
Zhang, Kaidong
Liu, Dong
contents One tough problem of image inpainting is to restore complex structures in the corrupted regions. It motivates interactive image inpainting which leverages additional hints, e.g., sketches, to assist the inpainting process. Sketch is simple and intuitive to end users, but meanwhile has free forms with much randomness. Such randomness may confuse the inpainting models, and incur severe artifacts in completed images. To address this problem, we propose a two-stage image inpainting method termed SketchRefiner. In the first stage, we propose using a cross-correlation loss function to robustly calibrate and refine the user-provided sketches in a coarse-to-fine fashion. In the second stage, we learn to extract informative features from the abstracted sketches in the feature space and modulate the inpainting process. We also propose an algorithm to simulate real sketches automatically and build a test protocol with different applications. Experimental results on public datasets demonstrate that SketchRefiner effectively utilizes sketch information and eliminates the artifacts due to the free-form sketches. Our method consistently outperforms the state-of-the-art ones both qualitatively and quantitatively, meanwhile revealing great potential in real-world applications. Our code and dataset are available.
format Preprint
id arxiv_https___arxiv_org_abs_2306_00407
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Towards Interactive Image Inpainting via Sketch Refinement
Liu, Chang
Xu, Shunxin
Peng, Jialun
Zhang, Kaidong
Liu, Dong
Computer Vision and Pattern Recognition
One tough problem of image inpainting is to restore complex structures in the corrupted regions. It motivates interactive image inpainting which leverages additional hints, e.g., sketches, to assist the inpainting process. Sketch is simple and intuitive to end users, but meanwhile has free forms with much randomness. Such randomness may confuse the inpainting models, and incur severe artifacts in completed images. To address this problem, we propose a two-stage image inpainting method termed SketchRefiner. In the first stage, we propose using a cross-correlation loss function to robustly calibrate and refine the user-provided sketches in a coarse-to-fine fashion. In the second stage, we learn to extract informative features from the abstracted sketches in the feature space and modulate the inpainting process. We also propose an algorithm to simulate real sketches automatically and build a test protocol with different applications. Experimental results on public datasets demonstrate that SketchRefiner effectively utilizes sketch information and eliminates the artifacts due to the free-form sketches. Our method consistently outperforms the state-of-the-art ones both qualitatively and quantitatively, meanwhile revealing great potential in real-world applications. Our code and dataset are available.
title Towards Interactive Image Inpainting via Sketch Refinement
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2306.00407