Shape Transformation with CycleGAN Using an Automobile as an
Example
Akira Nakajima
a
and Hiroyuki Kobayashi
b
Robotics & Design Engineering Osaka Institute of Technology University, Japan
Keywords:
CycleGAN, Shape Transformation, Image Processing.
Abstract:
AI technology has developed remarkably in recent years, and AI-based image generation tools have spread
rapidly. CycleGAN is one of the image generation AIs and specializes in image style transformation, and
has the problem of being able to change colors and patterns but not shapes. The reason may be that the
model considers the background as a part of the conversion target, which can be solved by removing the
background. In this study, the number of backgrounds is limited to a certain number, and CycleGAN is used
for shape transformation.The evaluation is done by comparing the result of this experiment with the image
transformation when the input is an image with the background removed.Comparison of the proposed and
conventional methods showed comparable results.
1 INTRODUCTION
In recent years, deep learning has developed remark-
ably, and GAN(Goodfellow et al., 2014) is a tech-
nology that has been attracting a lot of attention.The
method pix2pix(Isola et al., 2017) proposed by Isola
et al. performs a style transformation such that a
realistic object is generated from handwritten edges
by obtaining transformation rules for each image pair
and a unique loss function between each domain (a
collection of images with the same features). In ad-
dition, CycleGAN(Zhu and Li, 2017), a method pro-
posed by Zhu et al. performs Image-to-Image in the
framework of unsupervised learning by removing pair
constraints on training data from pix2pix. This al-
lows learning the correspondence between domains
and performing image style transformation as long as
two domains with common features are available.
CycleGAN is good at transforming image styles
such as color and pattern, etc. CycleGAN can capture
the same shape as a feature and change its color or
pattern, but it is not good at transformations involving
shape changes. We limited the transformation target
to cars and considered whether CycleGAN could per-
form shape transformation. It is known from the pa-
per(Wu et al., 2019) that the reason why shape trans-
formation is difficult is that the background of the im-
a
https://orcid.org/0009-0002-1142-9470
b
https://orcid.org/0000-0002-4110-3570
age is recognized as a part of the object, and feature
extraction cannot be performed well. This study per-
forms CycleGAN shape transformation without re-
moving the background by limiting the number of
backgrounds.
2 METHOD
2.1 Image Processing
In this study, CycleGAN-based shape transformation
was performed on a car. A box-shaped old car was
transformed into a curved current car. The old and
new cars were cropped from the original images and
merged with 10 different landscape images. An ex-
ample of the dataset is shown in Figures 1 and 2.Since
some of the old cars had side mirrors attached to the
tip of the hood, the side mirrors were removed to
unify the features of the old cars.
Figure 1: Example data set of a new car.
736
Nakajima, A. and Kobayashi, H.
Shape Transformation with CycleGAN Using an Automobile as an Example.
DOI: 10.5220/0012233100003543
In Proceedings of the 20th International Conference on Informatics in Control, Automation and Robotics (ICINCO 2023) - Volume 1, pages 736-739
ISBN: 978-989-758-670-5; ISSN: 2184-2809
Copyright © 2023 by SCITEPRESS – Science and Technology Publications, Lda. Under CC license (CC BY-NC-ND 4.0)