Perceptual Adversarial Networks for Image-to-Image Transformation
Chaoyue Wang, Chang Xu, Chaohui Wang, Dacheng Tao
I Introduction
Image-to-image transformations aim to transform an input image into the desired output image, and they exist in a number of applications about image processing, computer graphics, and computer vision. For example, generating high-quality images from corresponding degraded (e.g. simplified, corrupted or low-resolution) images, and transforming a color input image into its semantic or geometric representations. More examples include, but not limited to, image de-noising , image in-painting , image super-resolution , image colorization , image segmentation , etc.
In recent years, convolutional neural networks (CNNs) are trained in a supervised manner for various image-to-image transformation tasks . They encode input image into hidden representation, which is then decoded to the output image. By penalizing the discrepancy between the output image and ground-truth image, optimal CNNs can be trained to discover the mapping from the input image to the transformed image of interest. These CNNs are developed with distinct motivations and differ in the loss function design.
One of the most straightforward approaches is to pixel-wisely evaluate output images , e.g., least squares or least absolute losses to calculate the distance between the output and ground-truth images in the pixel space. Though pixel-wise evaluation can generate reasonable images, there are some unignorable defects associated with the outputs, such as image blur and image artifacts.
Besides pixel-wise losses, the generative adversarial losses were largely utilized in training image-to-image transformation models. GANs (and cGANs) perform an adversarial training process alternating between identifying and faking, and generative adversarial losses are formulated to evaluate the discrepancy between the generated distribution and the real-world distribution. Experimental results show that generative adversarial losses are beneficial for generating more realistic images. Therefore, there are many GANs (or cGANs) based works to solve image-to-image transformation tasks, resulting in sharper and more realistic transformed images . Meanwhile, some GANs variants investigated cross-domain image translations and performed image translations in absence of paired examples. Although these unpaired works achieved reasonable results in some image-to-image translation tasks, they are inappropriate for some image-to-image problems. For example, in image in-painting tasks, it is difficult to define the domain and formulate the distribution of corrupted images. In addition, paired information within training data are beneficial for learning image transformations, but they cannot be utilized by unpaired translation methods.
Moreover, perceptual losses emerged as a novel measurement for evaluating the discrepancy between high-level perceptual features of the output and ground-truth images . Hidden layers of a well-trained image classification network (e.g., VGG-16 ) are usually employed to extract high-level features (e.g., content or texture) of both output images and ground-truth images. It is then expected to encourage the output image to have the similar high-level feature with that of the ground-truth image. Recently, perceptual losses were introduced in aforementioned GANs-based image-to-image transformation frameworks for suppressing artifacts and improving perceptual quality of the output images. Though integrating perceptual losses into GANs has produced impressive image-to-image transformation results, existing works are used to depend on external well-trained image classification network (e.g.VGG-Net) out of GANs, but ignored the fact that GANs, especially the discriminative network, also has the capability and demand of perceiving the content of images and the difference between images. Moreover, since these external networks are trained on specific classification datasets (e.g., ImageNet), they mainly focus on features that contribute to the classification and may perform inferior in some image transformation tasks (e.g., transfer aerial images to maps). Meanwhile, since specific hidden layers of pre-trained networks are employed, it is difficult to explore the difference between generated images and ground-truth images from more points of view.
In this paper, we proposed the perceptual adversarial networks (PAN) for image-to-image transformation tasks. Inspired by GANs, PAN is composed of an image transformation network and a discriminative network . Both generative adversarial loss and perceptual adversarial loss are employed. Firstly, similar with GANs, the generative adversarial loss is utilized to measure the distribution of generated images, i.e., penalizing generated images to lie in the desired target domain, which usually contributes to producing more visually realistic images. Meanwhile, to comprehensively evaluate transformed images, we devised the perceptual adversarial loss to form dynamic measurements based on the hidden layers of the discriminative network . Specifically, given hidden layers of the network , the network is trained to generate the output image that has the same high-level features with that of the corresponding ground-truth. If the difference between images measured on existing hidden layers of the discriminator is smaller, these hidden layers will be updated to discover the discrepancy between images from a new point of view. Different from the pixel-wise loss and conventional perceptual loss, our perceptual adversarial loss undergoes an adversarial training process, and aims to discover and decrease the discrepancy under constantly explored dynamic measurements.
In summary, our paper makes the following contributions:
We proposed the perceptual adversarial loss, which utilizes the hidden layers of the discriminative network to evaluate the discrepancy between the output and ground-truth images through an adversarial training process.
Through combining the perceptual adversarial loss and the generative adversarial loss, we presented the PAN for solving image-to-image transformation tasks.
We evaluated the performance of the PAN on several image-to-image transformation tasks (Fig. 1). Experimental results show that the proposed PAN has a great capability of accomplishing image-to-image transformations.
The rest of the paper is organized as follows: after a brief summary of previous related works in section II, we illustrate the proposed PAN together with its training losses in section III. Then we exhibit the experimental validation of the whole method in section IV. Finally, we conclude this paper with some future directions in section V.
II Background
In this section, we first introduce some representative image-to-image transformation methods based on feed-forward CNNs, and then summarize related works on GANs and perceptual losses.
Recent years have witnessed a variety of feed-forward CNNs developed for image-to-image transformation tasks. These feed-forward CNNs can be easily trained using the back-propagation algorithm , and the transformed images are generated by forwardly passing the input image through the well-trained CNNs in the test stage.
Individual pixel-wise loss or pixel-wise loss accompanied with other losses are employed in a number of image-to-image transformations. Image super-resolution tasks estimate a high-resolution image from its low-resolution counterpart . Image de-raining (or de-snowing) methods attempt to remove the rain (or snow) strikes in the pictures brought by the uncontrollable weather conditions . Given a damaged image, image inpainting aims to recover the missing part of the input image . Image semantic segmentation methods produce dense scene labels based on a single input image . Given an input object image, some feed-forward CNNs were trained to synthesize the image of the same object from a different viewpoint . More image-to-image transformation tasks based on feed-forward CNNs, include, but not limited to, image colorization , depth estimations , etc.
II-B GANs-based works
Generative adversarial networks (GANs) provide an important approach for learning a generative model which generates samples from the real-world data distribution. GANs consist of a generative network and a discriminative network. Through playing a minimax game between these two networks, GANs are trained to generate more and more ‘realistic’ samples. Since the great performance on learning real-world distributions, there have emerged a large number of GANs-based works. Some of these GANs-based works are committed to training a better generative model, such as InfoGAN , Energy-based GAN , WGAN(-GP) , Progressive GAN , E-GAN and SN-GAN . There are also some works integrating the GANs into their models to improve the performance of classical tasks. For example, the PGAN is proposed for small object detection. Specifically, devised a novel perceptual discriminator network, which contains an adversarial branch and a perception branch. The adversarial branch utilizes the adversarial loss to distinguish representations of real and synthesized objectives; the perception branch (or loss) employs a classification loss and a bounding-box regression loss to encourage the synthesized ‘super-resolved‘ objective’s representation to retain the same perception information as the input small objective’s representation.
In addition, these kind of works include, but not limited to, the PGN for video prediction, the SRGAN for super-resolution, the ID-CGAN for image de-raining , the iGAN for interactive application, the IAN for photo modification, and the Context-Encoder for image in-painting . Most recently, Isola et al. proposed the pix2pix-cGANs to perform several image-to-image transformation tasks (also known as image-to-image translations in their work), such as translating semantic labels into the street scene, object edges into pictures, aerial photos into maps, etc.
Moreover, some GANs variants investigated cross-domain image translations through exploring the cyclic mapping (or primal-dual) relation between different image domains. Specifically, a primal GAN aims to explore the mapping relations from source images to target images, while a dual (or inverse) GAN performs the invert task. These two GANs form a closed loop and allow images from either domain to be translated and then reconstructed. Through combining the GAN loss and cycle consistency loss (or recovery loss), these works can be used for performing image translation tasks in absence of paired examples. However, if paired training data are available in some applications, neglect paired information between data often have inferior performance to that of paired methods . Thus, at this stage, it is still important to study paired training, especially for performance-driven situations and applications, such as high-resolution image synthesis , photo-realistic image synthesis , real-world image inpainting , etc.
II-C Perceptual loss
Recently, some theoretical analysis and experimental results suggested that the high-level features extracted from a well-trained image classification network have the capability to capture the perceptual information from real-world images . Specifically, representations extracted from hidden layers of well-trained image classification network are beneficial to interpret the semantics of input images, and image style distribution can be captured by the Gram matrix of hidden representations. Hence, high-level features extracted from hidden layers of a well-trained classifier are often introduced in image generation models. Dosovitskiy and Brox took Euclidean distances between high-level features of images as the deep perceptual similarity metrics to improve the performance of image generation. Johnson et al. , Bruna et al. and Ledig et al. used features extracted from a well-trained VGG network to improve the performance of single image super-resolution task. In addition, there are works applying high-level features in image style-transfer , image de-raining and image view synthesis tasks.
III Methods
In this section, we introduce the proposed Perceptual Adversarial Networks (PAN) for image-to-image transformation tasks. Firstly, we explain the generative and perceptual adversarial losses, respectively. Then, we give the whole framework of the proposed PAN. Finally, we illustrate the details of the training procedure and network architectures.
We begin with the generative adversarial loss in vanilla GANs. A generative network is trained to map samples from noise distribution to real-world data distribution through playing a minimax game with a discriminative network . In the training procedure, the discriminative network aims to distinguish the real samples from the generated samples . In contrary, the generative network tries to confuse the discriminative network by generating increasingly realistic samples. This minimax game can be formulated as:
Nowadays, GANs-based models have shown the strong capability of learning generative models, especially for image generation . We, therefore, adopt the GANs learning strategy to solve image-to-image transformation tasks as well. As shown in Fig. 2, the image transformation network is used to generate transformed image given the input image . Meanwhile, each input image has a corresponding ground-truth image . We suppose that all target image obey the distribution , and the transformed image is encouraged to have the same distribution with that of targets image , i.e., . To achieve the generative adversarial learning strategy, a discriminative network is additionally introduced, and the generative adversarial loss can be written as:
The generative adversarial loss acts as a statistical measurement to penalize the discrepancy between the distributions of transformed images and the ground-truth images.
III-B Perceptual adversarial loss
Different from vanilla GANs that randomly generate samples from the data distribution , our goal is to infer the transformed image according to the input images. Therefore, it is a further step of GANs to explore the mapping from the input image to its ground truth.
As mentioned in Sections I and II, pixel-wise losses and perceptual losses are widely used in existing works for generating images towards the ground truth. The pixel-wise losses penalize the discrepancy occurred in the pixel space, but often produce blurry results . The perceptual losses explore the discrepancy between high-dimensional representations of images extracted from a well-trained classifier, e.g., the VGG net trained on the ImageNet dataset . Although hidden layers of well-trained classifier have been experimentally validated to map the image from pixel space to high-level feature spaces, how to extract the effective features for image-to-image transformation tasks from hidden layers has not been thoroughly discussed.
Here, we employ hidden layers of the discriminative network to evaluate the perceptual adversarial loss between transformed images and ground-truth images. In our experiments, given the training sample , the least absolute loss is employed to calculate the discrepancy of the high-dimensional representations on the hidden layers of the network , e.g.,
Similar to what has been done with the Energy-Based GAN , we use two different losses, one () to train the image transformation network , and the other () to train hidden layers of the discriminative network . Therefore, the image transformation network and hidden layers of the discriminative network play a non-zero-sum game and form the perceptual adversarial loss. Formally, the perceptual adversarial loss for the image transformation network can be written as:
and, given a positive margin , the loss for hidden layers of the discriminative network is defined as:
where , are hyper-parameters balancing the influence of different hidden layers.
By minimizing the perceptual adversarial loss function with respect to parameters of , we encourage the network to generate image that has similar high-level features with its ground-truth on the hidden layers. If the weighted sum of discrepancy between transformed images and ground-truth images on different hidden layers is less than the positive margin , the loss function will upgrade the discriminative network for some new latent feature spaces, which preserve the discrepancy between the transformed images and their ground-truth. Therefore, based on the perceptual adversarial loss, the discrepancy between the transformed and ground-truth images can be constantly explored and exploited.
Compared to our perceptual adversarial loss which measures the difference between the transformed image and ground-truth image in hidden layers of the discriminator, the conditional GAN loss indicates whether the transformed image forms the appropriate image pair with the input image, and can also explore supervised information of paired images during the training process. However, they utilize different methods to minimize high-level feature differences explored by the discriminator. The perceptual adversarial loss directly penalizes the high-level representations of transformed images and ground-truth images to be as same as possible. In contrast, the conditional GAN loss aims to model the mapping relation from the input to its output and encourages the generated image pairs obeying the same conditional distribution . Compared to conditional GAN loss that indirectly guides the generated images sharing the same features with corresponding ground-truth , our perceptual adversarial loss directly measures and minimizes differences between generated images and ground-truth images from different perspectives.
III-C The perceptual adversarial networks
Based on the aforementioned generative adversarial loss (Eq. 2) and perceptual adversarial loss (Eq. 4 and Eq. 5), we develop the PAN framework, which consists of an image transformation network and a discriminative network . These two networks are trained alternately to perform an adversarial learning process, the loss functions of image transformation network and discriminative network are formally defined as:
where is the hyper-parameter balance the influence of generative adversarial loss and perceptual adversarial loss. When , minimizing with respect to the parameters of is consistent with maximizing . Otherwise, when , the second term of will have zero gradients, because of the positive margin . In general, the discriminative network aims to distinguish transformed image from ground-truth image from both the statical (the first term of ) and dynamic perceptual (the second term of ) aspects. On the other hand, the image transformation network is trained to generate increasingly better images by reducing the discrepancy between the output and ground-truth images.
III-D Network architectures
Fig. 2 illustrates the framework of the proposed PAN, which is composed of two CNNs, i.e., the image transformation network and the discriminative network .
The image transformation network is designed to generate the transformed image given the input image. Following the network architectures in , the network firstly encodes the input image into high-dimensional representation using a stack of Convolution-BatchNorm-LeakyReLU layers, and then, the output image can be decoded by the following Deconvolution-BatchNorm-ReLU layersThe deconvolution layer utilized in our framework is the transposed convolution layer used in .. Note that the output layer of the network does not use batchnorm and replaces the ReLU with Tanh activation. Moreover, the skip-connections are used to connect mirrored layers in the encoder and decoder stacks. More details of the transformation network are listed in Table II. The same architecture of the network is used for all experiments in this paper, except there is an additional explanationIn the analysis of the loss functions and the image inpainting task, different architectures of the network were used..
III-D2 Discriminative network D𝐷D
In the proposed PAN framework, the discriminative network is introduced to compute the discrepancy between the transformed images and the ground-truth images. Specifically, given an input image, the discriminative network extracts high-level features using a series of Convolution-BatchNorm-LeakyReLU layers. The 1st, 4th, 6th, and 8th layers are utilized to measure the perceptual adversarial loss for every pair of transformed image and its corresponding ground-truth in the training data. Finally, the last convolution layer is flattened and then fed into a single sigmoid output. The output of the discriminative network estimates the probability that the input image comes from the real-world dataset rather than from the image transformation network . The same discriminative network is applied for all tasks demonstrated in this paper, and details of the network are shown in Table I.
IV Experiments
In this section, we evaluate the performance of the proposed PAN on several image-to-image transformation tasks, which are popular in fields of image processing (e.g., image de-raining), computer vision (e.g., semantic segmentation) and computer graphics (e.g., image generation).
For fair comparisons, we adopted the same settings with existing works, and reported experimental results using several evaluation metrics. These tasks and data settings include:
Single image de-raining, on the dataset provided by ID-CGAN .
Image Inpainting, on a subset of ILSVRC’12 (same as context-encoder ).
Semantic labelsimages, on the Cityscapes dataset (same as pix2pix ).
Edgesimages, on the dataset created by pix2pix . The original data is from and , and the HED edge detector was used to extract edges.
Aerialmap, on the dataset from pix2pix .
Furthermore, all experiments were trained on Nvidia Titan-X GPUs using Theano . Given the generative and perceptual adversarial losses, we alternately updated the image transformation network and the discriminative network . Specifically, Adam solver with a learning rate of 0.0002 and a first momentum of 0.5 was used in network training. After one update of the discriminative network , the image transformation will be updated three times. Hyper-parameters , , , , , and batch size of 4 were used for all tasks. Since the dataset sizes for different tasks are changed largely, the training epochs of different tasks were set accordingly. Overall, the number of training iterations was around 100k.
IV-B Evaluation metrics
To illustrate the performance of image-to-image transformation tasks, we conducted qualitative and quantitative experiments to evaluate the performance of the transformed images. For the qualitative experiments, we directly presented the input and transformed images. Meanwhile, we used quantitative measures to evaluate the performance over the test sets, such as Peak Signal to Noise Ratio (PSNR), Structural Similarity Index (SSIM) , Universal Quality Index (UQI) and Visual Information Fidelity (VIF) . f training iterations were around 100k.
IV-C Analysis of the loss functions
As discussed in Sections I and II, the design of loss function will largely influence the performance of image-to-image transformation. Firstly, the pixel-wise loss (using least squares loss) is widely used in various image-to-image transformation works . Then, the joint loss integrating pixel-wise loss and conditional generative adversarial loss is proposed to synthesize more realistic transformed images . Most recently, through introducing the perceptual loss, i.e., penalizing the discrepancy between high-level features that extracted by a well-trained classifier, the performance of some image-to-image transformation tasks are further enhanced . Different from these existing methods, the proposed PAN loss integrates the generative adversarial loss and the perceptual adversarial loss to train image-to-image transformation networks. Here, we compare the performance of the proposed perceptual adversarial loss with those of existing losses. For a fair comparison, we adopted the same image transformation network and data settings from ID-CGAN , and used the combination of different losses to perform the image de-raining (de-snowing) task. The quantitative results over the synthetic test set were shown in Table III, while the qualitative results on the real-world images were shown in Fig. 3. From both quantitative and qualitative comparisons, we find that only using the pixel-wise loss (least squares loss) achieved the worst result, and there are many snow-streaks in the transformed images (Fig. 3). Through introducing the cGANs loss, the de-snowing performance was indeed improved, but artifacts can be observed (Fig. 3) and the PSNR performance dropped (Table III). Combining the pixel-wise, cGAN and perceptual loss (VGG-16 ) together, i.e., using the loss function of ID-CGAN , the quality of transformed images has been further improved on both observations and quantitative measurements. However, from Fig. 3, we observe that the transformed images have some color distortion compared to the input images. The proposed PAN loss (i.e., combining the perceptual adversarial loss and original GAN loss) not only removed most streaks without color distortion, but also achieved much better performance on quantitative measurements. Moreover, we evaluated the performance of combining conditional GAN loss and the perceptual adversarial loss. Comparing with using the cGAN loss independently, introducing the perceptual adversarial loss largely improves the model performance. Yet, comparing with the PAN loss, replacing the original GAN loss with its conditional version does not make a further improvement in both quantitative and qualitative comparisons.
In our work, the balance between the perceptual adversarial loss and GAN loss is controlled by the hyper-parameters . In the task of transforming labels to facades, we vary the value of to test its influence on the proposed PAN. Qualitative samples are reported in Fig 5. As shown in Fig. 5, only using the perceptual adversarial loss (i.e., ) has already had the capability of synthesizing visually reasonable images from the input labels. Given the advantage of the GAN loss to promote more realistic images, the transformation performance gets better with increasing . However, with the continuous increasing of , the role of perceptual adversarial loss will be weakened and the model performance drops, e.g., visual artifacts are observed in certain images.
IV-D Comparing with existing works
In this subsection, we compared the performance of the proposed PAN with those of existing algorithms for image-to-image transformation tasks.
Context-Encoder (CE) trained CNNs for the single image inpainting task. Given corrupted images as input, image inpainting can be formulated as an image-to-image transformation task. Pixel-wise loss (least squares loss) and the generative adversarial loss were combined in the Context-Encoder to explore the relationship between the input surroundings and its central missed region.
To compare with the Context-Encoder, we applied PAN to inpaint images whose central regions were missed. As illustrated in Section IV-A, 100k images were randomly selected from the ILSVRC’12 dataset to train both Context-Encoder and PAN, and 50k images from the ILSVRC’12 validation set were used for test purpose. Moreover, since the image inpainting models are asked to generate the missing region of the input image instead of the whole image, we employ the image transformation network architecture from .
In Fig. 7, we reported some example results in the test set. For each input image, the missing part is mixed by the foreground objects and backgrounds. From the inpainted results, we find the proposed PAN performed better on understanding the surroundings and estimating the missing part with semantic contents. However, the context-encoder tended to use the nearest region (usually the background) to inpaint the missing part. PAN can synthesize more details in the missing parts. Last but not the least, in Table IV, we reported the quantitative results calculated over all 50k test images, which also demonstrated that the proposed PAN achieves better performance.
IV-D2 ID-CGAN
Image de-raining task aims to remove rain streaks in a given rainy image. Considering the unpredictable weather conditions, the single image de-raining (de-snowing) is a challenge image-to-image transformation task. Most recently, the Image De-raining Conditional Generative Adversarial Networks (ID-CGAN) was proposed to tackle the image de-raining problem. Through combining the pixel-wise (least squares loss), conditional generative adversarial, and perceptual losses (VGG-16), ID-CGAN achieved the state-of-the-art performance on single image de-raining.
We attempted to solve image de-raining by the proposed PAN using the same setting with that of ID-CGAN. Since there is a lack of large-scale datasets consisting of paired rainy and de-rained images, we resort to synthesize the training set of 700 images. Zhang et al. provided 100 synthetic images and 50 real-world rainy images for the test. Since the ground-truth is available for synthetic test images, we calculated and reported the quantitative results in Table III. Moreover, we test both ID-CGAN and PAN on real-world rainy images, and the results were shown in Fig. 6. For better visual comparison, we zoomed up the specific regions-of-interest below the test images.
From Fig. 6, we found both ID-CGAN and PAN achieved great performance on single image de-raining. However, by observing the zoomed region, the PAN removed more rain-strikes with less color distortion. Additionally, as shown in Table III, for synthetic test images, the de-rained results of PAN are much more similar with the corresponding ground-truth than that of ID-CGAN. Dealing with the uncontrollable weather condition, why the proposed PAN can achieve better results? One possible reason is that ID-CGAN utilized the well-trained classifier to extract the high-level features of the output and ground-truth images, and penalize the discrepancy between them (i.e., the perceptual loss). The high-level features extracted by the well-trained classifier usually focus on the content information, and may hard to capture other image information, such as color information. Yet, the proposed PAN used the perceptual adversarial loss, which aims to continually and automatically measure the discrepancy between the output and ground-truth images. The different training strategy of PAN may help the model to learn a better mapping from the input to output images, and resulting in better performance.
IV-D3 Pix2pix-cGAN
Isola et al. utilized cGANs as a general-purpose solution to image-to-image translation (transformation) tasks. In their work, the pixel-wise loss (least absolute loss) and Patch-cGANs loss are employed to solve a serial of image-to-image transformation tasks, such as translating the object edges to its photos, semantic labels to scene images, gray images to color images, etc. The proposed PAN can also solve the image-to-image transformation tasks performed by pix2pix-cGAN. Here, we implemented some of them and compared with pix2pix-cGAN.
Firstly, we attempted to translate the semantic labels to cityscapes images. Unlike the image segmentation problems, this inverse translation is an ill-posed problem and image transformation network has to learn prior knowledge from the training data. As shown in Fig. 8, given semantic labels as input images, we listed the transformed cityscapes images of pix2pix-cGAN, PAN and the corresponding ground-truth on the rightside. From the comparison, we found the proposed PAN captured more details with less deformation, which led the synthetic images are looked more realistic. Moreover, the quantitative comparison in Table V also indicated that the PAN can achieve much better performance.
Generating real-world objects from corresponding edges is also one kind of image-to-image transformation task. Based on the dataset provided by , we trained the PAN to translate edges to object photos, and compared its performance with that of pix2pix-cGAN. Given edges as input, Fig. 9 presented shoes and handbags synthesized by pix2pix-cGAN and PAN. At the same time, the quantitative results over the test set were shown in the Table V. Observing the generated object photos, we think that both pix2pix-cGAN and PAN achieved promising performance, yet it’s hard to tell which one is better. Quantitative results are also very close, PAN performed slightly inferior to pix2pix-cGAN on the PSNR measurement, yet superior on other quantitative measurements.
In addition, we compared PAN with pix2pix-cGAN on tasks of generating semantic labels from cityscapes photos, and generating maps from the aerial photos. Some example images generated using PAN and pix2pix-cGAN and their corresponding quantitative results were shown in Fig. 10 and Table V, respectively. To perform these two tasks, the image-to-image transformation models are asked to capture the semantic information from the input image, and synthesize the corresponding transformed images. Since pix2pix-cGAN employed the pixel-wise and generative adversarial losses to training their model, it may hard to capture perceptual information from the input image, which causes that their results are poor, especially on transforming the aerial photos to maps. However, we can observe that the proposed PAN can still achieve promising performance on these tasks. These experiments showed that the proposed PAN can also effectively extract the perceptual information from the input image.
Overall, in the cityscapes dataset (Fig. 8), semantic labels correspond to different kinds of objects, such as vehicle, road, tree, etc. Meanwhile, objects in the same category usually share some common patterns and features. Similarly, in the aerial2map dataset (Fig. 10), both aerial images and maps have their own shared patterns, which is beneficial for learning the mapping relation between them. In contrast, in the edges2images task (Fig. 9), given a handbag sketch, it can correspond to hundreds of kinds of outputs with different colors, textures, etc. Therefore, compared with Fig. 8 (cityscapes) and Fig. 10 (aerial2map), transformation relations in Fig. 9 (edges2images) are more difficult and challenging, which leads to relatively small visual improvement.
IV-E Extension to unpaired image translations
As discussed in section II, besides learning paired image-to-image transformations, some works investigated cross-domain image translations and performed image translations in absence of paired examples. The proposed perceptual adversarial loss aims to continually explore and minimize the discrepancy between perceptual features of generated images and that of the target images. However, in unpaired image translation tasks, the target image corresponding to a generated image is unknown. Alternatively, given training samples and in two domains, we calculate the discrepancy of mean features on two domains,
where and represent the output of generators and the representation on the jth hidden layer of discriminators in the CycleGAN framework, respectively.
In this section, we perform the unpaired image translation task, horsezebra, and qualitatively report some generated results. For a fair comparison, we adopted default settings (and codes) from CycleGAN, and utilized the 3rd and 4th hidden layers of the discriminator to measure the perceptual adversarial loss. In addition, hyper-parameters , , and batch size of 4 were used. As shown in Fig. x, through considering the perceptual similarity in unpaired image translations, the model performance was more or less improved. Although this work mainly focuses on exploring the perceptual features between paired images (the generated image and its ground-truth), we demonstrate the possibility of improving the performance of unpaired image translations through measuring the perceptual similarity between different image domains.
V Conclusion
In this paper, we proposed the perceptual adversarial networks (PAN) for image-to-image transformation tasks. As a generic framework of learning mapping relationship between paired images, the PAN combines the generative adversarial loss and the proposed perceptual adversarial loss as a novel training loss function. According to this loss function, a discriminative network is trained to continually and automatically explore the discrepancy between the transformed images and the corresponding ground-truth images. Simultaneously, an image transformation network is trained to narrow the discrepancy explored by the discriminative network . Through the adversarial training process, these two networks are updated alternately. Finally, experimental results on several image-to-image transformation tasks demonstrated that the proposed PAN framework is effective and promising for practical image-to-image transformation applications.
Acknowledgment
The authors would like to thank the handling associate editor Dr. Catarina Brites and all anonymous reviewers for their positive support and constructive comments for improving the quality of this paper.