TG-Net: Reconstruct visual wood texture with semantic attention

Abstract Defects, which arise during the growth and processing of the wood, affect the visual and mechanical properties. To improve the utilization of wood with defects, we propose an image inpainting method that reconstructs the texture at defects. The result of image inpainting is visually very consistent with the surrounding healthy board. According to the result, as an application, the plate that is most similar to the surrounding texture could be matched to fill the missing position due to the removal of defects. First, the image inpainting is divided into two stages: coarse inpainting and detailed inpainting. The coarse generator quickly generates the prediction result of the missing area, and the result is fed to the detailed generator to produce a more refined image. Then, the skip connection is applied to the classical Encoder-Decoder in order to solve the problem of information loss due to upsampling. Next, the attention block is introduced in the detailed generator to pay more attention to the meaningful semantics. Finally, normalizing missing and known regions together would result in a bias in the mean and standard deviation, so Partition Normalization was used instead of Batch Normalization. The feature map is divided into two parts, foreground and background, and the two parts are normalized separately. The experimental results show that the results of image inpainting are still high precision with less time spent on the training network. Code, demo and models are available at: https://github.com/NEFUJoeyChen/TG-Net .

[1]  Zongben Xu,et al.  Image Inpainting by Patch Propagation Using Patch Sparsity , 2010, IEEE Transactions on Image Processing.

[2]  David Tschumperlé,et al.  Exemplar-Based Inpainting: Technical Review and New Heuristics for Better Geometric Reconstructions , 2015, IEEE Transactions on Image Processing.

[3]  Christine Guillemot,et al.  Examplar-based inpainting based on local geometry , 2011, 2011 18th IEEE International Conference on Image Processing.

[4]  Derek Nowrouzezahrai,et al.  Learning hatching for pen-and-ink illustration of surfaces , 2012, TOGS.

[5]  Holly E. Rushmeier,et al.  Dominant Texture and Diffusion Distance Manifolds , 2009, Comput. Graph. Forum.

[6]  Alexei A. Efros,et al.  Context Encoders: Feature Learning by Inpainting , 2016, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[7]  Tim Weyrich,et al.  Texture Stationarization: Turning Photos into Tileable Textures , 2017, Comput. Graph. Forum.

[8]  Eli Shechtman,et al.  Image melding , 2012, ACM Trans. Graph..

[9]  Aaron C. Courville,et al.  Improved Training of Wasserstein GANs , 2017, NIPS.

[10]  Mohammad Shorif Uddin,et al.  Image Quality Assessment through FSIM, SSIM, MSE and PSNR—A Comparative Study , 2019, Journal of Computer and Communications.

[11]  Adam Finkelstein,et al.  PatchMatch: a randomized correspondence algorithm for structural image editing , 2009, SIGGRAPH 2009.

[12]  Jong Chul Ye,et al.  Annihilating Filter-Based Low-Rank Hankel Matrix Approach for Image Inpainting , 2015, IEEE Transactions on Image Processing.

[13]  Thomas Brox,et al.  U-Net: Convolutional Networks for Biomedical Image Segmentation , 2015, MICCAI.

[14]  Young J. Kim,et al.  Interactive generalized penetration depth computation for rigid and articulated models using object norm , 2014, ACM Trans. Graph..

[15]  Thomas S. Huang,et al.  Free-Form Image Inpainting With Gated Convolution , 2018, 2019 IEEE/CVF International Conference on Computer Vision (ICCV).

[16]  Hiroshi Ishikawa,et al.  Globally and locally consistent image completion , 2017, ACM Trans. Graph..

[17]  Léon Bottou,et al.  Wasserstein Generative Adversarial Networks , 2017, ICML.

[18]  Narendra Ahuja,et al.  Image completion using planar structure guidance , 2014, ACM Trans. Graph..

[19]  Ting-Chun Wang,et al.  Image Inpainting for Irregular Holes Using Partial Convolutions , 2018, ECCV.

[20]  Thomas S. Huang,et al.  Generative Image Inpainting with Contextual Attention , 2018, 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition.

[21]  Jianjie Lu,et al.  Visualized Insights into the Optimization Landscape of Fully Convolutional Networks , 2019, ArXiv.

[22]  Hans-Peter Seidel,et al.  Design and volume optimization of space structures , 2017, ACM Trans. Graph..