<?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">12223</article-id>
<article-id pub-id-type="doi">10.32604/cmc.2020.012223</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>A 360-Degree Panoramic Image Inpainting Network Using a Cube Map</article-title><alt-title alt-title-type="left-running-head">A 360-Degree Panoramic Image Inpainting Network Using a Cube Map</alt-title><alt-title alt-title-type="right-running-head">A 360-Degree Panoramic Image Inpainting Network Using a Cube Map</alt-title>
</title-group>
<contrib-group content-type="authors">
<contrib id="author-1" contrib-type="author">
<name name-style="western">
<surname>Han</surname>
<given-names>Seo Woo</given-names>
</name>
</contrib>
<contrib id="author-2" contrib-type="author" corresp="yes">
<name name-style="western">
<surname>Suh</surname>
<given-names>Doug Young</given-names>
</name>
<email>suh@khu.ac.kr</email>
</contrib><aff><institution>Department of Electronic Engineering, Kyung Hee University</institution>, <addr-line>Youngin, 17104</addr-line>, <country>South Korea</country></aff>
</contrib-group><author-notes><corresp id="cor1">&#x002A;Corresponding Author: Doug Young Suh. Email:<email>suh@khu.ac.kr</email></corresp></author-notes>
<pub-date pub-type="epub" date-type="pub" iso-8601-date="2020-10-30">
<day>30</day>
<month>10</month>
<year>2020</year>
</pub-date>
<volume>66</volume>
<issue>1</issue>
<fpage>213</fpage>
<lpage>228</lpage>
<history>
<date date-type="received">
<day>20</day>
<month>6</month>
<year>2020</year>
</date>
<date date-type="accepted">
<day>10</day>
<month>7</month>
<year>2020</year>
</date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2020 Han and Suh</copyright-statement>
<copyright-year>2020</copyright-year>
<copyright-holder>Han and Suh</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_12223.pdf"></self-uri>
<abstract>
<p>Inpainting has been continuously studied in the field of computer vision. As artificial intelligence technology developed, deep learning technology was introduced in inpainting research, helping to improve performance. Currently, the input target of an inpainting algorithm using deep learning has been studied from a single image to a video. However, deep learning-based inpainting technology for panoramic images has not been actively studied. We propose a 360-degree panoramic image inpainting method using generative adversarial networks (GANs). The proposed network inputs a 360-degree equirectangular format panoramic image converts it into a cube map format, which has relatively little distortion and uses it as a training network. Since the cube map format is used, the correlation of the six sides of the cube map should be considered. Therefore, all faces of the cube map are used as input for the whole discriminative network, and each face of the cube map is used as input for the slice discriminative network to determine the authenticity of the generated image. The proposed network performed qualitatively better than existing single-image inpainting algorithms and baseline algorithms.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Panoramic image</kwd>
<kwd>image inpainting</kwd>
<kwd>cube map</kwd>
<kwd>generative adversarial networks</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>The consumption of images and videos increases exponentially as technology advances. People and devices not only consume images but actively generate images and videos. This trend has made an image and video editing and modification essential. An inpainting algorithm is a technique for restoring an image and removing unwanted objects based on information such as the texture or edges of an object [<xref ref-type="bibr" rid="ref-1">1</xref>]. Inpainting is used in many fields, such as image restoration [<xref ref-type="bibr" rid="ref-2">2</xref>,<xref ref-type="bibr" rid="ref-3">3</xref>], video transmission error repair [<xref ref-type="bibr" rid="ref-4">4</xref>], and image editing [<xref ref-type="bibr" rid="ref-5">5</xref>]. Inpainting has been a long-standing challenge in the field of computer vision [<xref ref-type="bibr" rid="ref-6">6</xref>]. Inpainting methods can be divided into non-learning-based methods and learning-based methods. Non-learning-based methods are divided into patch-based methods and diffusion-based methods. Patch-based methods [<xref ref-type="bibr" rid="ref-7">7</xref>,<xref ref-type="bibr" rid="ref-8">8</xref>] are used to fill a hole in an image by finding a similar pattern in an intact area within the image with which to fill the hole. Conversely, diffusion-based methods [<xref ref-type="bibr" rid="ref-9">9</xref>] fill a hole by successively filling in small portions from around the boundaries of the hole based on information gathered from the periphery of the hole. Elharrouss et al. [<xref ref-type="bibr" rid="ref-10">10</xref>] Non-learning-based methods do not require a dataset or training a network so that inpainted results can be obtained with less calculation. However, if the background doesn&#x2019;t feature a repeated pattern or the hole is exceptionally large, the inpainted results are not good [<xref ref-type="bibr" rid="ref-11">11</xref>]. To solve this problem, some researchers have studied learning-based methods. Methods using deep learning can be divided into those using convolution neural networks (CNNs) and those using generative adversarial networks (GANs). Recently, research on inpainting using GANs has been actively conducted because the features of GANs generate similar patterns based on the input image rather than simply using the information in the image, resulting in more plausible inpainted results. Generating datasets and training networks are time-consuming, but the inpainted results are more plausible compared to those of non-learning-based methods. However, the results of inpainting using deep learning are not good when filling exceptionally large holes or when the image features intricate patterns. Liu et al. [<xref ref-type="bibr" rid="ref-12">12</xref>] Research on image inpainting is continuing, and research on video inpainting is also actively underway. Video inpainting is difficult when applying an algorithm dedicated to image inpainting because video inpainting requires an accurate contextual understanding of frame and motion as well as the temporal smoothness of the output video [<xref ref-type="bibr" rid="ref-13">13</xref>]. Therefore, an inpainting algorithm using temporal and spatial information in video has been studied. Representative studies include a consistency-aware learning framework which simultaneously generates appearance and flow [<xref ref-type="bibr" rid="ref-14">14</xref>] and a method using high-quality optical flow [<xref ref-type="bibr" rid="ref-15">15</xref>].</p>
<p>In this paper, we study a method of panoramic inpainting. The panoramic image, or panorama, is an image with a wide-angle of view. Panoramas are used for a variety of purposes, including landscape photography, group photography, and street views. Zhu et al. [<xref ref-type="bibr" rid="ref-16">16</xref>] Advances in camera technology have made it possible to shoot panoramic images, 360-degree panoramic images, and 360-degree videos without expensive professional equipment. 360-degree panoramas help create immersive content used to represent virtual reality (VR) and describe real space in a three-dimensional sense with a head-mounted display (HMD) used when viewing VR content. Very little research has been done on inpainting panoramic images. The inpainted result of a single-image inpainting algorithm on an equirectangular format panoramic image input is not good because the distortion of an equirectangular format panoramic image is not trained. Also, a memory shortage typically occurs during network training due to the very high resolution of equirectangular format panoramic images. To solve these two problems, we use a cube map format for the panoramic image inpainting instead of an equirectangular format.</p>
<p>The main contributions of this paper are as follows. First of all, a novel 360-degree panoramic image inpainting algorithm using deep learning is proposed. Instead of an equirectangular format, we use a cube map format with less distortion and propose a network structure which understands the correlation of the six sides of the cube map. Secondly, to train the cube map format panoramic image inpainting network, we use whole and slice discriminative networks trained to distinguish real images from inpainted results. The whole discriminative network looks at each entire cube map face to assess if it is correlative as a cube map image. The slice discriminative network looks at each face of the cube map to ensure local consistency. Finally, we validated the proposed network using 360-degree StreetView, the only publicly available 360&#x2013;degree panoramic image dataset.</p>
<p>The paper is organized as follows: Section 2 briefly introduces the theoretical background. Section 3 explains the proposed model, and Section 4 describes the dataset used to train the proposed network. Section 5 describes the experiment and analysis with the proposed network, and Section 6 summarizes the results.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Related Works</title>
<p>This section briefly introduces a single image inpainting algorithm, a panoramic image inpainting algorithm, a conceptual description of a generative adversarial network, and research trends.</p>
<sec id="s2_1">
<label>2.1</label>
<title>Single Image Inpainting</title>
<p>An inpainting algorithm can erase unwanted objects in an image or plausibly restore damaged or missing parts of an image. Inpainting technology is gradually diversifying from single images to videos. As mentioned in Section 1, inpainting is divided into non-learning-based methods and learning-based methods. Non-learning-based methods are effective in restoring texture but have difficulty in restoring overall shape. Yan et al. [<xref ref-type="bibr" rid="ref-17">17</xref>] For better performance than non-learning-based methods, an encoder-decoder network structure using CNNs has been proposed. Reference Zhu et al. [<xref ref-type="bibr" rid="ref-18">18</xref>] proposed a patch-based inpainting method for forensics images. U-nets Ronneberger et al. [<xref ref-type="bibr" rid="ref-19">19</xref>] and dense blocks were used to alleviate the gradient disappearance effect [<xref ref-type="bibr" rid="ref-20">20</xref>]. The latest trend in inpainting research is the use of GANs. A conceptual explanation of a GAN is given in Section 2.3. The use of only CNNs imposes many limitations because CNNs use only information from the input image. However, GANs can generate similar information based on the input image, so the inpainted result is more plausible than that of a method which only uses CNNs. Reference Liu et al. [<xref ref-type="bibr" rid="ref-21">21</xref>] proposed an inpainting method for faces using GANs. Since only GANs are used, the image resolution is low or tends to be unstable for training purposes. Therefore, many network structures using both CNNs and GANs have been proposed. In Nazeri et al. [<xref ref-type="bibr" rid="ref-22">22</xref>], a two-stage generator architecture was proposed to generate an image based on the edges around the hole in an image. After estimating the edge of the hole, the texture inside the edge is restored. The GAN-based inpainting method shows good performance but takes a long time to learn and has the disadvantage of requiring a high-performance training machine to calculate many parameters and perform many convolution operations.</p>
</sec>
<sec id="s2_2">
<label>2.2</label>
<title>Panoramic Image Inpainting</title>
<p>There are many ways to use inpainting algorithms on panoramic images. Just like an inpainting algorithm is used on a single image, it is used to erase unwanted objects in a panoramic image and reconstruct a damaged image. The study of panoramic inpainting has not progressed much compared to the study of single image inpainting. Zhu et al. [<xref ref-type="bibr" rid="ref-16">16</xref>] proposed a method for inpainting the lower part of a 360-degree panoramic image. This algorithm requires the projection map of the panoramic image. After the input image is projected onto a sphere, the lines and shapes are preserved and inpainted through matrix calculation. This algorithm inpaints only the lower part of the panoramic image, and the inpainted result is not good because it is not a learning-based method. Besides, it is limited in that it only works on images with simple patterns. Akimoto et al. [<xref ref-type="bibr" rid="ref-23">23</xref>] proposed an inpainting method using GANs using the symmetry of a 360-degree panoramic image. In this paper, there is no function to remove a specific object in an image. Only half of the buildings in a 360-degree panoramic street view image are used as input to the proposed network. This network restores a missing building by mirroring the building with the input image. After that, empty space is filled with plausible content. Uittenbogaard et al. [<xref ref-type="bibr" rid="ref-24">24</xref>] proposed the need for inpainting in a panorama to ensure privacy within a street view. This paper proposed a GAN-based inpainting algorithm using a multi-view of a 360-degree video with depth information which could detect and remove moving objects within the video. However, it has the limitation that it cannot be used on a single image. Also, to protect privacy, it provides results by blurring the detected object rather than erasing the object and filling its contents. Panoramic inpainting is also used in image extension technology that converts a single image into wide field-of-view images like a panoramic image. Extending images using existing inpainting algorithms leads to blurry results. To solve this problem, Teterwak et al. [<xref ref-type="bibr" rid="ref-25">25</xref>] proposed a panorama generation and image expansion technique by applying semantic conditioning to a GAN discriminative network.</p>
</sec>
<sec id="s2_3">
<label>2.3</label>
<title>Generative Adversarial Networks</title>
<p>Generative adversarial networks Goodfellow et al. [<xref ref-type="bibr" rid="ref-26">26</xref>] have brought about tremendous advances in artificial intelligence. GANs are composed of two networks, as shown in <xref ref-type="fig" rid="fig-1">Fig. 1</xref>: A generator, which creates new data instances, and a discriminator, which evaluates authenticity. The generator is called a generative network, and the discriminator is called a discriminative network. The generative network takes as its input a random vector <inline-formula id="ieqn-1">
<alternatives><inline-graphic xlink:href="ieqn-1.png"/><tex-math id="tex-ieqn-1"><![CDATA[$z$]]></tex-math><mml:math id="mml-ieqn-1"><mml:mi>z</mml:mi></mml:math>
</alternatives></inline-formula> to generate an image. At this time, the discriminative network receives the real image and the image created from the generative network as inputs to determine which image is real or fake. The goal of the adversarial network is to make the newly created data instance in the generative network and the real image indistinguishable to the discriminative network.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Generative adversarial networks architecture</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-1.png"/>
</fig>
<p>For generative adversarial networks, the objective function satisfies <xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>. As in game theory, the two networks find a balance point with a single objective function.</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[$$\mathop {min }\limits_G \mathop {max }\limits_D V\left( {G,D} \right) = {E_{x \sim {P_{data}}\left( x \right)}}\left[ {\log D\left( x \right)} \right] + {E_{x \sim {P_z}\left( z \right)}}\left[ {\log \{ 1 - D\left( {G\left( z \right)} \right)\} } \right]$$]]></tex-math><mml:math id="mml-eqn-1" display="block"><mml:munder><mml:mrow><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow><mml:mi>G</mml:mi></mml:munder><mml:mo>&#x2061;</mml:mo><mml:munder><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow><mml:mi>D</mml:mi></mml:munder><mml:mo>&#x2061;</mml:mo><mml:mi>V</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mo>,</mml:mo><mml:mi>D</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x003D;</mml:mo><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>x</mml:mi><mml:mo>&#x223C;</mml:mo><mml:mrow><mml:msub><mml:mi>P</mml:mi><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:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x002B;</mml:mo><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>x</mml:mi><mml:mo>&#x223C;</mml:mo><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mi>z</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mi>z</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</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:mi>z</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo fence="false" stretchy="false">}</mml:mo></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math>
</alternatives></disp-formula></p>
<p>Let the real data be <inline-formula id="ieqn-2">
<alternatives><inline-graphic xlink:href="ieqn-2.png"/><tex-math id="tex-ieqn-2"><![CDATA[$x$]]></tex-math><mml:math id="mml-ieqn-2"><mml:mi>x</mml:mi></mml:math>
</alternatives></inline-formula>. The actual data distribution is <inline-formula id="ieqn-3">
<alternatives><inline-graphic xlink:href="ieqn-3.png"/><tex-math id="tex-ieqn-3"><![CDATA[${P_{data}}\left( x \right)$]]></tex-math><mml:math id="mml-ieqn-3"><mml:mrow><mml:msub><mml:mi>P</mml:mi><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:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math>
</alternatives></inline-formula> and the random vector distribution is <inline-formula id="ieqn-4">
<alternatives><inline-graphic xlink:href="ieqn-4.png"/><tex-math id="tex-ieqn-4"><![CDATA[${P_z}\left( z \right)$]]></tex-math><mml:math id="mml-ieqn-4"><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mi>z</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mi>z</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math>
</alternatives></inline-formula>. GANs learn to maximize the value function <inline-formula id="ieqn-5">
<alternatives><inline-graphic xlink:href="ieqn-5.png"/><tex-math id="tex-ieqn-5"><![CDATA[$V$]]></tex-math><mml:math id="mml-ieqn-5"><mml:mi>V</mml:mi></mml:math>
</alternatives></inline-formula> for <inline-formula id="ieqn-6">
<alternatives><inline-graphic xlink:href="ieqn-6.png"/><tex-math id="tex-ieqn-6"><![CDATA[$D$]]></tex-math><mml:math id="mml-ieqn-6"><mml:mi>D</mml:mi></mml:math>
</alternatives></inline-formula> and <inline-formula id="ieqn-7">
<alternatives><inline-graphic xlink:href="ieqn-7.png"/><tex-math id="tex-ieqn-7"><![CDATA[$G$]]></tex-math><mml:math id="mml-ieqn-7"><mml:mi>G</mml:mi></mml:math>
</alternatives></inline-formula> to minimize <inline-formula id="ieqn-8">
<alternatives><inline-graphic xlink:href="ieqn-8.png"/><tex-math id="tex-ieqn-8"><![CDATA[$\log \{ 1 - D\left( {G\left( z \right)} \right)\}$]]></tex-math><mml:math id="mml-ieqn-8"><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mo stretchy="false" fence="false">{</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</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:mi>z</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo stretchy="false" fence="false">}</mml:mo></mml:math>
</alternatives></inline-formula>. Discriminative networks are trained such that <inline-formula id="ieqn-9">
<alternatives><inline-graphic xlink:href="ieqn-9.png"/><tex-math id="tex-ieqn-9"><![CDATA[$D\left( {G\left( z \right)} \right)$]]></tex-math><mml:math id="mml-ieqn-9"><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:mi>z</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</alternatives></inline-formula> is 0 and <inline-formula id="ieqn-10">
<alternatives><inline-graphic xlink:href="ieqn-10.png"/><tex-math id="tex-ieqn-10"><![CDATA[$D\left( x \right)$]]></tex-math><mml:math id="mml-ieqn-10"><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math>
</alternatives></inline-formula> is 1. The discriminative network trains to distinguish whether the input image is a generated image or a real image. The generative network trains the network so that the generated image is as similar as possible to the real image. Therefore, this structure is called a generative adversarial network because the generative and discriminative networks are trained as adversarial.</p>
<p>In conditional GANs, the input of the generative network is a random vector. Conditional generative adversarial networks (cGANs) Isol et al. [<xref ref-type="bibr" rid="ref-27">27</xref>] are complementary and modified structures which incorporate existing GANs into images. cGANs train the mapping function from one image domain to another image domain and distinguish whether it is real or not through a discriminative network. The objective function of a cGAN satisfies <xref ref-type="disp-formula" rid="eqn-2">Eq. (2)</xref>. The first and second terms are the same as the existing GANs&#x2019; objective function. <inline-formula id="ieqn-11">
<alternatives><inline-graphic xlink:href="ieqn-11.png"/><tex-math id="tex-ieqn-11"><![CDATA[$x$]]></tex-math><mml:math id="mml-ieqn-11"><mml:mi>x</mml:mi></mml:math>
</alternatives></inline-formula> and <inline-formula id="ieqn-12">
<alternatives><inline-graphic xlink:href="ieqn-12.png"/><tex-math id="tex-ieqn-12"><![CDATA[$y$]]></tex-math><mml:math id="mml-ieqn-12"><mml:mi>y</mml:mi></mml:math>
</alternatives></inline-formula> are paired. Let <inline-formula id="ieqn-13">
<alternatives><inline-graphic xlink:href="ieqn-13.png"/><tex-math id="tex-ieqn-13"><![CDATA[$x$]]></tex-math><mml:math id="mml-ieqn-13"><mml:mi>x</mml:mi></mml:math>
</alternatives></inline-formula> be the actual image and <inline-formula id="ieqn-14">
<alternatives><inline-graphic xlink:href="ieqn-14.png"/><tex-math id="tex-ieqn-14"><![CDATA[$y$]]></tex-math><mml:math id="mml-ieqn-14"><mml:mi>y</mml:mi></mml:math>
</alternatives></inline-formula> the label image. <inline-formula id="ieqn-15">
<alternatives><inline-graphic xlink:href="ieqn-15.png"/><tex-math id="tex-ieqn-15"><![CDATA[$z$]]></tex-math><mml:math id="mml-ieqn-15"><mml:mi>z</mml:mi></mml:math>
</alternatives></inline-formula> is a random vector used in the existing GANs.</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[$$\mathop {\min }\limits_G \mathop {\max }\limits_D V\left( {G,D} \right) = {E_{x,y}}\left[ {\log D\left( {x,y} \right)} \right] + {E_{x,z}}\left[ {\log \{ 1 - D\left( {x,G\left( {x,z} \right)} \right)\} } \right]$$]]></tex-math><mml:math id="mml-eqn-2" display="block"><mml:munder><mml:mrow><mml:mo form="prefix">min</mml:mo></mml:mrow><mml:mi>G</mml:mi></mml:munder><mml:mo>&#x2061;</mml:mo><mml:munder><mml:mrow><mml:mo form="prefix">max</mml:mo></mml:mrow><mml:mi>D</mml:mi></mml:munder><mml:mo>&#x2061;</mml:mo><mml:mi>V</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mo>,</mml:mo><mml:mi>D</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x003D;</mml:mo><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x002B;</mml:mo><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mo stretchy="false" fence="false">{</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo stretchy="false" fence="false">}</mml:mo></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math>
</alternatives></disp-formula></p>
<p>Gulrajani et al. [<xref ref-type="bibr" rid="ref-28">28</xref>] confirmed that it is more effective to use the objective function of cGANs with traditional loss functions rather than simply using the objective function of cGANs. Therefore, the reconstruction loss function used in the CNN-based learning method was adopted. It was explained that the <inline-formula id="ieqn-16">
<alternatives><inline-graphic xlink:href="ieqn-16.png"/><tex-math id="tex-ieqn-16"><![CDATA[${L_1}$]]></tex-math><mml:math id="mml-ieqn-16"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> distance or the <inline-formula id="ieqn-17">
<alternatives><inline-graphic xlink:href="ieqn-17.png"/><tex-math id="tex-ieqn-17"><![CDATA[$\; {L_2}$]]></tex-math><mml:math id="mml-ieqn-17"><mml:mspace width="thickmathspace"></mml:mspace><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> distance were used as a reconstruction loss function, and several tasks were tested, but the distance <inline-formula id="ieqn-18">
<alternatives><inline-graphic xlink:href="ieqn-18.png"/><tex-math id="tex-ieqn-18"><![CDATA[${L_1}$]]></tex-math><mml:math id="mml-ieqn-18"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> showed less blurry results than the distance <inline-formula id="ieqn-19">
<alternatives><inline-graphic xlink:href="ieqn-19.png"/><tex-math id="tex-ieqn-19"><![CDATA[$\; {L_2}$]]></tex-math><mml:math id="mml-ieqn-19"><mml:mspace width="thickmathspace"></mml:mspace><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> and was used as the final objective function. The final objective function used in [<xref ref-type="bibr" rid="ref-28">28</xref>] satisfies <xref ref-type="disp-formula" rid="eqn-3">Eq. (3)</xref></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[$$\mathop {\min }\limits_G \mathop {\max }\limits_D V\left( {G,D} \right) = {E_{x,y}}\left[ {\log D\left( {x,y} \right)} \right] + {E_{x,z}}\left[ {\log \{ 1 - D\left( {x,G\left( {x,z} \right)} \right)\} } \right] + \lambda {E_{x,y,z}}\left[ ||{y - G{{\left( {x,z} \right)}||_1}} \right]$$]]></tex-math><mml:math id="mml-eqn-3" display="block"><mml:munder><mml:mrow><mml:mo form="prefix">min</mml:mo></mml:mrow><mml:mi>G</mml:mi></mml:munder><mml:mo>&#x2061;</mml:mo><mml:munder><mml:mrow><mml:mo form="prefix">max</mml:mo></mml:mrow><mml:mi>D</mml:mi></mml:munder><mml:mo>&#x2061;</mml:mo><mml:mi>V</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mo>,</mml:mo><mml:mi>D</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x003D;</mml:mo><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x002B;</mml:mo><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo fence="false" stretchy="false">}</mml:mo></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x002B;</mml:mo><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mi>y</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mi>G</mml:mi><mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math>
</alternatives></disp-formula></p>
<p>cGANs feature that input images and label images are input in pairs to the discriminative network. They also use the u-net structure as the generative network. Information loss occurs when using the encoder-decoder structure commonly used when dealing with images. The u-net is a structure in which an encoder-decoder structure adds a skip-connection which connects the corresponding encoder and decoder layers. <xref ref-type="fig" rid="fig-2">Fig. 2</xref> below shows the structure of cGANs and their difference from the original GANs. <inline-formula id="ieqn-20">
<alternatives><inline-graphic xlink:href="ieqn-20.png"/><tex-math id="tex-ieqn-20"><![CDATA[$x$]]></tex-math><mml:math id="mml-ieqn-20"><mml:mi>x</mml:mi></mml:math>
</alternatives></inline-formula> is the real image, <inline-formula id="ieqn-21">
<alternatives><inline-graphic xlink:href="ieqn-21.png"/><tex-math id="tex-ieqn-21"><![CDATA[$y$]]></tex-math><mml:math id="mml-ieqn-21"><mml:mi>y</mml:mi></mml:math>
</alternatives></inline-formula> is the label image paired with <inline-formula id="ieqn-22">
<alternatives><inline-graphic xlink:href="ieqn-22.png"/><tex-math id="tex-ieqn-22"><![CDATA[$x$]]></tex-math><mml:math id="mml-ieqn-22"><mml:mi>x</mml:mi></mml:math>
</alternatives></inline-formula>, and <inline-formula id="ieqn-23">
<alternatives><inline-graphic xlink:href="ieqn-23.png"/><tex-math id="tex-ieqn-23"><![CDATA[$\bi{G}\left( x \right)$]]></tex-math><mml:math id="mml-ieqn-23"><mml:mi mathvariant="bold-italic">G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math>
</alternatives></inline-formula> is the fake image created by the generative network.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>The conditional generative adversarial network architecture</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-2.png"/>
</fig>
</sec>
</sec>
<sec id="s3">
<label>3</label>
<title>Proposed Network</title>
<p>In this section, we describe the novel network structure and objective functions for the panoramic image inpainting. The input of the panoramic inpainting network proposed in this paper is an equirectangular format panoramic image and mask. When an equirectangular format panoramic image and mask are input, they are converted into a cube map format, then used as input to the generative network, which restores the damaged image.</p>
<p>In order to delicately restore the damaged part of each face of the cube map, it is input to a one-sided discriminative network. To train the correlation of the six sides, all six sides are input to the two discriminative networks at once. The output of the generative network is an inpainted image of the cube map format. While training on the panoramic image in the cube map format, we set the objective function suitable for this network using adversarial loss and reconstruction loss to obtain a plausibly inpainted result. The key parts of this paper are as follows. We used a cube map format with less distortion to inpaint the panoramic image. To train the texture of each image in the cube map, we designed a slice discriminative network which accepts as input one face of the cube map at a time. To train the correlation of the entire cube map, we designed a discriminative network which accepts as input all six faces of the cube map simultaneously. The proposed network structure is illustrated in <xref ref-type="fig" rid="fig-3">Fig. 3</xref>.</p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>The proposed panoramic image inpainting network structure based on cGANs</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-3.png"/>
</fig>
<sec id="s3_1">
<label>3.1</label>
<title>Generative Network</title>
<p>The generative network is based on u-nets. A feature of a u-net is that it connects the encoder layer to the decoder layer, thus reducing the loss of image information. We modified the structure of the u-net to fit the cube map format image. We used LeakyReLU, ReLU, convolution (Conv.), transposed convolution (DeConv.), and batch normalization in the generative network. <xref ref-type="table" rid="table-1">Tab. 1</xref> shows the network structure of the generative network proposed in this paper.</p>
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Generative network structure</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
</colgroup>
<tbody>
<tr>
<td colspan="3">Generative network</td>
</tr>
</tbody>
<tbody>
<tr>
<td colspan="3">Input: Damaged cube map images, masks<break/>Output: Inpainted cube map images</td>
</tr>
<tr>
<td rowspan="7">Encoder</td>
<td>[Layer1]</td>
<td>Conv. Input channel &#x003D; 4, output channel &#x003D; 64, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer2]</td>
<td>Conv. Input channel &#x003D; 64, output channel &#x003D; 128, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer3]</td>
<td>Conv. Input channel &#x003D; 128, output channel &#x003D; 256, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer4]</td>
<td>Conv. Input channel &#x003D; 256, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer5]</td>
<td>Conv. Input channel &#x003D; 512, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer6]</td>
<td>Conv. Input channel &#x003D; 512, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer7]</td>
<td>Conv. Input channel &#x003D; 512, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td rowspan="13">Decoder</td>
<td>[Layer8]</td>
<td>DeConv. Input channel &#x003D; 512, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; ReLU; Dropout &#x003D; 0.5</td>
</tr>
<tr>
<td></td>
<td>Concatenated Layer (Layer 8, Layer 6)</td>
</tr>
<tr>
<td>[Layer9]</td>
<td>DeConv. Input channel &#x003D; 1024, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; ReLU; Dropout &#x003D; 0.5</td>
</tr>
<tr>
<td></td>
<td>Concatenated Layer (Layer 9, Layer 5)</td>
</tr>
<tr>
<td>[Layer10]</td>
<td>DeConv. Input channel &#x003D; 1024, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; ReLU;</td>
</tr>
<tr>
<td></td>
<td>Concatenated Layer (Layer 10, Layer 4)</td>
</tr>
<tr>
<td>[Layer11]</td>
<td>DeConv. Input channel &#x003D; 1024, output channel &#x003D; 256, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; ReLU;</td>
</tr>
<tr>
<td></td>
<td>Concatenated Layer (Layer 11, Layer 3)</td>
</tr>
<tr>
<td>[Layer12]</td>
<td>DeConv. Input channel &#x003D; 512, output channel &#x003D; 128, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; ReLU;</td>
</tr>
<tr>
<td></td>
<td>Concatenated Layer (Layer 12, Layer 2)</td>
</tr>
<tr>
<td>[Layer13]</td>
<td>DeConv. Input channel &#x003D; 256, output channel &#x003D; 64, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; ReLU;</td>
</tr>
<tr>
<td></td>
<td>Concatenated Layer (Layer 13, Layer 1)</td>
</tr>
<tr>
<td>[Layer14]</td>
<td>DeConv. Input channel &#x003D; 128, output channel &#x003D; 3, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1;</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Discriminative Network</title>
<p>The generative network is the same as that of [<xref ref-type="bibr" rid="ref-27">27</xref>], but the discriminative network is slightly different. The proposed network uses two discriminative networks. The whole discriminative network was made to be able to discriminate based on the correlation of the six sides of the cube map. The slice discriminative network was designed to determine whether inpainting was well done considering the texture of each side of the cube map. The channel size of the output layer is 1 for both the whole discriminative network and the slice discriminative network because the discriminative network must only discriminate whether its input is real or fake.</p>
<sec id="s3_2_1">
<label>3.2.1</label>
<title>Whole Discriminator</title>
<p>The whole discriminative network was used to train the correlation of each side of the cube map format panoramic image because when the inpainting is performed without considering the correlation of the six sides, a discontinuous image results when transformed into an equirectangular format. <xref ref-type="table" rid="table-2">Tab. 2</xref> shows the structure of the whole discriminative network used in this paper. Convolution, linear, LeakyReLU, and batch normalization are used for the whole discriminative network. The final output layer type of the entire discriminative network is (Batch number, 1).</p>
<table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>The whole discriminative network structure</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
</colgroup>
<tbody>
<tr>
<td colspan="2">Whole discriminator network</td>
</tr>
</tbody>
<tbody>
<tr>
<td colspan="2">Input: Inpainted cube map images, masks<break/>Output: A transformed image of input (Batch number, 1)</td>
</tr>
<tr>
<td>[Layer1]</td>
<td>Conv. Input channel &#x003D; 24, output channel &#x003D; 64, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer2]</td>
<td>Conv. Input channel &#x003D; 64, output channel &#x003D; 128, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer3]</td>
<td>Conv. Input channel &#x003D; 128, output channel &#x003D; 256, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer4]</td>
<td>Conv. Input channel &#x003D; 256, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer5]</td>
<td>Linear. Input channel &#x003D; 32,768, output channel &#x003D; 1</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3_2_2">
<label>3.2.2</label>
<title>Slice Discriminator</title>
<p>The slice discriminative network was created to determine whether the input image for each side of the cube map format panoramic image is real or fake. The configuration of the slice discrimination network is illustrated in <xref ref-type="fig" rid="fig-4">Fig. 4</xref>. The six cube map faces are sequentially entered into one slice discrimination network, and the outputs are combined into one. Therefore, the final output layer type of the slice discriminative network is (Batch number, 1).</p>
<fig id="fig-4">
<label>Figure 4</label>
<caption>
<title>The slice discriminative network, which inputs the cube map one side at a time</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-4.png"/>
</fig>
<p><xref ref-type="table" rid="table-3">Tab. 3</xref> shows the structure of the slice discriminative network used in this paper. The slice discriminative network uses convolution, linear, LeakyReLU, and batch normalization.</p>
<table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>The slice discriminative network structure</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
</colgroup>
<tbody>
<tr>
<td colspan="2">Slice discriminator network</td>
</tr>
</tbody>
<tbody>
<tr>
<td colspan="2">Input: An inpainted cube map image, masks<break/>Output: Transformed images of input (Batch number, 1)</td>
</tr>
<tr>
<td>[Layer1]</td>
<td>Conv. Input channel &#x003D; 4, output channel &#x003D; 64, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer2]</td>
<td>Conv. Input channel &#x003D; 64, output channel &#x003D; 128, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer3]</td>
<td>Conv. Input channel &#x003D; 128, output channel &#x003D; 256, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer4]</td>
<td>Conv. Input channel &#x003D; 256, output channel &#x003D; 512, kernel size &#x003D; 4, stride &#x003D; 2, padding &#x003D; 1; Batch norm; LeakyReLU;</td>
</tr>
<tr>
<td>[Layer5]</td>
<td>Linear. Input channel &#x003D; 32,768, output channel &#x003D; 1</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Objective Function</title>
<p>The network proposed in this paper does not use the objective function of a cGAN described in Section 2. As mentioned in Gulrajani et al. [<xref ref-type="bibr" rid="ref-28">28</xref>], GANs are difficult to train. Methods to find ways to train GANs continuously are still being studied. To address the training difficulties of GANs, Gulrajani et al. [<xref ref-type="bibr" rid="ref-28">28</xref>] proposed the Wasserstein GAN gradient penalty (WGAN-GP). An existing Wasserstein GAN (WGAN) used the earth mover&#x2019;s distance (EMD) to calculate the distribution of generated data and real data. The objective function of a WGAN was created by applying the duality of Kantorovich-Rubinstein. The objective function of a WGAN in the generative network is <xref ref-type="disp-formula" rid="eqn-4">Eq. (4)</xref>, and the objective function of a WGAN of the discriminative network is to refer to <xref ref-type="disp-formula" rid="eqn-5">Eq. (5)</xref>.</p>
<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[$${\rm {\cal L}}_G^{WGAN} = - \; {E_{\tilde {\rm x}\sim{{ {\mathbb{P} }}_{{g}}}}}\left[ {D\left( {\tilde {\rm x}} \right)} \right]$$]]></tex-math><mml:math id="mml-eqn-4" display="block"><mml:msubsup><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mi>W</mml:mi><mml:mi>G</mml:mi><mml:mi>A</mml:mi><mml:mi>N</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x003D;</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mspace width="thickmathspace"></mml:mspace><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">&#x007E;</mml:mo></mml:mover></mml:mrow></mml:mrow><mml:mo>&#x223C;</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="double-struck">P</mml:mi></mml:mrow></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">&#x007E;</mml:mo></mml:mover></mml:mrow></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math>
</alternatives></disp-formula></p>
<p><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[$${\rm {\cal L}}_D^{WGAN} = {E_{{\rm x}\sim{{{\mathbb P}}_r},}}\left[ {D\left( {\rm x} \right)} \right]$$]]></tex-math><mml:math id="mml-eqn-5" display="block"><mml:msubsup><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mi>D</mml:mi><mml:mrow><mml:mi>W</mml:mi><mml:mi>G</mml:mi><mml:mi>A</mml:mi><mml:mi>N</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x003D;</mml:mo><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mrow><mml:mi mathvariant="normal">x</mml:mi></mml:mrow><mml:mo>&#x223C;</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="double-struck">P</mml:mi></mml:mrow></mml:mrow></mml:mrow><mml:mi>r</mml:mi></mml:msub></mml:mrow><mml:mo>,</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi mathvariant="normal">x</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math>
</alternatives></disp-formula></p>
<p>Gulrajani et al. [<xref ref-type="bibr" rid="ref-28">28</xref>] developed a WGAN by adding a gradient penalty such as <xref ref-type="disp-formula" rid="eqn-6">Eq. (6)</xref> to a WGAN. The points sampled in a straight line between the points sampled from the real data distribution <inline-formula id="ieqn-24">
<alternatives><inline-graphic xlink:href="ieqn-24.png"/><tex-math id="tex-ieqn-24"><![CDATA[${{{\mathbb P}}_r}$]]></tex-math><mml:math id="mml-ieqn-24"><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="double-struck">P</mml:mi></mml:mrow></mml:mrow></mml:mrow><mml:mi>r</mml:mi></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> and the generated data distribution <inline-formula id="ieqn-25">
<alternatives><inline-graphic xlink:href="ieqn-25.png"/><tex-math id="tex-ieqn-25"><![CDATA[${{{\mathbb P}}_g}$]]></tex-math><mml:math id="mml-ieqn-25"><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="double-struck">P</mml:mi></mml:mrow></mml:mrow></mml:mrow><mml:mi>g</mml:mi></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> is called <inline-formula id="ieqn-26">
<alternatives><inline-graphic xlink:href="ieqn-26.png"/><tex-math id="tex-ieqn-26"><![CDATA[$\hat {\rm x}$]]></tex-math><mml:math id="mml-ieqn-26"><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow></mml:math>
</alternatives></inline-formula>.</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[$${\lambda _1}{E_{\hat {\rm x}\sim{{{\mathbb P}}_{ \hat {\rm x}}}}}{\left( {{||\nabla _{\hat {\rm x}}}D{{\left( {\hat {\rm x}} \right)}||_2} - 1} \right)^2}$$]]></tex-math><mml:math id="mml-eqn-6" display="block"><mml:mrow><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow><mml:mo>&#x223C;</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="double-struck">P</mml:mi></mml:mrow></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi mathvariant="normal">&#x2207;</mml:mi><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mi>D</mml:mi><mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msub></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:math>
</alternatives></disp-formula></p>
<p>In this paper, the objective function was defined by adopting ideas from Yu et al. [<xref ref-type="bibr" rid="ref-29">29</xref>], which was used by slightly modifying WGAN-GP. Since the image inpainting can be done by predicting the hole area in the image, the slope penalty is calculated using the product of the slope and the input mask <inline-formula id="ieqn-27">
<alternatives><inline-graphic xlink:href="ieqn-27.png"/><tex-math id="tex-ieqn-27"><![CDATA[${\bf m}$]]></tex-math><mml:math id="mml-ieqn-27"><mml:mrow><mml:mi mathvariant="bold">m</mml:mi></mml:mrow></mml:math>
</alternatives></inline-formula>. It was modified and defined as in <xref ref-type="disp-formula" rid="eqn-7">Eq. (7)</xref>. <inline-formula id="ieqn-28">
<alternatives><inline-graphic xlink:href="ieqn-28.png"/><tex-math id="tex-ieqn-28"><![CDATA[$\odot$]]></tex-math><mml:math id="mml-ieqn-28"><mml:mo>&#x2299;</mml:mo></mml:math>
</alternatives></inline-formula> denotes the pixel product. If the mask value is 0, it is a damaged pixel; otherwise, it is 1.</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[$${{\rm {\cal L}}_{gp}} = {E_{\hat {\rm x}\sim{{{\mathbb P}}_{ \hat {\rm x}}}}}{\left( {{||\nabla _{\hat {\rm x}}}D\left( {\hat {\rm x}} \right) \odot {{\left( {1 - \; {\bf m}} \right)}||_2} - 1} \right)^2}$$]]></tex-math><mml:math id="mml-eqn-7" display="block"><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>g</mml:mi><mml:mi>p</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>&#x003D;</mml:mo><mml:mrow><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow><mml:mo>&#x223C;</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="double-struck">P</mml:mi></mml:mrow></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi mathvariant="normal">&#x2207;</mml:mi><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mi>D</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mrow><mml:mover><mml:mi mathvariant="normal">x</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2299;</mml:mo><mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mspace width="thickmathspace"></mml:mspace><mml:mrow><mml:mi mathvariant="bold">m</mml:mi></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msub></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:math>
</alternatives></disp-formula></p>
<p>We used the weighted sum of the <inline-formula id="ieqn-29">
<alternatives><inline-graphic xlink:href="ieqn-29.png"/><tex-math id="tex-ieqn-29"><![CDATA[${l_1}$]]></tex-math><mml:math id="mml-ieqn-29"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> losses in the pixel direction and the adversarial losses in the WGAN. The <inline-formula id="ieqn-30">
<alternatives><inline-graphic xlink:href="ieqn-30.png"/><tex-math id="tex-ieqn-30"><![CDATA[${l_1}$]]></tex-math><mml:math id="mml-ieqn-30"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> loss function is <xref ref-type="disp-formula" rid="eqn-8">Eq. (8)</xref> and the final objective function is <xref ref-type="disp-formula" rid="eqn-9">Eq. (9)</xref>.</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[$${{\rm {\cal L}}_{{l_1}}} = \;|| \left( {1 - \; {\bf m}} \right) \odot {\left( {G\left( {{\rm x},z} \right) - {\rm x}} \right)||_1}$$]]></tex-math><mml:math id="mml-eqn-8" display="block"><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mo>&#x003D;</mml:mo><mml:mspace width="thickmathspace"></mml:mspace><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mspace width="thickmathspace"></mml:mspace><mml:mrow><mml:mi mathvariant="bold">m</mml:mi></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2299;</mml:mo><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mi mathvariant="normal">x</mml:mi></mml:mrow><mml:mo>,</mml:mo><mml:mi>z</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mi mathvariant="normal">x</mml:mi></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></disp-formula></p>
<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[$${G^*} = \arg \mathop {{\rm \; min}}\limits_G \mathop {\max }\limits_{D \in {\rm {\cal D}}} ({\lambda _1}{\rm {\cal L}}_G^{WGAN} + {\rm {\cal L}}_D^{WGAN} + {\lambda _2}{{\rm {\cal L}}_{gp}} + {\lambda _3}{{\rm {\cal L}}_{{l_1}}})$$]]></tex-math><mml:math id="mml-eqn-9" display="block"><mml:mrow><mml:msup><mml:mi>G</mml:mi><mml:mo>&#x2217;</mml:mo></mml:msup></mml:mrow><mml:mo>&#x003D;</mml:mo><mml:mi>arg</mml:mi><mml:mo>&#x2061;</mml:mo><mml:munder><mml:mrow><mml:mrow><mml:mspace width="thickmathspace"></mml:mspace><mml:mi mathvariant="normal">m</mml:mi><mml:mi mathvariant="normal">i</mml:mi><mml:mi mathvariant="normal">n</mml:mi></mml:mrow></mml:mrow><mml:mi>G</mml:mi></mml:munder><mml:mo>&#x2061;</mml:mo><mml:munder><mml:mrow><mml:mo form="prefix">max</mml:mo></mml:mrow><mml:mrow><mml:mi>D</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mrow><mml:mi mathvariant="script">D</mml:mi></mml:mrow></mml:mrow></mml:mrow></mml:munder><mml:mo>&#x2061;</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:msubsup><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mi>G</mml:mi><mml:mrow><mml:mi>W</mml:mi><mml:mi>G</mml:mi><mml:mi>A</mml:mi><mml:mi>N</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x002B;</mml:mo><mml:msubsup><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mi>D</mml:mi><mml:mrow><mml:mi>W</mml:mi><mml:mi>G</mml:mi><mml:mi>A</mml:mi><mml:mi>N</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x002B;</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>g</mml:mi><mml:mi>p</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>&#x002B;</mml:mo><mml:mrow><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mn>3</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:math>
</alternatives></disp-formula></p>
<p>In all experiments, <inline-formula id="ieqn-31">
<alternatives><inline-graphic xlink:href="ieqn-31.png"/><tex-math id="tex-ieqn-31"><![CDATA[${\lambda _1}$]]></tex-math><mml:math id="mml-ieqn-31"><mml:mrow><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> was set to 0.001, <inline-formula id="ieqn-32">
<alternatives><inline-graphic xlink:href="ieqn-32.png"/><tex-math id="tex-ieqn-32"><![CDATA[${\lambda _2}$]]></tex-math><mml:math id="mml-ieqn-32"><mml:mrow><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> was set to 10, and <inline-formula id="ieqn-33">
<alternatives><inline-graphic xlink:href="ieqn-33.png"/><tex-math id="tex-ieqn-33"><![CDATA[${\lambda _3}$]]></tex-math><mml:math id="mml-ieqn-33"><mml:mrow><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mn>3</mml:mn></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> was set to 1.2.</p>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Dataset</title>
<p>This section shows an example of the dataset used in this paper. The proposed network trains network by using the image converted from the equirectangular format panoramic image to the cube map format panoramic image.</p>
<sec id="s4_1">
<label>4.1</label>
<title>Image</title>
<p>In this paper, we used the street view equirectangular format panorama dataset provided in Chang et al. [<xref ref-type="bibr" rid="ref-30">30</xref>], which contains approximately 19,000 images. Because the images are street views, they can be divided into buildings and scenery. Let&#x2019;s call the building-rich images the building dataset and the tree-rich images the scenery dataset. There are 10,650 and 5080 images of buildings and scenery, respectively. In this paper, we confirmed the performance of the network with two building datasets and two scenery datasets.</p>
<p>As shown in <xref ref-type="fig" rid="fig-5">Fig. 5a</xref>, when training with the equirectangular format panoramic dataset itself, the resolution of the panoramic images is high, resulting in a memory shortage, and the distortion of the equirectangular format panoramic images is challenging to train. To solve this, we lowered the resolution of the equirectangular format panoramic images and used images converted to a cube map format with relatively little distortion, as shown in <xref ref-type="fig" rid="fig-5">Fig. 5b</xref> below.</p>
<fig id="fig-5">
<label>Figure 5</label>
<caption>
<title>(a) Equirectangular format panoramic image and (b) Cube map format panoramic image</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-5.png"/>
</fig>
<p>The panoramic image in the cube map format has six faces, as shown in <xref ref-type="fig" rid="fig-5">Fig. 5b</xref>. Each side is referred to by a face name listed in <xref ref-type="fig" rid="fig-6">Fig. 6</xref>. In this paper, the six faces are used in the following order: F, R, B, L, T, and D.</p>
<fig id="fig-6">
<label>Figure 6</label>
<caption>
<title>Cube map face names: L (Left), F (Front), R (Right), B (Back), T (Top), D (Down)</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-6.png"/>
</fig>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Mask</title>
<p>Most inpainting studies use two hole types to study inpainting: Rectangular masks in the form of <xref ref-type="fig" rid="fig-7">Fig. 7a</xref> and free-form masks such as <xref ref-type="fig" rid="fig-7">Fig. 7b</xref> are used to erase the shape of objects.</p>
<fig id="fig-7">
<label>Figure 7</label>
<caption>
<title>(a) Rectangular mask and (b) Free-form mask</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-7.png"/>
</fig>
<p>In this paper, our network used a rectangular mask because it has many applications, such as erasing or modifying objects and buildings, rather than delicately modifying the image, as do single-image inpainting algorithms. We made a rectangular hole before training a random number of images. Let the width and height of the panoramic image in equirectangular format be <inline-formula id="ieqn-34">
<alternatives><inline-graphic xlink:href="ieqn-34.png"/><tex-math id="tex-ieqn-34"><![CDATA[$w$]]></tex-math><mml:math id="mml-ieqn-34"><mml:mi>w</mml:mi></mml:math>
</alternatives></inline-formula> and <inline-formula id="ieqn-35">
<alternatives><inline-graphic xlink:href="ieqn-35.png"/><tex-math id="tex-ieqn-35"><![CDATA[$h$]]></tex-math><mml:math id="mml-ieqn-35"><mml:mi>h</mml:mi></mml:math>
</alternatives></inline-formula>, respectively. Let the width and height of the rectangular hole be <inline-formula id="ieqn-36">
<alternatives><inline-graphic xlink:href="ieqn-36.png"/><tex-math id="tex-ieqn-36"><![CDATA[${R_w}$]]></tex-math><mml:math id="mml-ieqn-36"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi>w</mml:mi></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula> and <inline-formula id="ieqn-37">
<alternatives><inline-graphic xlink:href="ieqn-37.png"/><tex-math id="tex-ieqn-37"><![CDATA[${R_h}$]]></tex-math><mml:math id="mml-ieqn-37"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:math>
</alternatives></inline-formula>, respectively. The width and height of the hole used for training are expressed in <xref ref-type="disp-formula" rid="eqn-10">Eq. (10)</xref>.</p>
<p><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[$$\displaystyle{w \over 4} \le {R_w} \le \displaystyle{w \over 2}\; ,\; \; \displaystyle{h \over 4} \le {R_h} \le \displaystyle{h \over 2}$$]]></tex-math><mml:math id="mml-eqn-10" display="block"><mml:mstyle scriptlevel="0" displaystyle="true"><mml:mrow><mml:mfrac><mml:mi>w</mml:mi><mml:mn>4</mml:mn></mml:mfrac></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi>w</mml:mi></mml:msub></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:mstyle scriptlevel="0" displaystyle="true"><mml:mrow><mml:mfrac><mml:mi>w</mml:mi><mml:mn>2</mml:mn></mml:mfrac></mml:mrow><mml:mspace width="thickmathspace"></mml:mspace><mml:mo>,</mml:mo><mml:mspace width="thickmathspace"></mml:mspace><mml:mspace width="thickmathspace"></mml:mspace><mml:mstyle scriptlevel="0" displaystyle="true"><mml:mrow><mml:mfrac><mml:mi>h</mml:mi><mml:mn>4</mml:mn></mml:mfrac></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:mstyle scriptlevel="0" displaystyle="true"><mml:mrow><mml:mfrac><mml:mi>h</mml:mi><mml:mn>2</mml:mn></mml:mfrac></mml:mrow></mml:mstyle></mml:mstyle></mml:mstyle></mml:mstyle></mml:math>
</alternatives></disp-formula></p>
<p>When the user edits the image, the constraints are set on the width and height of the rectangular hole, considering the size of the mask used. Also, in the cube map format, constraints were set to mask multiple faces of the cube map to train the correlation of the connected parts of each face. As shown in <xref ref-type="fig" rid="fig-8">Fig. 8</xref>, the mask was also preprocessed to be converted from an equirectangular format to a cube map format. However, since the mask in the equirectangular format has no distortion, unlike the panoramic image in the equirectangular format, a straight line looks like a curve when converted to the cube map format.</p>
<fig id="fig-8">
<label>Figure 8</label>
<caption>
<title>(a) Equirectangular format mask and (b) Cube map format mask</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-8.png"/>
</fig>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Experiment and Analysis</title>
<p>In this section, we evaluate our method on one dataset: 360-degree StreetView. Since there is only one publicly available 360-degree street view image dataset, it was not possible to evaluate against various panoramic image datasets.</p>
<p>The system proposed in this paper uses a graphics processing unit (GPU) and is implemented using Pytorch. We measure the proposed panoramic inpainting system against a panoramic dataset [<xref ref-type="bibr" rid="ref-30">30</xref>]. Our model has full 7.3 M parameters and was trained on Pytorch v1.5 and CUDA v10.2. When learning the proposed network, the learning rate was set to 0.0004 and the batch size to 8. Even when validating the proposed network, the hole is <xref ref-type="disp-formula" rid="eqn-10">Eq. (10)</xref>. It is defined within the range according to <xref ref-type="disp-formula" rid="eqn-10">Eq. (10)</xref>, the equirectangular format panoramic image resolution is 512 &#x00D7; 256, and the cube map format panoramic image resolution is 256 &#x00D7; 256.</p>
<sec id="s5_1">
<label>5.1</label>
<title>Qualitative Results</title>
<p>We compare our results with the state-of-the-art single image inpainting algorithm (GI) [<xref ref-type="bibr" rid="ref-29">29</xref>], a baseline using an equirectangular format panoramic image as input (OE), and a baseline using the cube map format panoramic image as input (OC). Our baseline models are comprised of cGANs. OE and OC used the cGAN network structure and objective function. OE is compared with our model to confirm that learning is difficult due to distortion when using an equirectangular format panoramic image. OC is compared with our model to check that the inpainted result is discontinuous when training the correlation of each side when using a cube map format panoramic image as input. GI, OE, and OC are implemented with Pytorch, and the hole size limitation is the same as in <xref ref-type="disp-formula" rid="eqn-9">Eq. (9)</xref>. The GI network was trained with a learning rate of 0.0001 and a batch size of 6, and the OE and OC networks were trained with a learning rate of 0.0002 and a batch size of 32. <xref ref-type="fig" rid="fig-9">Fig. 9</xref> shows the result of inpainting a 360-degree panoramic image using the proposed network. The first through fourth rows are the results of inpainting using the scenery dataset, and the fifth through eighth rows are results of inpainting using the building dataset. These are the plausible inpainted results when compared with the original images with masks and the inpainted images, which were the output of our proposed network.</p>
<fig id="fig-9">
<label>Figure 9</label>
<caption>
<title>Qualitative results using the scenery and buildings dataset</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-9.png"/>
</fig>
<p><xref ref-type="fig" rid="fig-10">Fig. 10</xref> summarizes the qualitative results of the scenery dataset. The scenery dataset is relatively easy to inpaint because trees, roads, and sky are the main components of the images. Therefore, the inside of the mask is filled with very different objects than those in the original image. The palm tree trunks weren&#x2019;t well-erased in GI, OC, and OE, but they were in ours. Besides, in the case of OC, the correlation of each face of the cube map was not trained, so the boundary of each cube face is visible. GI and OE do not see the boundary like ours or OC because the equirectangular format panoramic image is used as input, but there is a distortion inherent in the equirectangular format, which confirms that the inpainted result is not natural.</p>
<fig id="fig-10">
<label>Figure 10</label>
<caption>
<title>Qualitative results using the scenery dataset</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-10.png"/>
</fig>
<p><xref ref-type="fig" rid="fig-11">Fig. 11</xref> summarizes the qualitative results for the building dataset. The building dataset has more image components than the nature dataset, and the inpainting is difficult due to the presence of various buildings and roads in the images, and shadows caused by sunlight. Because GI uses a contextual attention mechanism, it is restored using similar colors and textures in the image. Therefore, it can be seen that similar results are used repeatedly, and the inside of the mask is restored. Ours and OC use the cube map format and convert it to an equirectangular format, so the cube map boundaries are visible and give implausible results. OC shows a blurry inpainted result, and OE is restored using plausible colors and textures, but when part of a building was expressed like a road, the result was implausible when the result is confirmed with the whole image.</p>
<fig id="fig-11">
<label>Figure 11</label>
<caption>
<title>Qualitative results using the building dataset</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="fig-11.png"/>
</fig>
</sec>
<sec id="s5_2">
<label>5.2</label>
<title>Quantitative Results</title>
<p>As mentioned in Yu et al. [<xref ref-type="bibr" rid="ref-29">29</xref>], image inpainting lacks a good quantitative evaluation scale. Structural similarity (SSIM), peak signal to noise ratio (PSNR), L1 distance and L2 distance values were compared for several algorithms and our proposed algorithm, regarding the evaluation metrics used in Yu et al. [<xref ref-type="bibr" rid="ref-29">29</xref>]. L1 distance and L2 distance find the pixel value difference from the original image. When GANs are used, the data distribution of the input image is learned to fill the empty hole in the image. The purpose of the inpainting study is to restore missing parts of an image plausibly. Therefore, L1 and L2 distances are relatively challenging to confirm network performance compared to SSIM and PSNR.</p>
<p><xref ref-type="table" rid="table-4">Tab. 4</xref> shows that the OE model shows overall good performance. However, there is little difference between the metric value of the method we propose and the metric value of the OE model. Compared to a single image, a 360-degree panoramic image typically depicts various objects (e.g., trees, mountains, buildings, cars) in one image. Compared to the results of a single image inpainting algorithm, the panoramic image inpainting algorithm results may feature a variety of objects newly created by GANs and may differ significantly from the original image. For example, a road may be rendered in the space where a person or car had been deleted in a panoramic image. Therefore, the quantitative comparison of original and generated images is not a sufficient method of evaluating the models.</p>
<table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Table of the quantitative results</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th></th><th colspan="4">Scenery dataset (381 images)</th><th colspan="4">Buildings dataset (800 images)</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>OC</td>
<td>OE</td>
<td>GI</td>
<td>Ours</td>
<td>OC</td>
<td>OE</td>
<td>GI</td>
<td>Ours</td>
</tr>
<tr>
<td>SSIM&#x002B;</td>
<td>0.906</td>
<td><bold>0.908</bold></td>
<td>0.790</td>
<td>0.902</td>
<td>0.902</td>
<td><bold>0.904</bold></td>
<td>0.805</td>
<td>0.897</td>
</tr>
<tr>
<td>PSNR&#x002B;</td>
<td>37.7</td>
<td><bold>37.8</bold></td>
<td>32.4</td>
<td>37.7</td>
<td>37.7</td>
<td><bold>37.7</bold></td>
<td>32.7</td>
<td>37.4</td>
</tr>
<tr>
<td>L1 distance&#x2212;</td>
<td>16.9</td>
<td><bold>16.7</bold></td>
<td>23.9</td>
<td>16.9</td>
<td><bold>16.9</bold></td>
<td>17.2</td>
<td>24.8</td>
<td>18.0</td>
</tr>
<tr>
<td>L2 distance&#x2212;</td>
<td>11.5</td>
<td><bold>11.2</bold></td>
<td>21.2</td>
<td>11.4</td>
<td>12.3</td>
<td><bold>11.7</bold></td>
<td>26.2</td>
<td>12.3</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="s6">
<label>6</label>
<title>Conclusion</title>
<p>We proposed a novel deep learning-based 360-degree panoramic image inpainting network. There is only one prior study of a deep learning-based 360-degree panoramic image inpainting method; Akimoto et al. [<xref ref-type="bibr" rid="ref-23">23</xref>] is an inpainting method using symmetric characteristics in an equirectangular format panoramic image, unlike a single image inpainting method. Therefore, only a limited number of 360-degree panoramic images can be inpainted with the network of Akimoto et al. [<xref ref-type="bibr" rid="ref-23">23</xref>], because the images must include a symmetrical building to be successfully inpainted. In contrast, the proposed network has the advantage of being able to inpaint like single-image inpainting methods by converting a panoramic image from an equirectangular format to a cube map format. However, since a plausible inpainted result is obtained only by training the correlation between the cube map format panoramic images, a panoramic image inpainting network is proposed comprised of a whole discriminative network and a slice discrimination network.</p>
<p>Training image inpainting networks using equirectangular format panoramic images is challenging because of distortion. To solve this problem, when using a cube map format panoramic image as input, it was confirmed that an additional algorithm or additional network layers were needed to train the correlation of each face of the cube map. Therefore, we obtained a plausible 360-degree panoramic image inpainted result by adding the whole discriminative network and the slice discriminative network to the baseline model. The whole discriminative network receives the six sides of the cube map as input simultaneously trains the correlation of the six sides of the cube map, and determines their authenticity. On the other hand, the six faces of the cube map are input one by one into the slice discriminative network to train the detailed texture of each face and to determine its authenticity.</p>
<p>The proposed network showed better qualitative and quantitative results than the single image inpainting algorithm. However, as mentioned in several image inpainting papers, there is no clear evaluation metric for comparing image inpainting performance. The L1 and L2 distances, which are traditionally used to evaluate image performance, are very inaccurate in evaluating the performance of the GANs because the original and generated images are compared. Although the proposed network did not show the best performance in quantitative results, it proved that it did not differ significantly from other networks. Besides, the proposed network produced the most plausible inpainted results through quantitative result images.</p>
</sec>
</body>
<back>
<ack>
<p>I would like to thank San Kim for his comprehensive advice and assistance in building and training networks. I would also like to thank my colleague Eun Young Cha for proofreading this article.</p>
</ack><fn-group>
<fn fn-type="other">
<p><bold>Funding Statement:</bold> This research was supported by Korea Electric Power Corporation (Grant No. R18XA02).</p>
</fn>
<fn fn-type="conflict">
<p><bold>Conflicts of Interest:</bold> We declare that we 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="journal"><person-group person-group-type="author"><string-name><given-names>Z.</given-names> <surname>Yuan</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Li</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Liu</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Luo</surname></string-name></person-group>, &#x201C;<article-title>Multiview scene image inpainting for intelligent vehicles based on conditional generative adversarial networks</article-title>,&#x201D; <source>IEEE Transactions on Intelligent Vehicles</source>, vol. <volume>2</volume>, no. <issue>2</issue>, pp. <fpage>314</fpage>&#x2013;<lpage>323</lpage>, <year>2019</year>.</mixed-citation></ref><ref id="ref-2"><label>2</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>X.</given-names> <surname>Niu</surname></string-name>, <string-name><given-names>B.</given-names> <surname>Yan</surname></string-name>, <string-name><given-names>W.</given-names> <surname>Tan</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Wang</surname></string-name></person-group>, &#x201C;<article-title>Effective image restoration for semantic segmentation</article-title>,&#x201D; <source>Neurocomputing</source>, vol. <volume>374</volume>, pp. <fpage>100</fpage>&#x2013;<lpage>108</lpage>, <year>2020</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>D.</given-names> <surname>Ren</surname></string-name>, <string-name><given-names>W.</given-names> <surname>Zuo</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Zhang</surname></string-name> and <string-name><given-names>M. H.</given-names> <surname>Yang</surname></string-name></person-group>, &#x201C;<article-title>Simultaneous fidelity and regularization learning for image restoration</article-title>,&#x201D; <source>IEEE Transactions on Pattern Analysis and Machine Intelligence</source>, pp. 1&#x2013;14, <year>2019</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>S.</given-names> <surname>Kamesh</surname></string-name> and <string-name><given-names>K. R.</given-names> <surname>Reddy</surname></string-name></person-group>, &#x201C;<article-title>Damaged video reconstruction using inpainting</article-title>,&#x201D; in <conf-name>Computer-Aided Developments: Electronics and Communication: Proc. First Annual Conf. on Computer-Aided Developments in Electronics and Communication</conf-name>, <edition>1</edition><sup>st</sup> ed., vol. <volume>1</volume>, <publisher-loc>Amaravati, India</publisher-loc>: <publisher-name>Vellore Institute of Technology</publisher-name>, pp. <fpage>201</fpage>&#x2013;<lpage>207</lpage>, <year>2019</year>. </mixed-citation></ref><ref id="ref-5"><label>5</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Youngjoo</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Park</surname></string-name></person-group>, &#x201C;<article-title>Face editing generative adversarial network with user&#x2019;s sketch and color</article-title>,&#x201D; in <conf-name>Proc. IEEE Int. Conf. on Computer Vision</conf-name>, <conf-loc>Seoul, South Korea</conf-loc>, pp. <fpage>1745</fpage>&#x2013;<lpage>1753</lpage>, <year>2019</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>Y.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Tang</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Zhou</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Zhou</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Zhu</surname></string-name> <etal>et al.</etal></person-group>, &#x201C;<article-title>Image denoising with adaptive weighted graph filtering</article-title>,&#x201D; <source>Computers, Materials &#x0026; Continua</source>, vol. <volume>62</volume>, no. <issue>2</issue>, pp. <fpage>1219</fpage>&#x2013;<lpage>1232</lpage>, <year>2020</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>R.</given-names> <surname>Tijana</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Pi&#x017E;urica</surname></string-name></person-group>, &#x201C;<article-title>Context-aware patch-based image inpainting using markov random field modeling</article-title>,&#x201D; <source>IEEE Transactions on Image Processing</source>, vol. <volume>24</volume>, no. <issue>1</issue>, pp. <fpage>444</fpage>&#x2013;<lpage>456</lpage>, <year>2014</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>Q.</given-names> <surname>Guo</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Gao</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Yin</surname></string-name> and <string-name><given-names>C.</given-names> <surname>Zhang</surname></string-name></person-group>, &#x201C;<article-title>Patch-based image inpainting via two-stage low rank approximation</article-title>,&#x201D; <source>IEEE Transactions on Visualization and Computer Graphics</source>, vol. <volume>24</volume>, no. <issue>6</issue>, pp. <fpage>2023</fpage>&#x2013;<lpage>2036</lpage>, <year>2017</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>H.</given-names> <surname>Li</surname></string-name>, <string-name><given-names>W.</given-names> <surname>Luo</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Huang</surname></string-name></person-group>, &#x201C;<article-title>Localization of diffusion-based inpainting in digital images</article-title>,&#x201D; <source>IEEE Transactions on Information Forensics and Security</source>, vol. <volume>12</volume>, no. <issue>12</issue>, pp. <fpage>3050</fpage>&#x2013;<lpage>3064</lpage>, <year>2017</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>O.</given-names> <surname>Elharrouss</surname></string-name>, <string-name><given-names>N.</given-names> <surname>Almaadeed</surname></string-name>, <string-name><given-names>S.</given-names> <surname>AI-Maadeed</surname></string-name> and <string-name><given-names>Y.</given-names> <surname>Akbari</surname></string-name></person-group>, &#x201C;<article-title>Image inpainting: A review</article-title>,&#x201D; <source>Neural Processing Letters</source>, vol.  
<volume>51</volume>, pp. <fpage>1</fpage>&#x2013;<lpage>22</lpage>, <year>2019</year>.</mixed-citation></ref><ref id="ref-11"><label>11</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>S. S.</given-names> <surname>Edgar</surname></string-name> and <string-name><given-names>I.</given-names> <surname>Hiroshi</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-12"><label>12</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>, &#x201C;<article-title>Image inpainting for irregular holes using partial convolutions</article-title>,&#x201D; in <conf-name>Proc. European Conf. on Computer Vision</conf-name>, <conf-loc>Munich, Germany</conf-loc>, pp. <fpage>85</fpage>&#x2013;<lpage>100</lpage>, <year>2018</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>C.</given-names> <surname>Wang</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Huang</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Han</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Wang</surname></string-name></person-group>, &#x201C;<article-title>Video inpainting by jointly learning temporal structure and spatial details</article-title>,&#x201D; in <conf-name>Proc. AAAI Conf. on Artificial Intelligence</conf-name>, <conf-loc>Honolulu, Hawaii, USA</conf-loc>, vol. <volume>33</volume>, pp. <fpage>5232</fpage>&#x2013;<lpage>5239</lpage>, <year>2019</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>H.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Mai</surname></string-name>, <string-name><given-names>N.</given-names> <surname>Xu</surname></string-name>, <string-name><given-names>Z.</given-names> <surname>Wang</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Collomosse</surname></string-name> <etal>et al.</etal></person-group>, &#x201C;<article-title>An internal learning approach to video inpainting</article-title>,&#x201D; in <conf-name>Proc. IEEE International Conf. on Computer Vision</conf-name>, <conf-loc>Seoul, South Korea</conf-loc>, pp. <fpage>2720</fpage>&#x2013;<lpage>2729</lpage>, <year>2019</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>R.</given-names> <surname>Xu</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Li</surname></string-name>, <string-name><given-names>B.</given-names> <surname>Zhou</surname></string-name> and <string-name><given-names>C. C.</given-names> <surname>Loy</surname></string-name></person-group>, &#x201C;<article-title>Deep flow-guided video inpainting</article-title>,&#x201D; in <conf-name>Proc. IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <conf-loc>California, USA</conf-loc>, pp. <fpage>3723</fpage>&#x2013;<lpage>3732</lpage>, <year>2019</year>. </mixed-citation></ref><ref id="ref-16"><label>16</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>Z.</given-names> <surname>Zhu</surname></string-name>, <string-name><given-names>R. R.</given-names> <surname>Martin</surname></string-name> and <string-name><given-names>S. M.</given-names> <surname>Hu</surname></string-name></person-group>, &#x201C;<article-title>Panorama completion for street views</article-title>,&#x201D; <source>Computational Visual Media</source>, vol. <volume>1</volume>, no. <issue>1</issue>, pp. <fpage>49</fpage>&#x2013;<lpage>57</lpage>, <year>2015</year>.</mixed-citation></ref><ref id="ref-17"><label>17</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>Z.</given-names> <surname>Yan</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Li</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Li</surname></string-name>, <string-name><given-names>W.</given-names> <surname>Zhu</surname></string-name> and <string-name><given-names>S.</given-names> <surname>Shan</surname></string-name></person-group>, &#x201C;<article-title>Shift-net: image inpainting via deep feature rearrangement</article-title>,&#x201D; in <conf-name>Proc. European Conf. on Computer Vision</conf-name>, <conf-loc>Munich, Germany</conf-loc>, pp. <fpage>1</fpage>&#x2013;<lpage>17</lpage>, <year>2018</year>. </mixed-citation></ref><ref id="ref-18"><label>18</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>X.</given-names> <surname>Zhu</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Qian</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Zhao</surname></string-name>, <string-name><given-names>B.</given-names> <surname>Sun</surname></string-name> and <string-name><given-names>Y.</given-names> <surname>Sun</surname></string-name></person-group>, &#x201C;<article-title>A deep learning approach to patch-based image inpainting forensics</article-title>,&#x201D; <source>Signal Processing: Image Communication</source>, vol. <volume>67</volume>, pp. <fpage>90</fpage>&#x2013;<lpage>99</lpage>, <year>2018</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>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>, <conf-loc>Munich, Germany</conf-loc>, pp. <fpage>234</fpage>&#x2013;<lpage>241</lpage>, <year>2015</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>Y. Z.</given-names> <surname>Su</surname></string-name>, <string-name><given-names>T. J.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>K. H.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>H. H.</given-names> <surname>Liu</surname></string-name> and <string-name><given-names>S. C.</given-names> <surname>Pei</surname></string-name></person-group>, &#x201C;<article-title>Image inpainting for random areas using dense context features</article-title>,&#x201D; in <conf-name>2019 IEEE Int. Conf. on Image Processing</conf-name>, <conf-loc>Taipei, Taiwan</conf-loc>, pp. <fpage>4679</fpage>&#x2013;<lpage>4683</lpage>, <year>2019</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>H.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>G.</given-names> <surname>Lu</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Bi</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Yan</surname></string-name> and <string-name><given-names>W.</given-names> <surname>Wang</surname></string-name></person-group>, &#x201C;<article-title>Image inpainting based on generative adversarial networks</article-title>,&#x201D; in <conf-name>2018 14th Int. Conf. on Natural Computation, Fuzzy Systems and Knowledge Discovery, IEEE</conf-name>, <conf-loc>Huangshan, China</conf-loc>, pp. <fpage>373</fpage>&#x2013;<lpage>378</lpage>, <year>2018</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>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 Int. Conf. on Computer Vision Workshops</conf-name>, <conf-loc>Seoul, South Korea</conf-loc>, pp. 3265&#x2013;3274, <year>2019</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>N.</given-names> <surname>Akimoto</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Kasai</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Hayashi</surname></string-name> and <string-name><given-names>Y.</given-names> <surname>Aoki</surname></string-name></person-group>, &#x201C;<article-title>360-degree image completion by two-stage conditional gans</article-title>,&#x201D; in <conf-name>IEEE Int. Conf. on Image Processing</conf-name>, <conf-loc>Taipei, Taiwan</conf-loc>, pp. <fpage>4704</fpage>&#x2013;<lpage>4708</lpage>, <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>R.</given-names> <surname>Uittenbogaard</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Sebastian</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Vijverberg</surname></string-name>, <string-name><given-names>B.</given-names> <surname>Boom</surname></string-name>, <string-name><given-names>D. M.</given-names> <surname>Gavrila</surname></string-name> <etal>et al.</etal></person-group>, &#x201C;<article-title>Privacy protection in street-view panoramas using depth and multi-view imagery</article-title>,&#x201D; in <conf-name>Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <conf-loc>California, USA</conf-loc>, pp. <fpage>10581</fpage>&#x2013;<lpage>10590</lpage>, <year>2019</year>. </mixed-citation></ref><ref id="ref-25"><label>25</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>, &#x201C;<article-title>Boundless: Generative adversarial networks for image extension</article-title>,&#x201D; in <conf-name>Proc. of the IEEE Conf. on Computer Vision and Pattern Recognition</conf-name>, <conf-loc>Long Beach, >California, USA</conf-loc>, pp. <fpage>10521</fpage>&#x2013;<lpage>10530</lpage>, <year>2019</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>I.</given-names> <surname>Goodfellow</surname></string-name>, <string-name><given-names>J. P.</given-names> <surname>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. W.</given-names> <surname>Farley</surname></string-name> <etal>et al.</etal></person-group>, &#x201C;<article-title>Generative adversarial nets</article-title>,&#x201D; in <conf-name>Advances in Neural Information Processing Systems</conf-name>, <conf-loc>Montreal, Canada</conf-loc>, pp. <fpage>2672</fpage>&#x2013;<lpage>2680</lpage>, <year>2014</year>. </mixed-citation></ref><ref id="ref-27"><label>27</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>, <conf-loc>Honolulu, Hawaii, USA</conf-loc>, pp. <fpage>1125</fpage>&#x2013;<lpage>1134</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>I.</given-names> <surname>Gulrajani</surname></string-name>, <string-name><given-names>F.</given-names> <surname>Ahmed</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Arjovsky</surname></string-name>, <string-name><given-names>V.</given-names> <surname>Dumoulin</surname></string-name> and <string-name><given-names>A. C.</given-names> <surname>Courvile</surname></string-name></person-group>, &#x201C;<article-title>Improved training of wasserstein gans</article-title>,&#x201D; in <conf-name>Advances in Neural Information Processing Systems</conf-name>, <conf-loc>Long Beach, California, USA</conf-loc>, pp. <fpage>5767</fpage>&#x2013;<lpage>5777</lpage>, <year>2017</year>. </mixed-citation></ref><ref id="ref-29"><label>29</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> and <string-name><given-names>X.</given-names> <surname>Lu</surname></string-name> <etal>et al.</etal></person-group>, &#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, Utah, USA</publisher-loc>, pp. <fpage>5505</fpage>&#x2013;<lpage>5514</lpage>, <year>2018</year>. </mixed-citation></ref><ref id="ref-30"><label>30</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>S. H.</given-names> <surname>Chang</surname></string-name>, <string-name><given-names>C. Y.</given-names> <surname>Chiu</surname></string-name>, <string-name><given-names>C. S.</given-names> <surname>Chang</surname></string-name>, <string-name><given-names>K. W.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>C. Y.</given-names> <surname>Yao</surname></string-name> <etal>et al.</etal></person-group>, &#x201C;<article-title>Generating 360 outdoor panorama dataset with reliable sun position estimation</article-title>,&#x201D; in <conf-name>SIGGRAPH Asia Posters</conf-name>, <conf-loc>Vancouver, Canada</conf-loc>, pp. <fpage>1</fpage>&#x2013;<lpage>2</lpage>, <year>2018</year>. </mixed-citation></ref></ref-list>
</back>
</article>