<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">CMC</journal-id>
<journal-id journal-id-type="nlm-ta">CMC</journal-id>
<journal-id journal-id-type="publisher-id">CMC</journal-id>
<journal-title-group>
<journal-title>Computers, Materials &#x0026; Continua</journal-title>
</journal-title-group>
<issn pub-type="epub">1546-2226</issn>
<issn pub-type="ppub">1546-2218</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">17633</article-id>
<article-id pub-id-type="doi">10.32604/cmc.2021.017633</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>UFC-Net with Fully-Connected Layers and Hadamard Identity Skip Connection for Image Inpainting</article-title>
<alt-title alt-title-type="left-running-head">UFC-Net with Fully-Connected Layers and Hadamard Identity Skip Connection for Image Inpainting</alt-title>
<alt-title alt-title-type="right-running-head">UFC-Net with Fully-Connected Layers and Hadamard Identity Skip Connection for Image Inpainting</alt-title>
</title-group>
<contrib-group content-type="authors">
<contrib id="author-1" contrib-type="author">
<name name-style="western">
<surname>Kim</surname>
<given-names>Chung-Il</given-names>
</name>
<xref ref-type="aff" rid="aff-1">1</xref>
</contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western">
<surname>Rew</surname>
<given-names>Jehyeok</given-names>
</name>
<xref ref-type="aff" rid="aff-2">2</xref></contrib>
<contrib id="author-3" contrib-type="author">
<name name-style="western">
<surname>Cho</surname>
<given-names>Yongjang</given-names>
</name>
<xref ref-type="aff" rid="aff-2">2</xref></contrib>
<contrib id="author-4" contrib-type="author" corresp="yes">
<name name-style="western">
<surname>Hwang</surname>
<given-names>Eenjun</given-names>
</name>
<xref ref-type="aff" rid="aff-2">2</xref>
<email>ehwang04@korea.ac.kr</email></contrib>
<aff id="aff-1"><label>1</label><institution>Korea Electronics Technology Institute</institution>, <addr-line>Seongnam, 13488, Korea</addr-line></aff>
<aff id="aff-2"><label>2</label><institution>School of Electrical Engineering, Korea University</institution>, <addr-line>Seoul, 02841, Korea</addr-line></aff>
</contrib-group>
<author-notes><corresp id="cor1">&#x002A;Corresponding Author: Eenjun Hwang. Email: <email>ehwang04@korea.ac.kr</email></corresp></author-notes>
<pub-date pub-type="epub" date-type="pub" iso-8601-date="2021-03-17"><day>17</day><month>03</month><year>2021</year>
</pub-date>
<volume>68</volume>
<issue>3</issue>
<fpage>3447</fpage>
<lpage>3463</lpage>
<history>
<date date-type="received"><day>01</day><month>02</month><year>2021</year></date>
<date date-type="accepted"><day>05</day><month>03</month><year>2021</year></date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2021 Kim et al.</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>Kim et al.</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_CMC_17633.pdf"></self-uri>
<abstract>
<p>Image inpainting is an interesting technique in computer vision and artificial intelligence for plausibly filling in blank areas of an image by referring to their surrounding areas. Although its performance has been improved significantly using diverse convolutional neural network (CNN)-based models, these models have difficulty filling in some erased areas due to the kernel size of the CNN. If the kernel size is too narrow for the blank area, the models cannot consider the entire surrounding area, only partial areas or none at all. This issue leads to typical problems of inpainting, such as pixel reconstruction failure and unintended filling. To alleviate this, in this paper, we propose a novel inpainting model called UFC-net that reinforces two components in U-net. The first component is the latent networks in the middle of U-net to consider the entire surrounding area. The second component is the Hadamard identity skip connection to improve the attention of the inpainting model on the blank areas and reduce computational cost. We performed extensive comparisons with other inpainting models using the Places2 dataset to evaluate the effectiveness of the proposed scheme. We report some of the results.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Image processing</kwd>
<kwd>computer vision</kwd>
<kwd>image inpainting</kwd>
<kwd>image restoration</kwd>
<kwd>generative adversarial nets</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>Image inpainting is one of the image processing techniques used to fill in blank areas of an image based on the surrounding areas. Inpainting can be used in various applications, such as image/video uncropping, rotation, stitching, retargeting, recomposition, compression, super-resolution, and harmonization. Due to its versatility, the importance of image inpainting has been particularly addressed in the fields of computer vision and artificial intelligence [<xref ref-type="bibr" rid="ref-1">1</xref>&#x2013;<xref ref-type="bibr" rid="ref-3">3</xref>].</p>
<p>Traditional image inpainting methods can be classified into two types: diffusion-based and patch-based methods [<xref ref-type="bibr" rid="ref-4">4</xref>&#x2013;<xref ref-type="bibr" rid="ref-9">9</xref>]. Diffusion-based methods use a diffusion process to propagate background data into blank areas [<xref ref-type="bibr" rid="ref-4">4</xref>&#x2013;<xref ref-type="bibr" rid="ref-7">7</xref>]. However, these methods are less effective in handling large blank areas due to their inability to synthesize textures [<xref ref-type="bibr" rid="ref-4">4</xref>]. Patch-based methods fill in blank areas by copying information from similar areas of the image. These methods effectively restore a blank area when its ground truth is a regular and similar pattern. However, they could have difficulty reconstructing an erased area when the ground truth has a complex and irregular pattern [<xref ref-type="bibr" rid="ref-8">8</xref>,<xref ref-type="bibr" rid="ref-9">9</xref>]. As a result, both types of methods have difficulty reconstructing specific patterns, such as natural scenes and urban cityscapes [<xref ref-type="bibr" rid="ref-10">10</xref>].</p>
<p>Recently, deep neural network (DNN)-based methods [<xref ref-type="bibr" rid="ref-11">11</xref>&#x2013;<xref ref-type="bibr" rid="ref-15">15</xref>] have significantly improved image inpainting performance compared to diffusion-based and patch-based methods. Generally, because DNN-based methods fill in the blank areas using learned data distribution, they can produce consistent results for blank areas, which has been almost impossible using traditional methods. Among the DNN-based methods, adapting the generative adversarial network (GAN) has become mainstream for image inpainting [<xref ref-type="bibr" rid="ref-11">11</xref>,<xref ref-type="bibr" rid="ref-16">16</xref>]. The GAN estimates the distribution of training data through adversarial training between a generator and discriminator. Based on this distribution, the GAN reconstructs the blank area realistically in inpainting [<xref ref-type="bibr" rid="ref-11">11</xref>&#x2013;<xref ref-type="bibr" rid="ref-15">15</xref>,<xref ref-type="bibr" rid="ref-17">17</xref>]. Still, this approach often produces unexpected results, such as blurred restorations and unwanted shapes, when the image resolution is high, or the scene is complex [<xref ref-type="bibr" rid="ref-10">10</xref>,<xref ref-type="bibr" rid="ref-11">11</xref>,<xref ref-type="bibr" rid="ref-13">13</xref>].</p>
<p>One plausible approach to solving these shortcomings is to consider spatial support [<xref ref-type="bibr" rid="ref-12">12</xref>]. Spatial support represents the pixel range within the input values necessary to generate one pixel inside blank areas. To fill blank areas effectively, the inpainting model should consider the entire area outside the blank areas. For instance, Iizuka et al. [<xref ref-type="bibr" rid="ref-12">12</xref>] proposed a new inpainting model using dilated convolutions to increase the spatial support from <inline-formula id="ieqn-1"><!--<alternatives><inline-graphic xlink:href="ieqn-1.png"/><tex-math id="tex-ieqn-1"><![CDATA[$99 \times 99$]]></tex-math>--><mml:math id="mml-ieqn-1"><mml:mn>99</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>99</mml:mn></mml:math><!--</alternatives>--></inline-formula> to <inline-formula id="ieqn-2"><!--<alternatives><inline-graphic xlink:href="ieqn-2.png"/><tex-math id="tex-ieqn-2"><![CDATA[$307 \times 307$]]></tex-math>--><mml:math id="mml-ieqn-2"><mml:mn>307</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>307</mml:mn></mml:math><!--</alternatives>--></inline-formula>. As a result, this model exhibits consistent inpainting performance compared to the Context Encoder (CE) [<xref ref-type="bibr" rid="ref-11">11</xref>,<xref ref-type="bibr" rid="ref-12">12</xref>]. Although several inpainting studies have used this model, it lacks spatial support when the blank areas are extensive [<xref ref-type="bibr" rid="ref-12">12</xref>]. Another approach to improving inpainting model performance is to use the skip connection (SC) [<xref ref-type="bibr" rid="ref-18">18</xref>,<xref ref-type="bibr" rid="ref-19">19</xref>]. In such models, the SC connects the previous values of the neural network to the output of the neural network to enhance the effect of the input values on the output. By adding SC to an inpainting model, unwanted shapes can be removed, and the resulting images can be sharper [<xref ref-type="bibr" rid="ref-18">18</xref>]. However, as the previous values of the neural network have both spatial information and information about blank areas, the SC has no significant effect on nonnarrow masks [<xref ref-type="bibr" rid="ref-15">15</xref>]. In addition, as the SC has unnecessary information, using the SC as is for inpainting can be a burden.</p>
<p>In this paper, we propose a new inpainting model called UFC-net using U-net with fully connected (FC) layers and the SC. The proposed model is quite different from other models from two perspectives. First, UFC-net allows full spatial support, which recent inpainting models cannot guarantee [<xref ref-type="bibr" rid="ref-12">12</xref>&#x2013;<xref ref-type="bibr" rid="ref-15">15</xref>]. Second, UFC-net uses the Hadamard identity skip connection (HISC) to reduce the decoder&#x2019;s computational overhead and focus on reconstructing blank areas. We first perform qualitative and quantitative comparisons with recent inpainting models to verify that these two differences improve inpainting performance. Then, we demonstrate through experiments that HISC is more effective than the SC in inpainting.</p>
<p>This paper is organized as follows. Section 2 reviews the related work, and Section 3 describes UFC-net and HISC. Section 4 presents the quantitative and qualitative results by comparing UFC-net with several state-of-the-art models. We also quantitatively and qualitatively compare the inpainting performance of the HISC and SC. Section 5 concludes this paper and highlights some future plans.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Related Work</title>
<p>Three approaches improve the performance of DNN-based inpainting models. The first is to consider spatial support [<xref ref-type="bibr" rid="ref-11">11</xref>,<xref ref-type="bibr" rid="ref-12">12</xref>,<xref ref-type="bibr" rid="ref-14">14</xref>]. The second is to use the SC [<xref ref-type="bibr" rid="ref-18">18</xref>&#x2013;<xref ref-type="bibr" rid="ref-22">22</xref>], and the third is to improve the restoration performance using some additional techniques, such as loss functions [<xref ref-type="bibr" rid="ref-23">23</xref>&#x2013;<xref ref-type="bibr" rid="ref-25">25</xref>], a two-stage model [<xref ref-type="bibr" rid="ref-13">13</xref>,<xref ref-type="bibr" rid="ref-15">15</xref>,<xref ref-type="bibr" rid="ref-23">23</xref>,<xref ref-type="bibr" rid="ref-26">26</xref>], and optional input [<xref ref-type="bibr" rid="ref-15">15</xref>,<xref ref-type="bibr" rid="ref-19">19</xref>]. <xref ref-type="fig" rid="fig-1">Fig. 1</xref> lists various inpainting models according to this classification.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Classification of deep learning-based inpainting models</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-1.png"/>
</fig>
<sec id="s2_1">
<label>2.1</label>
<title>Considering Spatial Support</title>
<p>The CE was the first DNN-based inpainting model to use the GAN [<xref ref-type="bibr" rid="ref-11">11</xref>]. The CE comprises three components: an encoder based on AlexNet [<xref ref-type="bibr" rid="ref-27">27</xref>], a decoder composed of multiple de-convolutional layers [<xref ref-type="bibr" rid="ref-28">28</xref>], and a channel-wise FC layer connecting the encoder and decoder. Although CE can reduce restoration errors, it cannot handle multiple inpainting masks or high-resolution images wider than <inline-formula id="ieqn-3"><!--<alternatives><inline-graphic xlink:href="ieqn-3.png"/><tex-math id="tex-ieqn-3"><![CDATA[$227 \times 227$]]></tex-math>--><mml:math id="mml-ieqn-3"><mml:mn>227</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>227</mml:mn></mml:math><!--</alternatives>--></inline-formula> [<xref ref-type="bibr" rid="ref-12">12</xref>,<xref ref-type="bibr" rid="ref-14">14</xref>].</p>
<p>To mitigate these problems, Iizuka et al. [<xref ref-type="bibr" rid="ref-12">12</xref>] proposed a new model consisting of an encoder, four dilated convolutional layers [<xref ref-type="bibr" rid="ref-29">29</xref>], and a decoder. The encoder downsamples an input image twice, and the decoder up-samples the image to its original size. Due to the dilated convolution, their model considered a wider surrounding area to generate a pixel than the vanilla convolution [<xref ref-type="bibr" rid="ref-30">30</xref>]. They called this spatial support and demonstrated that this could extend the area from <inline-formula id="ieqn-4"><!--<alternatives><inline-graphic xlink:href="ieqn-4.png"/><tex-math id="tex-ieqn-4"><![CDATA[$99 \times 99$]]></tex-math>--><mml:math id="mml-ieqn-4"><mml:mn>99</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>99</mml:mn></mml:math><!--</alternatives>--></inline-formula> to <inline-formula id="ieqn-5"><!--<alternatives><inline-graphic xlink:href="ieqn-5.png"/><tex-math id="tex-ieqn-5"><![CDATA[$307 \times 307$]]></tex-math>--><mml:math id="mml-ieqn-5"><mml:mn>307</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>307</mml:mn></mml:math><!--</alternatives>--></inline-formula>. However, their model was only effective for filling in blank areas using regular masks (25% of the image size in the center) but not for irregular masks with diverse shapes, sizes, and rotations.</p>
<p>Liu et al. [<xref ref-type="bibr" rid="ref-14">14</xref>] applied U-net [<xref ref-type="bibr" rid="ref-20">20</xref>] for both inpainting irregular masks and increasing the region of spatial support. Although their model exhibited more consistent inpainting performance than Iizuka&#x2019;s model or CE, its spatial support was not sufficient for filling in both regular and irregular masks.</p>
</sec>
<sec id="s2_2">
<label>2.2</label>
<title>Skip Connection</title>
<p>The SC has been studied to address three main problems arising from the training of the DNN: the effect of weakening input values, vanishing or exploding gradients, and performance degradation with increasing network depth. The SC was used in U-net to enhance the effects of input values in image segmentation. DenseNet [<xref ref-type="bibr" rid="ref-21">21</xref>] attempts to mitigate both vanishing or exploding gradient problems and weakening input value effects by connecting the output of each layer to the input of every other layer in a feed-forward network. He et al. [<xref ref-type="bibr" rid="ref-22">22</xref>] suggested and implemented a shortcut connection in every block in the model to alleviate degradation when the network depth increases. Boundless [<xref ref-type="bibr" rid="ref-18">18</xref>] and SC-FEGAN [<xref ref-type="bibr" rid="ref-19">19</xref>] used the SC to provide spatial information, improving inpainting performance compared to each model without the SC. However, in [<xref ref-type="bibr" rid="ref-15">15</xref>], the authors suggested that the SC is not effective when blank areas are large.</p>
</sec>
<sec id="s2_3">
<label>2.3</label>
<title>Other Techniques for Improving Inpainting Performance</title>
<p>The extra loss function can be used to improve inpainting performance. For instance, adversarial loss can be used as a reasonable loss function to estimate the distribution and generate plausible samples according to the distribution [<xref ref-type="bibr" rid="ref-11">11</xref>,<xref ref-type="bibr" rid="ref-31">31</xref>]. Following this, adversarial loss has become one of the most important factors in DNN-based inpainting models [<xref ref-type="bibr" rid="ref-12">12</xref>&#x2013;<xref ref-type="bibr" rid="ref-15">15</xref>]. Additionally, several recent studies on inpainting [<xref ref-type="bibr" rid="ref-13">13</xref>,<xref ref-type="bibr" rid="ref-15">15</xref>,<xref ref-type="bibr" rid="ref-23">23</xref>] have attempted to reduce the frequency of undesired shapes that have often occurred in inpainted data by using perceptual loss [<xref ref-type="bibr" rid="ref-24">24</xref>] and style loss [<xref ref-type="bibr" rid="ref-25">25</xref>].</p>
<p>Alternatively, two-stage models have been proposed to improve reconstruction performance [<xref ref-type="bibr" rid="ref-13">13</xref>,<xref ref-type="bibr" rid="ref-15">15</xref>]. In the first stage, the models usually restore blank areas coarsely by training the generator using reconstruction loss. Then, in the second stage, they restore blank areas finely by training another generator using reconstruction loss and adversarial loss. DeepFill v1 [<xref ref-type="bibr" rid="ref-13">13</xref>] is a two-stage inpainting model in which a contextual attention layer is added to the second generator to improve inpainting performance further. The contextual attention layer learns where to borrow or copy feature information from known background patches to generate the blank patches. Yu et al. [<xref ref-type="bibr" rid="ref-15">15</xref>] proposed a gated convolution (GC)-based inpainting model, DeepFill v2, to improve DeepFill v1. This model created soft masks automatically from the input so that the network learns a dynamic feature selection mechanism. In the experiment, DeepFill v2 was superior to Iizuka&#x2019;s model, DeepFill v1, and Liu&#x2019;s model, but some filled areas were still blurry [<xref ref-type="bibr" rid="ref-19">19</xref>].</p>
<p>Nazeri et al. [<xref ref-type="bibr" rid="ref-23">23</xref>] proposed another two-stage inpainting model called EdgeConnect. This model was inspired by a real artist&#x2019;s work. In the first stage, the model draws edges in the given image. In the second stage, blank areas were filled in based on the results of the first stage. Although the model exhibits higher reconstruction performance than Liu&#x2019;s model and Iizuka&#x2019;s model, it often fails to reconstruct a smooth transition [<xref ref-type="bibr" rid="ref-32">32</xref>]. StructureFlow [<xref ref-type="bibr" rid="ref-26">26</xref>] follows the two-stage modeling approach. The first stage reconstructs the edge-preserved smooth images, and the second stage restores the texture in the output of the first stage as the original. StructureFlow is very good at reproducing textures but sometimes fails to generate plausible results [<xref ref-type="bibr" rid="ref-33">33</xref>].</p>
<p>Lastly, inpainting performance can be improved using additional conditions as an input. For instance, DeepFill v2 allows the user to provide sparse sketches selectively as conditional channels inside the mask to obtain more desirable inpainting results [<xref ref-type="bibr" rid="ref-15">15</xref>]. In SC-FEGAN, users can input not only sketches but also color. Both DeepFill v2 and SC-FEGAN are one step closer to interactive image editing [<xref ref-type="bibr" rid="ref-19">19</xref>].</p>
</sec>
</sec>
<sec id="s3">
<label>3</label>
<title>Approach</title>
<p>In this section, we present details of the proposed model, UFC-net, including the discriminator, loss function, and spatial support. We first describe the effects of the FC layers in an inpainting model and then introduce UFC-net in detail. Afterward, we discuss the discriminator and loss function for the training process.</p>
<sec id="s3_1">
<label>3.1</label>
<title>Effects of Fully Connected Layers</title>
<p>Unlike other recent inpainting models, we appended FC layers into the inpainting model to achieve two effects [<xref ref-type="bibr" rid="ref-12">12</xref>&#x2013;<xref ref-type="bibr" rid="ref-15">15</xref>,<xref ref-type="bibr" rid="ref-19">19</xref>]. The first effect is that the model has enough spatial support to account for all input areas, and the second is that the model can provide sharp inpainting results. We explain these two effects in turn.</p>
<p>The FC layer is connected to all areas for the model to account for all surrounding areas. Recent inpainting models [<xref ref-type="bibr" rid="ref-12">12</xref>&#x2013;<xref ref-type="bibr" rid="ref-15">15</xref>], which are composed only of convolutional neural networks (CNNs), cannot consider all input areas. For a more detailed explanation, we demonstrate the difference between the U-net model, which is popularly adopted as an inpainting model [<xref ref-type="bibr" rid="ref-14">14</xref>,<xref ref-type="bibr" rid="ref-19">19</xref>], and the U-net model with FC layers.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>A data sample with a vertex-aligned <inline-formula id="ieqn-6"><!--<alternatives><inline-graphic xlink:href="ieqn-6.png"/><tex-math id="tex-ieqn-6"><![CDATA[$384 \times 384$]]></tex-math>--><mml:math id="mml-ieqn-6"><mml:mn>384</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>384</mml:mn></mml:math><!--</alternatives>--></inline-formula> square mask and the spatial support of each of two given pixels with the data sample in U-net: (a) data sample, (b) spatial support of the center-aligned pixel with the data sample, and (c) spatial support of the top-right pixel with the data sample</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-2.png"/>
</fig>
<p>For example, for the <inline-formula id="ieqn-7"><!--<alternatives><inline-graphic xlink:href="ieqn-7.png"/><tex-math id="tex-ieqn-7"><![CDATA[$512 \times 512$]]></tex-math>--><mml:math id="mml-ieqn-7"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>512</mml:mn></mml:math><!--</alternatives>--></inline-formula> sample image with a <inline-formula id="ieqn-8"><!--<alternatives><inline-graphic xlink:href="ieqn-8.png"/><tex-math id="tex-ieqn-8"><![CDATA[$384 \times 384$]]></tex-math>--><mml:math id="mml-ieqn-8"><mml:mn>384</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>384</mml:mn></mml:math><!--</alternatives>--></inline-formula> area erased in <xref ref-type="fig" rid="fig-2">Fig. 2a</xref>, the images in <xref ref-type="fig" rid="fig-2">Figs. 2b</xref> and <xref ref-type="fig" rid="fig-2">2c</xref> represent two pixels generated by the U-net model and their spatial support with a <inline-formula id="ieqn-9"><!--<alternatives><inline-graphic xlink:href="ieqn-9.png"/><tex-math id="tex-ieqn-9"><![CDATA[$767 \times 767$]]></tex-math>--><mml:math id="mml-ieqn-9"><mml:mn>767</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>767</mml:mn></mml:math><!--</alternatives>--></inline-formula> area.</p>
<p><xref ref-type="fig" rid="fig-2">Fig. 2b</xref> illustrates the case where the spatial support can consider the surrounding area. In contrast, <xref ref-type="fig" rid="fig-2">Fig. 2c</xref> depicts the case where the spatial support cannot consider any surrounding image even though the spatial support is the same size. In this case, the U-net model fills the blank area regardless of the surrounding area because CNN-based models, such as U-net, construct spatial support with the pixel as the center point.</p>
<p>Unlike the original U-net, U-net with an FC layer can consider all input areas because the FC layer uses all inputs to calculate the output. As a result, inpainting models based on the U-net with FC layer recover all blank regions more effectively by considering all surrounding areas regardless of the position of the generated pixel, as displayed in <xref ref-type="fig" rid="fig-3">Figs. 3b</xref> and <xref ref-type="fig" rid="fig-3">3c</xref>.</p>
<p>Another effect of the FC layer is to naturally transform the input image distribution, including blank areas, into the original image distribution without any blank areas. As typical convolutions operate with the same filters for both blank and surrounding areas, several problems, such as color discrepancy, blurriness, and visible mask edges, have been observed in CNN-based inpainting models [<xref ref-type="bibr" rid="ref-14">14</xref>,<xref ref-type="bibr" rid="ref-15">15</xref>]. Kerras et al. [<xref ref-type="bibr" rid="ref-34">34</xref>] reported that applying the FC layer makes it easier for the generator to generate plausible images because the input distribution is flexibly modified to the desired output distribution. They also revealed that an inpainting model without an FC layer often fails to generate plausible images.</p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>An image sample with a vertex-aligned <inline-formula id="ieqn-10"><!--<alternatives><inline-graphic xlink:href="ieqn-10.png"/><tex-math id="tex-ieqn-10"><![CDATA[$384 \times 384$]]></tex-math>--><mml:math id="mml-ieqn-10"><mml:mn>384</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>384</mml:mn></mml:math><!--</alternatives>--></inline-formula> square mask and the spatial support of two pixels inside the image by U-net with an FC layer: (a) image sample, (b) spatial support of the pixel at the center of the image, and (c) spatial support of the top-right pixel of the image</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-3.png"/>
</fig>
<p>Although partial convolution (PC) and GC can alleviate typical convolution problems, they have their limitations. For instance, if the layer becomes deep, PC becomes insensitive to the erased area [<xref ref-type="bibr" rid="ref-15">15</xref>], or two convolutions must be performed in GC. In contrast, the FC layer enables the inpainting model to mitigate the typical convolution problems in inpainting and avoid problems by PC or GC. The FC layer is a trainable weight that can learn both the blank and surrounding areas, which PC cannot do. In addition, inpainting models based on the U-net with an FC layer is lighter than GC-based inpainting models.</p>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>UFC-Net</title>
<p>We constructed an inpainting model called UFC-net that implements FC layers into U-net to employ the benefits of the FC layer in inpainting. <xref ref-type="fig" rid="fig-4">Fig. 4</xref> presents the overall architecture of UFC-net, which has fully spatial support and can transform the input distribution into the original image distribution naturally. The generator model receives masked images, masks, and sketches as input data, where the sketches are optional. A DNN-based generator usually has the risk that the gradient used for learning may disappear [<xref ref-type="bibr" rid="ref-25">25</xref>&#x2013;<xref ref-type="bibr" rid="ref-27">27</xref>], so the generator in the UFC-net uses batch normalization [<xref ref-type="bibr" rid="ref-35">35</xref>] except for the last layer.</p>
<fig id="fig-4">
<label>Figure 4</label>
<caption>
<title>The UFC-net architecture 
 
</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-4.png"/>
</fig>
 
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Hyperparameters of the UFC-net encoder</title>
</caption>
<!---->
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>ID</th>
<th>Network type</th>
<th>Activation function</th>
<th>Kernel size</th>
<th>Stride</th>
<th>Output dimension (<inline-formula id="ieqn-11"><!--<alternatives><inline-graphic xlink:href="ieqn-11.png"/><tex-math id="tex-ieqn-11"><![CDATA[$\mathrm{c}\times \mathrm{h}\times \mathrm{w}$]]></tex-math>--><mml:math id="mml-ieqn-11"><mml:mstyle mathvariant="normal"><mml:mi>c</mml:mi></mml:mstyle><mml:mo>&#x00D7;</mml:mo><mml:mstyle mathvariant="normal"><mml:mi>h</mml:mi></mml:mstyle><mml:mo>&#x00D7;</mml:mo><mml:mstyle mathvariant="normal"><mml:mi>w</mml:mi></mml:mstyle></mml:math><!--</alternatives>--></inline-formula>)</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-12"><!--<alternatives><inline-graphic xlink:href="ieqn-12.png"/><tex-math id="tex-ieqn-12"><![CDATA[$32\times 256\times 256$]]></tex-math>--><mml:math id="mml-ieqn-12"><mml:mn>32</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>2</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>2</td>
<td><inline-formula id="ieqn-13"><!--<alternatives><inline-graphic xlink:href="ieqn-13.png"/><tex-math id="tex-ieqn-13"><![CDATA[$64\times 128\times 128$]]></tex-math>--><mml:math id="mml-ieqn-13"><mml:mn>64</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>128</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>128</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>3</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>2</td>
<td><inline-formula id="ieqn-14"><!--<alternatives><inline-graphic xlink:href="ieqn-14.png"/><tex-math id="tex-ieqn-14"><![CDATA[$128\times 64\times 64$]]></tex-math>--><mml:math id="mml-ieqn-14"><mml:mn>128</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>64</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>64</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>4</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>2</td>
<td><inline-formula id="ieqn-15"><!--<alternatives><inline-graphic xlink:href="ieqn-15.png"/><tex-math id="tex-ieqn-15"><![CDATA[$256\times 32\times 32$]]></tex-math>--><mml:math id="mml-ieqn-15"><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>32</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>32</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>5</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>2</td>
<td><inline-formula id="ieqn-16"><!--<alternatives><inline-graphic xlink:href="ieqn-16.png"/><tex-math id="tex-ieqn-16"><![CDATA[$512\times 16\times 16$]]></tex-math>--><mml:math id="mml-ieqn-16"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>16</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>16</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>6</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>2</td>
<td><inline-formula id="ieqn-17"><!--<alternatives><inline-graphic xlink:href="ieqn-17.png"/><tex-math id="tex-ieqn-17"><![CDATA[$512\times 8\times 8$]]></tex-math>--><mml:math id="mml-ieqn-17"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>8</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>8</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>7</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>2</td>
<td><inline-formula id="ieqn-18"><!--<alternatives><inline-graphic xlink:href="ieqn-18.png"/><tex-math id="tex-ieqn-18"><![CDATA[$512\times 4\times 4$]]></tex-math>--><mml:math id="mml-ieqn-18"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>4</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>4</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>8</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>2</td>
<td><inline-formula id="ieqn-19"><!--<alternatives><inline-graphic xlink:href="ieqn-19.png"/><tex-math id="tex-ieqn-19"><![CDATA[$512\times 2\times 2$]]></tex-math>--><mml:math id="mml-ieqn-19"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>2</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>2</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>9</td>
<td>Conv.</td>
<td>ReLU</td>
<td>3</td>
<td>2</td>
<td><inline-formula id="ieqn-20"><!--<alternatives><inline-graphic xlink:href="ieqn-20.png"/><tex-math id="tex-ieqn-20"><![CDATA[$512\times 1\times 1$]]></tex-math>--><mml:math id="mml-ieqn-20"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>1</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The UFC-net consists of three components: the encoder, latent networks, and decoder. The encoder consists of nine convolutional layers that compute feature maps over input images with a stride of 2. <xref ref-type="table" rid="table-1">Tab. 1</xref> describes some encoder details.</p>
<p>After the encoding process, encoded features pass through eight FC layers to smoothly transform the input distribution to the corresponding output distribution. <xref ref-type="table" rid="table-2">Tab. 2</xref> presents some hyperparameters of the latent networks in the generator model.</p>
<table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>Hyperparameters of latent networks in UFC-net</title>
</caption>
<!---->
<table>
<colgroup>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>ID</th>
<th>Network type</th>
<th>Output dimension</th>
</tr>
</thead>
<tbody>
<tr>
<td>10</td>
<td>Fully connected</td>
<td>512</td>
</tr>
<tr>
<td>11</td>
<td>Fully connected</td>
<td>512</td>
</tr>
<tr>
<td>12</td>
<td>Fully connected</td>
<td>512</td>
</tr>
<tr>
<td>13</td>
<td>Fully connected</td>
<td>512</td>
</tr>
<tr>
<td>14</td>
<td>Fully connected</td>
<td>512</td>
</tr>
<tr>
<td>15</td>
<td>Fully connected</td>
<td>512</td>
</tr>
<tr>
<td>16</td>
<td>Fully connected</td>
<td>512</td>
</tr>
<tr>
<td>17</td>
<td>Fully connected</td>
<td>512</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The decoder consists of eight Hadamard identity blocks (HIB). <xref ref-type="fig" rid="fig-5">Fig. 5</xref> presents the difference between U-net&#x2019;s SC and HIB. A typical SC takes the latent value of the encoder and concatenates it channel-wise to the decoder. In the case of HIB, however, the value of the nonblank area is replaced by the latent value of the encoder. The HISC can be defined by <xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>:</p>
<p><disp-formula id="eqn-1">
<label>(1)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-1.png"/>
<tex-math id="tex-eqn-1"><![CDATA[$$\begin{equation}
\beta =\beta \odot (1-M)+\alpha \odot M,
 \label{eqn-1}
\end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-1" display="block"><mml:mi>&#x03B2;</mml:mi><mml:mo>=</mml:mo><mml:mi>&#x03B2;</mml:mi><mml:mo>&#x2299;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mi>M</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mi>&#x03B1;</mml:mi><mml:mo>&#x2299;</mml:mo><mml:mi>M</mml:mi><mml:mo>,</mml:mo></mml:math><!--</alternatives>--></disp-formula></p>
<p>where <inline-formula id="ieqn-21"><!--<alternatives><inline-graphic xlink:href="ieqn-21.png"/><tex-math id="tex-ieqn-21"><![CDATA[$\beta$]]></tex-math>--><mml:math id="mml-ieqn-21"><mml:mi>&#x03B2;</mml:mi></mml:math><!--</alternatives>--></inline-formula> represents the result of the previous neural networks, and <italic>M</italic> is the mask area (0 for holes and 1 for filled). In addition, <inline-formula id="ieqn-22"><!--<alternatives><inline-graphic xlink:href="ieqn-22.png"/><tex-math id="tex-ieqn-22"><![CDATA[$\alpha$]]></tex-math>--><mml:math id="mml-ieqn-22"><mml:mi>&#x03B1;</mml:mi></mml:math><!--</alternatives>--></inline-formula> is the latent value received from the encoder.</p>
<fig id="fig-5">
<label>Figure 5</label>
<caption>
<title>Two convolutional neural networks with skip connections (SC): (a) SC and a couple of convolutional layers, and (b) Hadamard identity block 
 
</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-5.png"/>
</fig>
 
<table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>Hyperparameters of decoder networks in UFC-net</title>
</caption>
<!---->
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>ID</th>
<th>Type</th>
<th>Kernel size</th>
<th>Up factor/stride</th>
<th>Output dimension (<inline-formula id="ieqn-23"><!--<alternatives><inline-graphic xlink:href="ieqn-23.png"/><tex-math id="tex-ieqn-23"><![CDATA[$\mathrm{c}\times \mathrm{h}\times \mathrm{w}$]]></tex-math>--><mml:math id="mml-ieqn-23"><mml:mstyle mathvariant="normal"><mml:mi>c</mml:mi></mml:mstyle><mml:mo>&#x00D7;</mml:mo><mml:mstyle mathvariant="normal"><mml:mi>h</mml:mi></mml:mstyle><mml:mo>&#x00D7;</mml:mo><mml:mstyle mathvariant="normal"><mml:mi>w</mml:mi></mml:mstyle></mml:math><!--</alternatives>--></inline-formula>)</th>
<th>Encoder latent ID <inline-formula id="ieqn-24"><!--<alternatives><inline-graphic xlink:href="ieqn-24.png"/><tex-math id="tex-ieqn-24"><![CDATA[$ \left(\alpha \right)$]]></tex-math>--><mml:math id="mml-ieqn-24"><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>&#x03B1;</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula></th>
</tr>
</thead>
<tbody>
<tr>
<td>18</td>
<td>Up-sampling</td>
<td>&#x2013;</td>
<td>2</td>
<td><inline-formula id="ieqn-25"><!--<alternatives><inline-graphic xlink:href="ieqn-25.png"/><tex-math id="tex-ieqn-25"><![CDATA[$512\times 2\times 2$]]></tex-math>--><mml:math id="mml-ieqn-25"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>2</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>2</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>19</td>
<td>HIB</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-26"><!--<alternatives><inline-graphic xlink:href="ieqn-26.png"/><tex-math id="tex-ieqn-26"><![CDATA[$512\times 2\times 2$]]></tex-math>--><mml:math id="mml-ieqn-26"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>2</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>2</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td>8</td>
</tr>
<tr>
<td>20</td>
<td>Up-sampling</td>
<td>&#x2013;</td>
<td>2</td>
<td><inline-formula id="ieqn-27"><!--<alternatives><inline-graphic xlink:href="ieqn-27.png"/><tex-math id="tex-ieqn-27"><![CDATA[$512\times 4\times 4$]]></tex-math>--><mml:math id="mml-ieqn-27"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>4</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>4</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>21</td>
<td>HIB</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-28"><!--<alternatives><inline-graphic xlink:href="ieqn-28.png"/><tex-math id="tex-ieqn-28"><![CDATA[$512\times 4\times 4$]]></tex-math>--><mml:math id="mml-ieqn-28"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>4</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>4</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td>7</td>
</tr>
<tr>
<td>22</td>
<td>Up-sampling</td>
<td>&#x2013;</td>
<td>2</td>
<td><inline-formula id="ieqn-29"><!--<alternatives><inline-graphic xlink:href="ieqn-29.png"/><tex-math id="tex-ieqn-29"><![CDATA[$512\times 8\times 8$]]></tex-math>--><mml:math id="mml-ieqn-29"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>8</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>8</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>23</td>
<td>HIB</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-30"><!--<alternatives><inline-graphic xlink:href="ieqn-30.png"/><tex-math id="tex-ieqn-30"><![CDATA[$512\times 8\times 8$]]></tex-math>--><mml:math id="mml-ieqn-30"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>8</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>8</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td>6</td>
</tr>
<tr>
<td>24</td>
<td>Up-sampling</td>
<td>&#x2013;</td>
<td>2</td>
<td><inline-formula id="ieqn-31"><!--<alternatives><inline-graphic xlink:href="ieqn-31.png"/><tex-math id="tex-ieqn-31"><![CDATA[$512\times 16\times 16$]]></tex-math>--><mml:math id="mml-ieqn-31"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>16</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>16</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>25</td>
<td>HIB</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-32"><!--<alternatives><inline-graphic xlink:href="ieqn-32.png"/><tex-math id="tex-ieqn-32"><![CDATA[$512\times 16\times 16$]]></tex-math>--><mml:math id="mml-ieqn-32"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>16</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>16</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td>5</td>
</tr>
<tr>
<td>26</td>
<td>Up-sampling</td>
<td>&#x2013;</td>
<td>2</td>
<td><inline-formula id="ieqn-33"><!--<alternatives><inline-graphic xlink:href="ieqn-33.png"/><tex-math id="tex-ieqn-33"><![CDATA[$256\times 32\times 32$]]></tex-math>--><mml:math id="mml-ieqn-33"><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>32</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>32</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>27</td>
<td>HIB</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-34"><!--<alternatives><inline-graphic xlink:href="ieqn-34.png"/><tex-math id="tex-ieqn-34"><![CDATA[$256\times 32\times 32$]]></tex-math>--><mml:math id="mml-ieqn-34"><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>32</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>32</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td>4</td>
</tr>
<tr>
<td>28</td>
<td>Up-sampling</td>
<td>&#x2013;</td>
<td>2</td>
<td><inline-formula id="ieqn-35"><!--<alternatives><inline-graphic xlink:href="ieqn-35.png"/><tex-math id="tex-ieqn-35"><![CDATA[$128\times 64\times 64$]]></tex-math>--><mml:math id="mml-ieqn-35"><mml:mn>128</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>64</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>64</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>29</td>
<td>HIB</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-36"><!--<alternatives><inline-graphic xlink:href="ieqn-36.png"/><tex-math id="tex-ieqn-36"><![CDATA[$128\times 64\times 64$]]></tex-math>--><mml:math id="mml-ieqn-36"><mml:mn>128</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>64</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>64</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td>3</td>
</tr>
<tr>
<td>30</td>
<td>Up-sampling</td>
<td>&#x2013;</td>
<td>2</td>
<td><inline-formula id="ieqn-37"><!--<alternatives><inline-graphic xlink:href="ieqn-37.png"/><tex-math id="tex-ieqn-37"><![CDATA[$64\times 128\times 128$]]></tex-math>--><mml:math id="mml-ieqn-37"><mml:mn>64</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>128</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>128</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>31</td>
<td>HIB</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-38"><!--<alternatives><inline-graphic xlink:href="ieqn-38.png"/><tex-math id="tex-ieqn-38"><![CDATA[$64\times 128\times 128$]]></tex-math>--><mml:math id="mml-ieqn-38"><mml:mn>64</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>128</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>128</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td>2</td>
</tr>
<tr>
<td>32</td>
<td>Up-sampling</td>
<td>&#x2013;</td>
<td>2</td>
<td><inline-formula id="ieqn-39"><!--<alternatives><inline-graphic xlink:href="ieqn-39.png"/><tex-math id="tex-ieqn-39"><![CDATA[$32\times 256\times 256$]]></tex-math>--><mml:math id="mml-ieqn-39"><mml:mn>32</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>33</td>
<td>HIB</td>
<td>3</td>
<td>1</td>
<td><inline-formula id="ieqn-40"><!--<alternatives><inline-graphic xlink:href="ieqn-40.png"/><tex-math id="tex-ieqn-40"><![CDATA[$32\times 256\times 256$]]></tex-math>--><mml:math id="mml-ieqn-40"><mml:mn>32</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td>1</td>
</tr>
<tr>
<td>34</td>
<td>CNN</td>
<td>1</td>
<td>1</td>
<td><inline-formula id="ieqn-41"><!--<alternatives><inline-graphic xlink:href="ieqn-41.png"/><tex-math id="tex-ieqn-41"><![CDATA[$3\times 256\times 256$]]></tex-math>--><mml:math id="mml-ieqn-41"><mml:mn>3</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
<tr>
<td>35</td>
<td>Tanh</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td><inline-formula id="ieqn-42"><!--<alternatives><inline-graphic xlink:href="ieqn-42.png"/><tex-math id="tex-ieqn-42"><![CDATA[$3\times 256\times 256$]]></tex-math>--><mml:math id="mml-ieqn-42"><mml:mn>3</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>256</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
<td/>
</tr>
</tbody>
</table>
<table-wrap-foot><p><italic>Notes</italic>: Up-sampling: bilinear up-sampling, CNN: convolutional neural network, <italic>Tanh</italic>: hyperbolic tangent.</p></table-wrap-foot></table-wrap>
<p>As HISC replaces the decoder latent value with the encoder latent value for nonblank areas, the gradient between the HIB and another HIB is not calculated in these regions. Thus, the HISC reduces the computational cost by having the generator focus on the erased area. <xref ref-type="table" rid="table-3">Tab. 3</xref> lists some hyperparameters of decoder networks in the UFC-net.</p>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Discriminator and the Loss Function</title>
<p>Many inpainting models have used the patchGAN discriminator [<xref ref-type="bibr" rid="ref-36">36</xref>] as their discriminator [<xref ref-type="bibr" rid="ref-12">12</xref>&#x2013;<xref ref-type="bibr" rid="ref-14">14</xref>,<xref ref-type="bibr" rid="ref-23">23</xref>]. However, due to the adversarial training process in the GAN, GAN-based inpainting models often exhibit unstable training [<xref ref-type="bibr" rid="ref-34">34</xref>,<xref ref-type="bibr" rid="ref-37">37</xref>,<xref ref-type="bibr" rid="ref-38">38</xref>]. This problem should be addressed to use the discriminator in GAN-based models. Further, spectral normalization has the property that the generated data are quite similar to the training data [<xref ref-type="bibr" rid="ref-37">37</xref>]. Therefore, we applied spectral normalization to the patchGAN discriminator and used the outcome as the discriminator of UFC-net. <xref ref-type="table" rid="table-4">Tab. 4</xref> presents the hyperparameters of the patchGAN discriminator.</p>
<table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Hyperparameters of the patchGAN discriminator</title>
</caption>
<!---->
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>ID</th>
<th>Network type</th>
<th>Activation function</th>
<th>Kernel size</th>
<th>Stride</th>
<th>Output dimension (<inline-formula id="ieqn-43"><!--<alternatives><inline-graphic xlink:href="ieqn-43.png"/><tex-math id="tex-ieqn-43"><![CDATA[$\mathrm{c}\times \mathrm{h}\times \mathrm{w}$]]></tex-math>--><mml:math id="mml-ieqn-43"><mml:mstyle mathvariant="normal"><mml:mi>c</mml:mi></mml:mstyle><mml:mo>&#x00D7;</mml:mo><mml:mstyle mathvariant="normal"><mml:mi>h</mml:mi></mml:mstyle><mml:mo>&#x00D7;</mml:mo><mml:mstyle mathvariant="normal"><mml:mi>w</mml:mi></mml:mstyle></mml:math><!--</alternatives>--></inline-formula>)</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Conv.</td>
<td>LeakyReLU</td>
<td>4</td>
<td>2</td>
<td><inline-formula id="ieqn-44"><!--<alternatives><inline-graphic xlink:href="ieqn-44.png"/><tex-math id="tex-ieqn-44"><![CDATA[$64\times 128\times 128$]]></tex-math>--><mml:math id="mml-ieqn-44"><mml:mn>64</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>128</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>128</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>2</td>
<td>Conv.</td>
<td>LeakyReLU</td>
<td>4</td>
<td>2</td>
<td><inline-formula id="ieqn-45"><!--<alternatives><inline-graphic xlink:href="ieqn-45.png"/><tex-math id="tex-ieqn-45"><![CDATA[$128\times 64\times 64$]]></tex-math>--><mml:math id="mml-ieqn-45"><mml:mn>128</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>64</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>64</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>3</td>
<td>Conv.</td>
<td>LeakyReLU</td>
<td>4</td>
<td>2</td>
<td><inline-formula id="ieqn-46"><!--<alternatives><inline-graphic xlink:href="ieqn-46.png"/><tex-math id="tex-ieqn-46"><![CDATA[$256\times 32\times 32$]]></tex-math>--><mml:math id="mml-ieqn-46"><mml:mn>256</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>32</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>32</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
<tr>
<td>4</td>
<td>Conv.</td>
<td>LeakyReLU</td>
<td>4</td>
<td>2</td>
<td><inline-formula id="ieqn-47"><!--<alternatives><inline-graphic xlink:href="ieqn-47.png"/><tex-math id="tex-ieqn-47"><![CDATA[$512\times 16\times 16$]]></tex-math>--><mml:math id="mml-ieqn-47"><mml:mn>512</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>16</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mn>16</mml:mn></mml:math><!--</alternatives>--></inline-formula></td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We used reconstruction loss, adversarial loss, perceptual loss, and style loss to train our model. Reconstruction loss is essential for image reconstruction and is defined using <xref ref-type="disp-formula" rid="eqn-2">Eq. (2)</xref>. We used the hinge loss from [<xref ref-type="bibr" rid="ref-15">15</xref>] as the adversarial loss. The adversarial loss effectively restores the results sharply [<xref ref-type="bibr" rid="ref-11">11</xref>,<xref ref-type="bibr" rid="ref-12">12</xref>], which can be defined by <xref ref-type="disp-formula" rid="eqn-3">Eq. (3)</xref>. Both perceptual loss and style loss are used to mitigate unintended shapes [<xref ref-type="bibr" rid="ref-14">14</xref>,<xref ref-type="bibr" rid="ref-23">23</xref>], defined by <xref ref-type="disp-formula" rid="eqn-4">Eqs. (4)</xref> and <xref ref-type="disp-formula" rid="eqn-5">(5)</xref>, respectively:</p>
<p><disp-formula id="eqn-2">
<label>(2)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-2.png"/>
<tex-math id="tex-eqn-2"><![CDATA[$$\begin{equation}\mathcal{L}_{rec}= \left| G \left(z\right)-x\right|
 \label{eqn-2} \end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-2" display="block"><mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>|</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:mi>x</mml:mi></mml:mrow><mml:mo>|</mml:mo></mml:mrow></mml:mrow><mml:mrow></mml:mrow></mml:math>
<!--</alternatives>--></disp-formula></p>
<p><disp-formula id="eqn-3">
<label>(3)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-3.png"/>
<tex-math id="tex-eqn-3"><![CDATA[$$\begin{equation}\mathcal{L}_{\mathrm{adv}}= \left\{\begin{array}{l}\mathcal{L}_{\mathrm{D}}=\mathbb{E}_{x\sim {p_{data}} \left(x\right)} \left[ReLU \left(1-D \left(x\right)\right)\right] +\mathbb{E}_{z\sim {p_{data}} \left(z\right)} \left[ReLU \left(1+D \left(G \left(z\right)\right)\right)\right] \\[8pt] \mathcal{L}_{\mathrm{G}}=-\mathbb{E}_{z\sim {p_{data}} \left(z\right)} \left[D \left(G \left(z\right)\right)\right] \end{array}\right.
 \label{eqn-3} \end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-3" display="block"><mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mstyle mathvariant="normal"><mml:mi>a</mml:mi><mml:mi>d</mml:mi><mml:mi>v</mml:mi></mml:mstyle></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mtable equalrows="false" columnlines="" equalcolumns="false"><mml:mtr><mml:mtd columnalign="left"><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mstyle mathvariant="normal"><mml:mi>D</mml:mi></mml:mstyle></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle></mml:mrow><mml:mrow><mml:mi>x</mml:mi><mml:mo>~</mml:mo><mml:msub><mml:mrow><mml:mi>p</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>a</mml:mi><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>L</mml:mi><mml:mi>U</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle></mml:mrow><mml:mrow><mml:mi>z</mml:mi><mml:mo>~</mml:mo><mml:msub><mml:mrow><mml:mi>p</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>a</mml:mi><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>L</mml:mi><mml:mi>U</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>+</mml:mo><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd columnalign="left"><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mstyle mathvariant="normal"><mml:mi>G</mml:mi></mml:mstyle></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle></mml:mrow><mml:mrow><mml:mi>z</mml:mi><mml:mo>~</mml:mo><mml:msub><mml:mrow><mml:mi>p</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>a</mml:mi><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mtd></mml:mtr> </mml:mtable></mml:mrow><mml:mo></mml:mo></mml:mrow></mml:mrow><mml:mrow></mml:mrow></mml:math>
<!--</alternatives>--></disp-formula></p>
<disp-formula id="eqn-4">
<label>(4)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-4.png"/>
<tex-math id="tex-eqn-4"><![CDATA[$$\begin{equation}\mathcal{L}_{\text{p}\text{e}\text{r}\text{c}}=\mathbb{E} \left[\sum_{i}\frac{1}{N_{i}} \left\| \varphi _{i} \left(x\right)-\varphi _{i} \left(G(z)\right)\right\| _{1}\right]
 \label{eqn-4} \end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-4" display="block"><mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mstyle><mml:mtext>p</mml:mtext></mml:mstyle><mml:mstyle><mml:mtext>e</mml:mtext></mml:mstyle><mml:mstyle><mml:mtext>r</mml:mtext></mml:mstyle><mml:mstyle><mml:mtext>c</mml:mtext></mml:mstyle></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mo>&#x2211;</mml:mo> </mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>N</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x03C6;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x03C6;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>&#x2225;</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mrow></mml:mrow></mml:math>
<!--</alternatives>--></disp-formula>
<disp-formula id="eqn-5">
<label>(5)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-5.png"/>
<tex-math id="tex-eqn-5"><![CDATA[$$\begin{equation}\mathcal{L}_{\text{s}\text{t}\text{y}\text{l}\text{e}}=\mathbb{E}_{j} \left[ \left\| \mathcal{G}_{j}^{\varphi } \left(x\right)-\mathcal{G}_{j}^{\varphi } \left(G \left(z\right)\right)\right\| _{1}\right]
 \label{eqn-5}\end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-5" display="block"><mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mstyle><mml:mtext>s</mml:mtext></mml:mstyle><mml:mstyle><mml:mtext>t</mml:mtext></mml:mstyle><mml:mstyle><mml:mtext>y</mml:mtext></mml:mstyle><mml:mstyle><mml:mtext>l</mml:mtext></mml:mstyle><mml:mstyle><mml:mtext>e</mml:mtext></mml:mstyle></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mi mathvariant="script">G</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x03C6;</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>-</mml:mo><mml:msubsup><mml:mrow><mml:mi mathvariant="script">G</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x03C6;</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mrow></mml:mrow></mml:math>
<!--</alternatives>--></disp-formula>
<p>where <italic>x</italic>, <inline-formula id="ieqn-48"><!--<alternatives><inline-graphic xlink:href="ieqn-48.png"/><tex-math id="tex-ieqn-48"><![CDATA[$\hat{x}$]]></tex-math>--><mml:math id="mml-ieqn-48"><mml:mover accent="true"><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math><!--</alternatives>--></inline-formula>, <italic>m</italic>, and <italic>s</italic> represent samples from the original data, erased data, mask, and sketch, respectively. The generator <italic>G</italic> receives <italic>z</italic>, which is the channel-wise concatenated feature of <inline-formula id="ieqn-49"><!--<alternatives><inline-graphic xlink:href="ieqn-49.png"/><tex-math id="tex-ieqn-49"><![CDATA[$\hat{x}$]]></tex-math>--><mml:math id="mml-ieqn-49"><mml:mover accent="true"><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math><!--</alternatives>--></inline-formula>, <italic>m</italic>, and <italic>s</italic>, and generates the fake data <inline-formula id="ieqn-50"><!--<alternatives><inline-graphic xlink:href="ieqn-50.png"/><tex-math id="tex-ieqn-50"><![CDATA[$G \left(z\right)$]]></tex-math>--><mml:math id="mml-ieqn-50"><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula>. The discriminator <italic>D</italic> receives two types of samples: fake data samples <inline-formula id="ieqn-51"><!--<alternatives><inline-graphic xlink:href="ieqn-51.png"/><tex-math id="tex-ieqn-51"><![CDATA[$G \left(z\right)$]]></tex-math>--><mml:math id="mml-ieqn-51"><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula> from fake distribution <inline-formula id="ieqn-52"><!--<alternatives><inline-graphic xlink:href="ieqn-52.png"/><tex-math id="tex-ieqn-52"><![CDATA[$p_{data} \left(z\right)$]]></tex-math>--><mml:math id="mml-ieqn-52"><mml:msub><mml:mrow><mml:mi>p</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>a</mml:mi><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula> and real data samples <italic>x</italic> from <inline-formula id="ieqn-53"><!--<alternatives><inline-graphic xlink:href="ieqn-53.png"/><tex-math id="tex-ieqn-53"><![CDATA[$p_{data} \left(x\right)$]]></tex-math>--><mml:math id="mml-ieqn-53"><mml:msub><mml:mrow><mml:mi>p</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>a</mml:mi><mml:mi>t</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula>. This discriminator outputs <inline-formula id="ieqn-54"><!--<alternatives><inline-graphic xlink:href="ieqn-54.png"/><tex-math id="tex-ieqn-54"><![CDATA[$\mathrm{D} \left(\mathrm{G} \left(z\right)\right)$]]></tex-math>--><mml:math id="mml-ieqn-54"><mml:mstyle mathvariant="normal"><mml:mi>D</mml:mi></mml:mstyle><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mstyle mathvariant="normal"><mml:mi>G</mml:mi></mml:mstyle><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula> and <inline-formula id="ieqn-55"><!--<alternatives><inline-graphic xlink:href="ieqn-55.png"/><tex-math id="tex-ieqn-55"><![CDATA[$\mathrm{D} \left(x\right)$]]></tex-math>--><mml:math id="mml-ieqn-55"><mml:mstyle mathvariant="normal"><mml:mi>D</mml:mi></mml:mstyle><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula> for the fake and real data samples, respectively. In addition, <inline-formula id="ieqn-56"><!--<alternatives><inline-graphic xlink:href="ieqn-56.png"/><tex-math id="tex-ieqn-56"><![CDATA[$\varphi _{i} \left(x\right)\in C_{j}\times H_{j}\times W_{j}$]]></tex-math>--><mml:math id="mml-ieqn-56"><mml:msub><mml:mrow><mml:mi>&#x03C6;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:msub><mml:mrow><mml:mi>W</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math><!--</alternatives>--></inline-formula> is the activation map of relu<italic>i</italic>_1 calculated using the given data <italic>x</italic> in the VGG-19 model pretrained with the ImageNet dataset. Moreover, <inline-formula id="ieqn-57"><!--<alternatives><inline-graphic xlink:href="ieqn-57.png"/><tex-math id="tex-ieqn-57"><![CDATA[$\mathcal{G}_{j}^{\varphi } \left(x\right)\in C_{j}\times C_{j}$]]></tex-math>--><mml:math id="mml-ieqn-57"><mml:msubsup><mml:mrow><mml:mi mathvariant="script">G</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x03C6;</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math><!--</alternatives>--></inline-formula> is a Gram matrix constructed from <inline-formula id="ieqn-58"><!--<alternatives><inline-graphic xlink:href="ieqn-58.png"/><tex-math id="tex-ieqn-58"><![CDATA[$\varphi _{j} \left(\mathrm{x}\right)$]]></tex-math>--><mml:math id="mml-ieqn-58"><mml:msub><mml:mrow><mml:mi>&#x03C6;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mstyle mathvariant="normal"><mml:mi>x</mml:mi></mml:mstyle></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula>. To summarize, our final loss function is defined by <xref ref-type="disp-formula" rid="eqn-6">Eq. (6)</xref>:</p>
<p><disp-formula id="eqn-6">
<label>(6)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-6.png"/>
<tex-math id="tex-eqn-6"><![CDATA[$$\begin{equation}
\mathcal{L}_{G}=10*\mathcal{L}_{rec}+\mathcal{L}_{adv}+10*
\mathcal{L}_{perc}+100*\mathcal{L}_{\mathit{style}}
 \label{eqn-6}
\end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-6" display="block"><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mi>G</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn>10</mml:mn><mml:mo>*</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>d</mml:mi><mml:mi>v</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mn>10</mml:mn><mml:mo>*</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mn>100</mml:mn><mml:mo>*</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mstyle mathvariant="italic"><mml:mi>s</mml:mi><mml:mi>t</mml:mi><mml:mi>y</mml:mi><mml:mi>l</mml:mi><mml:mi>e</mml:mi></mml:mstyle></mml:mrow></mml:msub></mml:math><!--</alternatives>--></disp-formula></p>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Experiments</title>
<p>To evaluate the inpainting performance of the proposed model, we conducted various experiments. We first present the environment and hyperparameters for the experiments and then describe the effectiveness of the spatial support and HISC used in UFC-net. In addition, we demonstrate the effect of the sketch input in the proposed model.</p>
<sec id="s4_1">
<label>4.1</label>
<title>Experimental Setting</title>
<p>As the dataset for the experiments, we used the Places2 [<xref ref-type="bibr" rid="ref-17">17</xref>] dataset, which contains 18 million scene photographs and their labeled data with scene categories. <xref ref-type="fig" rid="fig-6">Fig. 6</xref> presents some of the images in the dataset.</p>
<p>We employed two types of masks for training: regular and irregular masks. Regular masks were square with a fixed size (25% of total image pixels) centered at a random location within the image. Irregular masks used the same dataset as Liu et al. [<xref ref-type="bibr" rid="ref-14">14</xref>]. We applied the canny edge algorithm [<xref ref-type="bibr" rid="ref-39">39</xref>] to the Places2 dataset to obtain the sketch dataset. Before training, all weights in the generator and discriminator were initialized with samples of a normal random distribution.</p>
<p>The distribution had 0 for the mean and 0.02 for the standard variation. For training, we used Adam [<xref ref-type="bibr" rid="ref-40">40</xref>] as the optimizer. They were implemented based on the TensorFlow framework and run on Nvidia GTX 1080ti and Nvidia RTX Titan, with batch sizes of 4 and 8, respectively. Both generators and discriminators set the learning rate to 0.002, with one million training iterations. We updated the generator weights twice after updating the discriminator weights once [<xref ref-type="bibr" rid="ref-41">41</xref>].</p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Quantitative Comparison</title>
<p>The proposed model&#x2019;s primary goals are to widen the spatial support and restore the blank areas for more effective inpainting. Therefore, for comparison, we considered three models that are closely related to these two properties. The models are DeepFill v1 [<xref ref-type="bibr" rid="ref-13">13</xref>], Liu et al. [<xref ref-type="bibr" rid="ref-14">14</xref>] model, and DeepFill v2 [<xref ref-type="bibr" rid="ref-15">15</xref>].</p>
<p>In addition, we used the L1 loss, L2 loss, total variation (TV) loss [<xref ref-type="bibr" rid="ref-14">14</xref>], and variation as the evaluation metrics, which can be defined by <xref ref-type="disp-formula" rid="eqn-7">Eqs. (7)</xref>&#x2013;<xref ref-type="disp-formula" rid="eqn-10">(10)</xref> as follows:</p>
<p><disp-formula id="eqn-7">
<label>(7)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-7.png"/>
<tex-math id="tex-eqn-7"><![CDATA[$$\begin{equation}L1loss=\mathbb{E} \left\| G \left(z\right)-x\right\| _{1}
 \label{eqn-7} \end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-7" display="block"><mml:mrow></mml:mrow><mml:mrow><mml:mi>L</mml:mi><mml:mn>1</mml:mn><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>s</mml:mi><mml:mo>=</mml:mo><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle><mml:msub><mml:mrow><mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>-</mml:mo><mml:mi>x</mml:mi></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow></mml:mrow></mml:math>
<!--</alternatives>--></disp-formula></p>
<p><disp-formula id="eqn-8">
<label>(8)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-8.png"/>
<tex-math id="tex-eqn-8"><![CDATA[$$\begin{equation}L2loss=\mathbb{E} \left\| G \left(z\right)-x\right\| _{2}^{2}
 \label{eqn-8} \end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-8" display="block"><mml:mrow></mml:mrow><mml:mrow><mml:mi>L</mml:mi><mml:mn>2</mml:mn><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>s</mml:mi><mml:mo>=</mml:mo><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle><mml:msubsup><mml:mrow><mml:mrow><mml:mo>&#x2225;</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:mi>x</mml:mi></mml:mrow><mml:mo>&#x2225;</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mrow></mml:mrow></mml:math>
<!--</alternatives>--></disp-formula></p>
<disp-formula id="eqn-9">
<label>(9)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-9.png"/>
<tex-math id="tex-eqn-9"><![CDATA[$$\begin{equation}TV loss=\sum_{ \left(i,\,j\right)\in R,\, \left(i,\,j+1\right)\in R}\frac{ \left\| y^{i,\,j+1}-y^{i,\,j}\right\| _{1}}{N}+\sum_{ \left(i,\,j\right)\in R,\, \left(i+1,\,j\right)\in R}\frac{ \left\| y^{i+1,\,j}-y^{i,\,j}\right\| _{1}}{N}
 \label{eqn-9} \end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-9" display="block"><mml:mrow></mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mi>V</mml:mi><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>s</mml:mi><mml:mo>=</mml:mo><mml:munder><mml:mrow><mml:mo>&#x2211;</mml:mo> </mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mi>j</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2208;</mml:mo><mml:mi>R</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mi>j</mml:mi><mml:mo lspace='0pt' rspace='0pt'>+</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2208;</mml:mo><mml:mi>R</mml:mi></mml:mrow></mml:munder><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mi>j</mml:mi><mml:mo lspace='0pt' rspace='0pt'>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:mo lspace='0pt' rspace='0pt'>-</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mi>j</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac><mml:mo>+</mml:mo><mml:munder><mml:mrow><mml:mo>&#x2211;</mml:mo> </mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mi>j</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2208;</mml:mo><mml:mi>R</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo lspace='0pt' rspace='0pt'>+</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mi>j</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2208;</mml:mo><mml:mi>R</mml:mi></mml:mrow></mml:munder><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo lspace='0pt' rspace='0pt'>+</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mi>j</mml:mi></mml:mrow></mml:msup><mml:mo lspace='0pt' rspace='0pt'>-</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mspace width="0.3em"/><mml:mi>j</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mrow><mml:mrow></mml:mrow></mml:math>
<!--</alternatives>--></disp-formula>
<disp-formula id="eqn-10">
<label>(10)</label>
<!--<alternatives><graphic mimetype="image" mime-subtype="png" xlink:href="eqn-10.png"/>
<tex-math id="tex-eqn-10"><![CDATA[$$\begin{equation}\mathit{Variation}=\mathbb{E} \left\| G \left(z\right)-x\right\| _{2}^{2}-\mathbb{E}^{2} \left\| G \left(z\right)-x\right\| _{1}
 \label{eqn-10}\end{equation}$$]]></tex-math>-->
<mml:math id="mml-eqn-10" display="block"><mml:mrow></mml:mrow><mml:mrow><mml:mstyle mathvariant="italic"><mml:mi>V</mml:mi><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>i</mml:mi><mml:mi>a</mml:mi><mml:mi>t</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi></mml:mstyle><mml:mo>=</mml:mo><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle><mml:msubsup><mml:mrow><mml:mrow><mml:mo>&#x2225;</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:mi>x</mml:mi></mml:mrow><mml:mo>&#x2225;</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant="double-struck"><mml:mi>E</mml:mi></mml:mstyle></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:msub><mml:mrow><mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>-</mml:mo><mml:mi>x</mml:mi></mml:mrow><mml:mo lspace='0pt' rspace='0pt'>&#x2225;</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow></mml:mrow></mml:math>
<!--</alternatives>--></disp-formula>
<p>where <italic>R</italic> is the region of one-pixel dilation of the hole region, <italic>y</italic> is <inline-formula id="ieqn-59"><!--<alternatives><inline-graphic xlink:href="ieqn-59.png"/><tex-math id="tex-ieqn-59"><![CDATA[$ \left| G \left(z\right)-x\right|$]]></tex-math>--><mml:math id="mml-ieqn-59"><mml:mrow><mml:mo>|</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:mi>x</mml:mi></mml:mrow><mml:mo>|</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula>, <italic>N</italic> is the number of elements of the nonmask areas in <italic>y</italic>, and <inline-formula id="ieqn-60"><!--<alternatives><inline-graphic xlink:href="ieqn-60.png"/><tex-math id="tex-ieqn-60"><![CDATA[$y^{ \left(i, j\right)}$]]></tex-math>--><mml:math id="mml-ieqn-60"><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:math><!--</alternatives>--></inline-formula> represents the pixel corresponding to a spatial position <inline-formula id="ieqn-61"><!--<alternatives><inline-graphic xlink:href="ieqn-61.png"/><tex-math id="tex-ieqn-61"><![CDATA[$ \left(i, j\right)$]]></tex-math>--><mml:math id="mml-ieqn-61"><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math><!--</alternatives>--></inline-formula> in <italic>y</italic>.</p>
<fig id="fig-6">
<label>Figure 6</label>
<caption>
<title>Images from the Places2 dataset</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-6.png"/>
</fig>
<p>The L1 loss is also known as the least absolute error that measures the absolute difference between the target and estimated values. Similarly, the L2 loss is used to measure the sum of the square of the difference between the target and estimated values. These two loss functions are often used to evaluate the performance of inpainting models. Smaller values of these metrics indicate better generative performance. The TV loss is a metric that expresses the amount of change from the surrounding area based on each pixel for the L1 error. If the TV loss is low, the error does not change rapidly, making it difficult to detect the error visually. The variance indicates the gap performance between the L1 loss and L2 loss in each model. <xref ref-type="table" rid="table-5">Tab. 5</xref> presents the L1 loss, TV loss, L2 loss, and variance of four models for both regular masks and irregular masks. The proposed model presented the lowest L1 and TV loss errors, which indicates that our model outperforms PC or GC in handling blank areas. However, the proposed model could not achieve the lowest L2 loss and variance. Nevertheless, the proposed model yields the best inpainting results for the human eye. We demonstrate this in the next section.</p>
<table-wrap id="table-5">
<label>Table 5</label>
<caption>
<title>Inpainting implementation of quantitative results. Bold indicates the smallest value (smaller is better) when comparing models in each evaluation metric</title>
</caption>
<!---->
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Mask type</th>
<th>Evaluation metric</th>
<th>DeepFill v1<sup>*</sup></th>
<th>Liu&#x2019;s model<sup>*</sup></th>
<th>DeepFill v2<sup>*</sup></th>
<th>Proposed</th>
</tr>
</thead>
<tbody>
<tr>
<td>Regular mask</td>
<td>L1 loss</td>
<td>9.4</td>
<td>9.8</td>
<td>8.6</td>
<td><bold>8.1</bold></td>
</tr>
<tr>
<td/>
<td>TV loss</td>
<td>25.7</td>
<td>26.9</td>
<td>26.6</td>
<td><bold>23.4</bold></td>
</tr>
<tr>
<td/>
<td>L2 loss</td>
<td>2.4</td>
<td>2.3</td>
<td><bold>2.0</bold></td>
<td>2.6</td>
</tr>
<tr>
<td/>
<td>Variance</td>
<td>1.5</td>
<td>1.3</td>
<td><bold>1.2</bold></td>
<td>1.9</td>
</tr>
<tr>
<td>Irregular mask</td>
<td>L1 loss</td>
<td>&#x2013;</td>
<td>10.4</td>
<td>9.1</td>
<td><bold>6.3</bold></td>
</tr>
<tr>
<td/>
<td>TV loss</td>
<td>&#x2013;</td>
<td>27</td>
<td>26.8</td>
<td><bold>22.7</bold></td>
</tr>
<tr>
<td/>
<td>L2 loss</td>
<td>&#x2013;</td>
<td>1.9</td>
<td><bold>1.6</bold></td>
<td>1.7</td>
</tr>
<tr>
<td/>
<td>Variance</td>
<td>&#x2013;</td>
<td><bold>0.8</bold></td>
<td><bold>0.8</bold></td>
<td>1.3</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="fig-7">
<label>Figure 7</label>
<caption>
<title>Comparison of inpainting results for the Places2 test dataset</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-7.png"/>
</fig>
 
<table-wrap id="table-6">
<label>Table 6</label>
<caption>
<title>Accuracy comparison of HISC and SC in inpainting</title>
</caption>
<!---->
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Mask type</th>
<th>Evaluation (%)</th>
<th>SC</th>
<th>HISC</th>
</tr>
</thead>
<tbody>
<tr>
<td>Regular mask</td>
<td>L1 loss</td>
<td>5.1</td>
<td><bold>4.1</bold></td>
</tr>
<tr>
<td/>
<td>L2 loss</td>
<td><bold>1.1</bold></td>
<td>1.3</td>
</tr>
<tr>
<td/>
<td>TV loss</td>
<td>25.3</td>
<td><bold>23.4</bold></td>
</tr>
<tr>
<td>Irregular mask</td>
<td>L1 loss</td>
<td>10.1</td>
<td><bold>6.3</bold></td>
</tr>
<tr>
<td/>
<td>L2 loss</td>
<td>3.1</td>
<td><bold>1.7</bold></td>
</tr>
<tr>
<td/>
<td>TV loss</td>
<td>23.23</td>
<td><bold>22.7</bold></td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="fig-8">
<label>Figure 8</label>
<caption>
<title>Inpainting results of HISC and SC for the Places2 test dataset. The top two images were generated without sketches, and the bottom two images were generated with sketches</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-8.png"/>
</fig>
</sec>
<sec id="s4_3">
<label>4.3</label>
<title>Qualitative Comparison</title>
<p><xref ref-type="fig" rid="fig-7">Fig. 7</xref> illustrates some of the inpainting results by the four models. Overall, our model outperformed the other models visually. For instance, Liu&#x2019;s model produced pixels of different colors than the original color, especially in the background. DeepFill v2 produced some edges or regions in the first and fourth images that were not in the ground truth, although it exhibited reasonable restoration performance. However, the proposed model exhibited excellent restoration results for all images.</p>
</sec>
<sec id="s4_4">
<label>4.4</label>
<title>Skip Connection <italic>vs.</italic> Hadamard Identity Skip Connection</title>
<p>We compared the performance of UFC-net with HISC and UFC-net with SC to validate the effectiveness of HISC. In addition, we used the same conditions as in Sections 4.2 and 4.3 except for the sketch condition. We concatenated sketches during both training and testing with a 50% probability. <xref ref-type="table" rid="table-6">Tab. 6</xref> lists the evaluation results. The HISC outperformed the conventional SC in most cases, particularly for irregular masks. <xref ref-type="fig" rid="fig-8">Fig. 8</xref> illustrates the actual visual effects of HISC and SC in the UFC-net. The SC-based model generated an image in which the mask area and its surroundings were visually separated. In addition, the model adopting the SC technique often produced unintended shapes or colors, whereas HISC did so less often.</p>
<table-wrap id="table-7">
<label>Table 7</label>
<caption>
<title>Quantitative result comparison with 1, 2, 4, 8, and 16 latent fully connected layers</title>
</caption>
<!---->
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th></th>
<th colspan="5">Number of layers in each latent network</th>
</tr>
<tr>
<th>Evaluation (%)</th>
<th>1</th>
<th>2</th>
<th>4</th>
<th>8</th>
<th>16</th>
</tr>
</thead>
<tbody>
<tr>
<td>L1 loss</td>
<td>5.4</td>
<td>5.7</td>
<td>5.8</td>
<td><bold>5.2</bold></td>
<td>5.5</td>
</tr>
<tr>
<td>L2 loss</td>
<td>1.3</td>
<td>1.6</td>
<td>1.7</td>
<td>1.5</td>
<td><bold>1.2</bold></td>
</tr>
<tr>
<td>TV loss</td>
<td>24.0</td>
<td>23.9</td>
<td>23.4</td>
<td><bold>23.1</bold></td>
<td>24.5</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="fig-9">
<label>Figure 9</label>
<caption>
<title>Example of using a sketch (black line) in the erased gray area of the original image</title>
</caption><graphic mimetype="image" mime-subtype="png" xlink:href="fig-9.png"/>
</fig>
</sec>
<sec id="s4_5">
<label>4.5</label>
<title>Effectiveness of the Latent Network and Sketch Input</title>
<p>In this experiment, we evaluated the accuracy of the model according to the number of latent network layers and summarized the results in <xref ref-type="table" rid="table-7">Tab. 7</xref>. Eight FC layers achieved the best performance in L1 loss and TV loss. In contrast, 16 FC layers exhibited the lowest L2 loss. <xref ref-type="fig" rid="fig-9">Fig. 9</xref> illustrates the results of applying a sketch to our model. The image edges were determined along with the sketch, which indicates that the proposed model can perform sketch-based interactive image editing, like DeepFill v2 [<xref ref-type="bibr" rid="ref-15">15</xref>] and SC-FEGAN [<xref ref-type="bibr" rid="ref-19">19</xref>].</p>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Conclusion</title>
<p>In this paper, we proposed an inpainting model by appending FC layers and HISC in the U-net. Our model not only extended the scope of spatial support but also transformed the input distribution to the output distribution smoothly using FC layers. In addition, HISC improved the reconstruction performance and reduced the computational cost compared to the original SC. Through extensive experiments using the Places2 dataset, we found that the proposed model outperformed the state-of-the-art inpainting models in terms of L1 loss and TV loss through diverse sample images. We also verified that HISC could achieve better performance than the original SC for regular and irregular masks. In the near future, we will consider other datasets for testing and improve the UFC-net to cover larger blank areas.</p>
</sec>
</body>
<back>
<fn-group><fn fn-type="other"><p><bold>Funding Statement:</bold> This research was supported in part by NRF (National Research Foundation of Korea) Grant funded by the Korean Government (No. NRF-2020R1F1A1074885) and in part by the Brain Korea 21 FOUR Project in 2021.</p></fn>
<fn fn-type="conflict"><p><bold>Conflicts of Interest:</bold> The authors declare that they have no conflicts of interest to report regarding the present study.</p></fn></fn-group>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>A.</given-names> <surname>Levin</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Zomet</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Peleg</surname></string-name> and <string-name><given-names>Y.</given-names> <surname>Weiss</surname></string-name></person-group>, &#x201C;<article-title>Seamless image stitching in the gradient domain</article-title>,&#x201D; in <conf-name>European Conf. on Computer Vision</conf-name>, <publisher-loc>Prague, Czech Republic</publisher-loc>, pp. <fpage>377</fpage>&#x2013;<lpage>389</lpage>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>E.</given-names> <surname>Park</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Yang</surname></string-name>, <string-name><given-names>E.</given-names> <surname>Yumer</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Ceylan</surname></string-name> and <string-name><given-names>A. C.</given-names> <surname>Berg</surname></string-name></person-group>, &#x201C;<article-title>Transformation-grounded image generation network for novel 3d view synthesis</article-title>,&#x201D; in <conf-name>Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>Honolulu, HI, USA</publisher-loc>, pp. <fpage>3500</fpage>&#x2013;<lpage>3509</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>A.</given-names> <surname>Criminisi</surname></string-name>, <string-name><given-names>P.</given-names> <surname>P&#x00E9;rez</surname></string-name> and <string-name><given-names>K.</given-names> <surname>Toyama</surname></string-name></person-group>, &#x201C;<article-title>Region filling and object removal by exemplar-based image inpainting</article-title>,&#x201D; <source>IEEE Transactions on Image Processing</source>, vol. <volume>13</volume>, no. <issue>9</issue>, pp. <fpage>1200</fpage>&#x2013;<lpage>1212</lpage>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Bertalmio</surname></string-name>, <string-name><given-names>G.</given-names> <surname>Sapiro</surname></string-name>, <string-name><given-names>V.</given-names> <surname>Caselles</surname></string-name> and <string-name><given-names>C.</given-names> <surname>Ballester</surname></string-name></person-group>, &#x201C;<article-title>Image inpainting</article-title>,&#x201D; in <conf-name>Proc. of the 27th Annual Conf. on Computer Graphics and Interactive Techniques</conf-name>, <publisher-loc>New Orleans, LA, USA</publisher-loc>, pp. <fpage>417</fpage>&#x2013;<lpage>424</lpage>, <year>2000</year>.</mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Esedoglu</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Shen</surname></string-name></person-group>, &#x201C;<article-title>Digital inpainting based on the Mumford-Shah-Euler image model</article-title>,&#x201D; <source>European Journal of Applied Mathematics</source>, vol. <volume>13</volume>, no. <issue>4</issue>, pp. <fpage>353</fpage>&#x2013;<lpage>370</lpage>, <year>2001</year>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Sun</surname></string-name>, <string-name><given-names>F.</given-names> <surname>Wu</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Li</surname></string-name> and <string-name><given-names>Y.-Q.</given-names> <surname>Zhang</surname></string-name></person-group>, &#x201C;<article-title>Image compression with edge-based inpainting</article-title>,&#x201D; <source>IEEE Transactions on Circuits and Systems for Video Technology</source>, vol. <volume>17</volume>, no. <issue>10</issue>, pp. <fpage>1273</fpage>&#x2013;<lpage>1287</lpage>, <year>2007</year>.</mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>C.</given-names> <surname>Ballester</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Bertalmio</surname></string-name>, <string-name><given-names>V.</given-names> <surname>Caselles</surname></string-name>, <string-name><given-names>G.</given-names> <surname>Sapiro</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Verdera</surname></string-name></person-group>, &#x201C;<article-title>Filling-in by joint interpolation of vector fields and gray levels</article-title>,&#x201D; <source>IEEE Transactions on Image Processing</source>, vol. <volume>10</volume>, no. <issue>8</issue>, pp. <fpage>1200</fpage>&#x2013;<lpage>1211</lpage>, <year>2001</year>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Darabi</surname></string-name>, <string-name><given-names>E.</given-names> <surname>Shechtman</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Barnes</surname></string-name>, <string-name><given-names>D. B.</given-names> <surname>Goldman</surname></string-name> and <string-name><given-names>P.</given-names> <surname>Sen</surname></string-name></person-group>, &#x201C;<article-title>Image melding: Combining inconsistent images using patch-based synthesis</article-title>,&#x201D; <source>ACM Transactions on Graphics</source>, vol. <volume>31</volume>, no. <issue>4</issue>, pp. <fpage>1</fpage>&#x2013;<lpage>10</lpage>, <year>2012</year>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>J.-B.</given-names> <surname>Huang</surname></string-name>, <string-name><given-names>S. B.</given-names> <surname>Kang</surname></string-name>, <string-name><given-names>N.</given-names> <surname>Ahuja</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Kopf</surname></string-name></person-group>, &#x201C;<article-title>Image completion using planar structure guidance</article-title>,&#x201D; <source>ACM Transactions on Graphics</source>, vol. <volume>33</volume>, no. <issue>4</issue>, pp. <fpage>1</fpage>&#x2013;<lpage>10</lpage>, <year>2014</year>.</mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Sun</surname></string-name>, <string-name><given-names>F.</given-names> <surname>Wu</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Li</surname></string-name> and <string-name><given-names>Y.-Q.</given-names> <surname>Zhang</surname></string-name></person-group>, &#x201C;<article-title>Image compression with edge-based inpainting</article-title>,&#x201D; <source>IEEE Transactions on Circuits and Systems for Video Technology</source>, vol. <volume>17</volume>, no. <issue>10</issue>, pp. <fpage>1273</fpage>&#x2013;<lpage>1287</lpage>, <year>2007</year>.</mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Pathak</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Krahenbuhl</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Donahue</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Darrell</surname></string-name> and <string-name><given-names>A. A.</given-names> <surname>Efros</surname></string-name></person-group>, &#x201C;<article-title>Context encoders: Feature learning by inpainting</article-title>,&#x201D; in <conf-name>Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>Las Vegas, NV, USA</publisher-loc>, pp. <fpage>2536</fpage>&#x2013;<lpage>2544</lpage>, <year>2016</year>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Iizuka</surname></string-name>, <string-name><given-names>E.</given-names> <surname>Simo-Serra</surname></string-name> and <string-name><given-names>H.</given-names> <surname>Ishikawa</surname></string-name></person-group>, &#x201C;<article-title>Globally and locally consistent image completion</article-title>,&#x201D; <source>ACM Transactions on Graphics</source>, vol. <volume>36</volume>, no. <issue>4</issue>, pp. <fpage>1</fpage>&#x2013;<lpage>14</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Yu</surname></string-name>, <string-name><given-names>Z.</given-names> <surname>Lin</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Yang</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Shen</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Lu</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Generative image inpainting with contextual attention</article-title>,&#x201D; in <conf-name>Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>Salt Lake City, UT, USA</publisher-loc>, pp. <fpage>5505</fpage>&#x2013;<lpage>5514</lpage>, <year>2018</year>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>G.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>F. A.</given-names> <surname>Reda</surname></string-name>, <string-name><given-names>K. J.</given-names> <surname>Shih</surname></string-name>, <string-name><given-names>T.-C.</given-names> <surname>Wang</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Tao</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Image inpainting for irregular holes using partial convolutions</article-title>,&#x201D; in <conf-name>Proc. of the European Conf. on Computer Vision</conf-name>, <publisher-loc>Munich, Germany</publisher-loc>, pp. <fpage>85</fpage>&#x2013;<lpage>100</lpage>, <year>2018</year>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Yu</surname></string-name>, <string-name><given-names>Z.</given-names> <surname>Lin</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Yang</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Shen</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Lu</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Free-form image inpainting with gated convolution</article-title>,&#x201D; in <conf-name>Proc. of the IEEE/CVF Int. Conf. on Computer Vision</conf-name>, <publisher-loc>Seoul, Korea</publisher-loc>, pp. <fpage>4471</fpage>&#x2013;<lpage>4480</lpage>, <year>2019</year>.</mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>I. J.</given-names> <surname>Goodfellow</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Pouget-Abadie</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Mirza</surname></string-name>, <string-name><given-names>B.</given-names> <surname>Xu</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Warde-Farley</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Generative adversarial networks</article-title>,&#x201D; <comment>arXiv preprint arXiv:1406.2661</comment>, <year>2014</year>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>B.</given-names> <surname>Zhou</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Lapedriza</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Khosla</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Oliva</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Torralba</surname></string-name></person-group>, &#x201C;<article-title>Places: A 10 million image database for scene recognition</article-title>,&#x201D; <source>IEEE Transactions on Pattern Analysis and Machine Intelligence</source>, vol. <volume>40</volume>, no. <issue>6</issue>, pp. <fpage>1452</fpage>&#x2013;<lpage>1464</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>P.</given-names> <surname>Teterwak</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Sarna</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Krishnan</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Maschinot</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Belanger</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Boundless: Generative adversarial networks for image extension</article-title>,&#x201D; in <conf-name>Proc. of the IEEE/CVF Int. Conf. on Computer Vision</conf-name>, <publisher-loc>Seoul, Korea</publisher-loc>, pp. <fpage>10521</fpage>&#x2013;<lpage>10530</lpage>, <year>2019</year>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>Jo</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Park</surname></string-name></person-group>, &#x201C;<article-title>SC-FEGAN: Face editing generative adversarial network with user&#x2019;s sketch and color</article-title>,&#x201D; in <conf-name>Proc. of the IEEE/CVF Int. Conf. on Computer Vision</conf-name>, <publisher-loc>Seoul, Korea</publisher-loc>, pp. <fpage>1745</fpage>&#x2013;<lpage>1753</lpage>, <year>2019</year>.</mixed-citation></ref>
<ref id="ref-20"><label>[20]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>O.</given-names> <surname>Ronneberger</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Fischer</surname></string-name> and <string-name><given-names>T.</given-names> <surname>Brox</surname></string-name></person-group>, &#x201C;<article-title>U-net: Convolutional networks for biomedical image segmentation</article-title>,&#x201D; in <conf-name>Int. Conf. on Medical Image Computing and Computer-Assisted Intervention</conf-name>, <publisher-loc>Munich, Germany</publisher-loc>, pp. <fpage>234</fpage>&#x2013;<lpage>241</lpage>, <year>2015</year>.</mixed-citation></ref>
<ref id="ref-21"><label>[21]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>G.</given-names> <surname>Huang</surname></string-name>, <string-name><given-names>Z.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>L. Van Der</given-names> <surname>Maaten</surname></string-name> and <string-name><given-names>K. Q.</given-names> <surname>Weinberger</surname></string-name></person-group>, &#x201C;<article-title>Densely connected convolutional networks</article-title>,&#x201D; in <conf-name>Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>Honolulu, HI, USA</publisher-loc>, pp. <fpage>4700</fpage>&#x2013;<lpage>4708</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-22"><label>[22]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>K.</given-names> <surname>He</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Ren</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Sun</surname></string-name></person-group>, &#x201C;<article-title>Deep residual learning for image recognition</article-title>,&#x201D; in <conf-name>Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>Las Vegas, NV, USA</publisher-loc>, pp. <fpage>770</fpage>&#x2013;<lpage>778</lpage>, <year>2016</year>.</mixed-citation></ref>
<ref id="ref-23"><label>[23]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>K.</given-names> <surname>Nazeri</surname></string-name>, <string-name><given-names>E.</given-names> <surname>Ng</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Joseph</surname></string-name>, <string-name><given-names>F.</given-names> <surname>Qureshi</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Ebrahimi</surname></string-name></person-group>, &#x201C;<article-title>Edgeconnect: Structure guided image inpainting using edge prediction</article-title>,&#x201D; in <conf-name>Proc. of the IEEE/CVF Int. Conf. on Computer Vision Workshops</conf-name>, <publisher-loc>Seoul, Korea</publisher-loc>, <year>2019</year>.</mixed-citation></ref>
<ref id="ref-24"><label>[24]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Johnson</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Alahi</surname></string-name> and <string-name><given-names>L.</given-names> <surname>Fei-Fei</surname></string-name></person-group>, &#x201C;<article-title>Perceptual losses for real-time style transfer and super-resolution</article-title>,&#x201D; in <conf-name>European Conf. on Computer Vision</conf-name>, <publisher-loc>Amsterdam, The Netherlands</publisher-loc>, pp. <fpage>694</fpage>&#x2013;<lpage>711</lpage>, <year>2016</year>.</mixed-citation></ref>
<ref id="ref-25"><label>[25]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>L. A.</given-names> <surname>Gatys</surname></string-name>, <string-name><given-names>A. S.</given-names> <surname>Ecker</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Bethge</surname></string-name></person-group>, &#x201C;<article-title>A neural algorithm of artistic style</article-title>,&#x201D; <comment>arXiv preprint arXiv:1508.06576</comment>, <year>2015</year>.</mixed-citation></ref>
<ref id="ref-26"><label>[26]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>Ren</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Yu</surname></string-name>, <string-name><given-names>R.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>T. H.</given-names> <surname>Li</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Liu</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Structureflow: Image inpainting via structure-aware appearance flow</article-title>,&#x201D; in <conf-name>Proc. of the IEEE/CVF Int. Conf. on Computer Vision</conf-name>, <publisher-loc>Seoul, Korea</publisher-loc>, pp. <fpage>181</fpage>&#x2013;<lpage>190</lpage>, <year>2019</year>.</mixed-citation></ref>
<ref id="ref-27"><label>[27]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>A.</given-names> <surname>Krizhevsky</surname></string-name>, <string-name><given-names>I.</given-names> <surname>Sutskever</surname></string-name> and <string-name><given-names>G. E.</given-names> <surname>Hinton</surname></string-name></person-group>, &#x201C;<article-title>Imagenet classification with deep convolutional neural networks</article-title>,&#x201D; <source>Communications of the ACM</source>, vol. <volume>60</volume>, no. <issue>6</issue>, pp. <fpage>84</fpage>&#x2013;<lpage>90</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-28"><label>[28]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>M. D.</given-names> <surname>Zeiler</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Krishnan</surname></string-name>, <string-name><given-names>G. W.</given-names> <surname>Taylor</surname></string-name> and <string-name><given-names>R.</given-names> <surname>Fergus</surname></string-name></person-group>, &#x201C;<article-title>Deconvolutional networks</article-title>,&#x201D; in <conf-name>2010 IEEE Computer Society Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>San Francisco, California</publisher-loc>, pp. <fpage>2528</fpage>&#x2013;<lpage>2535</lpage>, <year>2010</year>.</mixed-citation></ref>
<ref id="ref-29"><label>[29]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>F.</given-names> <surname>Yu</surname></string-name> and <string-name><given-names>V.</given-names> <surname>Koltun</surname></string-name></person-group>, &#x201C;<article-title>Multi-scale context aggregation by dilated convolutions</article-title>,&#x201D; <comment>arXiv preprint arXiv:1511.07122</comment>, <year>2015</year>.</mixed-citation></ref>
<ref id="ref-30"><label>[30]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>LeCun</surname></string-name>, <string-name><given-names>B.</given-names> <surname>Boser</surname></string-name>, <string-name><given-names>J. S.</given-names> <surname>Denker</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Henderson</surname></string-name>, <string-name><given-names>R. E.</given-names> <surname>Howard</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Backpropagation applied to handwritten zip code recognition</article-title>,&#x201D; <source>Neural Computation</source>, vol. <volume>1</volume>, no. <issue>4</issue>, pp. <fpage>541</fpage>&#x2013;<lpage>551</lpage>, <year>1989</year>.</mixed-citation></ref>
<ref id="ref-31"><label>[31]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>A.</given-names> <surname>Radford</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Metz</surname></string-name> and <string-name><given-names>S.</given-names> <surname>Chintala</surname></string-name></person-group>, &#x201C;<article-title>Unsupervised representation learning with deep convolutional generative adversarial networks</article-title>,&#x201D; <comment>arXiv preprint arXiv:1511.06434</comment>, <year>2015</year>.</mixed-citation></ref>
<ref id="ref-32"><label>[32]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>X.</given-names> <surname>Hong</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Xiong</surname></string-name>, <string-name><given-names>R.</given-names> <surname>Ji</surname></string-name> and <string-name><given-names>H.</given-names> <surname>Fan</surname></string-name></person-group>, &#x201C;<article-title>Deep fusion network for image completion</article-title>,&#x201D; in <conf-name>Proc. of the 27th ACM Int. Conf. on Multimedia</conf-name>, <publisher-loc>New York, NY, United States</publisher-loc>, pp. <fpage>2033</fpage>&#x2013;<lpage>2042</lpage>, <year>2019</year>.</mixed-citation></ref>
<ref id="ref-33"><label>[33]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>Ren</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Yu</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>T. H.</given-names> <surname>Li</surname></string-name> and <string-name><given-names>G.</given-names> <surname>Li</surname></string-name></person-group>, &#x201C;<article-title>Deep image spatial transformation for person image generation</article-title>,&#x201D; in <conf-name>Proc. of the IEEE/CVF Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>Seattle, United States</publisher-loc>, pp. <fpage>7690</fpage>&#x2013;<lpage>7699</lpage>, <year>2020</year>.</mixed-citation></ref>
<ref id="ref-34"><label>[34]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>T.</given-names> <surname>Karras</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Laine</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Aittala</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Hellsten</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Lehtinen</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Analyzing and improving the image quality of stylegan</article-title>,&#x201D; in <conf-name>Proc. of the IEEE/CVF Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>Seattle, United States</publisher-loc>, pp. <fpage>8110</fpage>&#x2013;<lpage>8119</lpage>, <year>2020</year>.</mixed-citation></ref>
<ref id="ref-35"><label>[35]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Ioffe</surname></string-name> and <string-name><given-names>C.</given-names> <surname>Szegedy</surname></string-name></person-group>, &#x201C;<article-title>Batch normalization: Accelerating deep network training by reducing internal covariate shift</article-title>,&#x201D; in <conf-name>Int. Conf. on Machine Learning</conf-name>, <publisher-loc>Lille, France</publisher-loc>, pp. <fpage>448</fpage>&#x2013;<lpage>456</lpage>, <year>2015</year>.</mixed-citation></ref>
<ref id="ref-36"><label>[36]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>P.</given-names> <surname>Isola</surname></string-name>, <string-name><given-names>J.-Y.</given-names> <surname>Zhu</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Zhou</surname></string-name> and <string-name><given-names>A. A.</given-names> <surname>Efros</surname></string-name></person-group>, &#x201C;<article-title>Image-to-image translation with conditional adversarial networks</article-title>,&#x201D; in <conf-name>Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <publisher-loc>Honolulu, HI, USA</publisher-loc>, pp. <fpage>1125</fpage>&#x2013;<lpage>1134</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-37"><label>[37]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>T.</given-names> <surname>Miyato</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Kataoka</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Koyama</surname></string-name> and <string-name><given-names>Y.</given-names> <surname>Yoshida</surname></string-name></person-group>, &#x201C;<article-title>Spectral normalization for generative adversarial networks</article-title>,&#x201D; <comment>arXiv preprint arXiv:1802.05957</comment>, <year>2018</year>.</mixed-citation></ref>
<ref id="ref-38"><label>[38]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>C.-I.</given-names> <surname>Kim</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Kim</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Jung</surname></string-name> and <string-name><given-names>E.</given-names> <surname>Hwang</surname></string-name></person-group>, &#x201C;<article-title>Simplified fr&#x00E9;chet distance for generative adversarial nets</article-title>,&#x201D; <source>Sensors</source>, vol. <volume>20</volume>, no. <issue>6</issue>, pp. <fpage>1548</fpage>, <year>2020</year>.</mixed-citation></ref>
<ref id="ref-39"><label>[39]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Canny</surname></string-name></person-group>, &#x201C;<article-title>A computational approach to edge detection</article-title>,&#x201D; <source>IEEE Transactions on Pattern Analysis and Machine Intelligence</source>, vol. <volume>8</volume>, no. <issue>6</issue>, pp. <fpage>679</fpage>&#x2013;<lpage>698</lpage>, <year>1986</year>.</mixed-citation></ref>
<ref id="ref-40"><label>[40]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>D. P.</given-names> <surname>Kingma</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Ba</surname></string-name></person-group>, &#x201C;<article-title>Adam: A method for stochastic optimization</article-title>,&#x201D; <comment>arXiv preprint arXiv:1412.6980</comment>, <year>2014</year>.</mixed-citation></ref>
<ref id="ref-41"><label>[41]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Heusel</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Ramsauer</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Unterthiner</surname></string-name>, <string-name><given-names>B.</given-names> <surname>Nessler</surname></string-name> and <string-name><given-names>S.</given-names> <surname>Hochreiter</surname></string-name></person-group>, &#x201C;<article-title>Gans trained by a two time-scale update rule converge to a local nash equilibrium</article-title>,&#x201D; <comment>arXiv preprint arXiv:1706.08500</comment>, <year>2017</year>.</mixed-citation></ref>
</ref-list>
</back>
</article>