Face transformation using StyleGAN

With the development of the application of computer vision technology, face editing applications become common in various scenarios, and they are widely used in areas such as image beautification, live video streaming, and face confrontation attacks. In recent years, with the emergence of generative...

Full description

Saved in:
Bibliographic Details
Main Author: Cui, Naichuan
Other Authors: Tan Yap Peng
Format: Thesis-Master by Coursework
Language:English
Published: Nanyang Technological University 2021
Subjects:
Online Access:https://hdl.handle.net/10356/153150
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-153150
record_format dspace
spelling sg-ntu-dr.10356-1531502023-07-04T17:41:08Z Face transformation using StyleGAN Cui, Naichuan Tan Yap Peng School of Electrical and Electronic Engineering EYPTan@ntu.edu.sg Engineering::Electrical and electronic engineering::Electronic systems::Signal processing With the development of the application of computer vision technology, face editing applications become common in various scenarios, and they are widely used in areas such as image beautification, live video streaming, and face confrontation attacks. In recent years, with the emergence of generative adversarial networks, the quality of face image generation has notably improved, making face editing methods even more popular. The proposal of StyleGAN in 2018 has led to great progress in the resolution and quality of face generation, and face-related research using StyleGAN has become a hot topic. The editing of a real facial image requires first obtaining its latent code, then using the vector of corresponding attributes for editing, and finally converting the edited latent code into a face image. In this dissertation, the whole process of face transformation using StyleGAN is investigated, and some improvements are made to the existing methods. The main work of this dissertation is as follows: This dissertation presents a method for computing the latent code of a real image using a combination of encoder and optimisation. In order to edit a real face image, its projection in the latent space needs to be obtained first. In this work, we first use a ResNet50-based network to obtain the approximate latent code from the original image and then use an optimisation algorithm to iterate over the latent code so that the corresponding image gradually approaches the original synthesized image, and eventually becomes close enough for subsequent face editing. The experimental results show that this method can significantly improve the speed of calculating the latent code while maintaining accuracy. We also test a method for separating attribute control vectors from face latent code and transformed faces, and compares it with other face editing methods. Specifically, the face latent code and the labels of several features are obtained and the vectors controlling specific attributes are separated from the face latent code by methods such as logistic regression. The face latent code is adjusted by the attribute control vectors, and the adjusted latent code is transformed into a face by StyleGAN to complete the transformation of specific face attributes. The experimental results show that this method can produce clearer and higher quality edited images of faces and is effective in face transformation. Master of Science (Signal Processing) 2021-11-09T08:51:46Z 2021-11-09T08:51:46Z 2021 Thesis-Master by Coursework Cui, N. (2021). Face transformation using StyleGAN. Master's thesis, Nanyang Technological University, Singapore. https://hdl.handle.net/10356/153150 https://hdl.handle.net/10356/153150 en application/pdf Nanyang Technological University
institution Nanyang Technological University
building NTU Library
continent Asia
country Singapore
Singapore
content_provider NTU Library
collection DR-NTU
language English
topic Engineering::Electrical and electronic engineering::Electronic systems::Signal processing
spellingShingle Engineering::Electrical and electronic engineering::Electronic systems::Signal processing
Cui, Naichuan
Face transformation using StyleGAN
description With the development of the application of computer vision technology, face editing applications become common in various scenarios, and they are widely used in areas such as image beautification, live video streaming, and face confrontation attacks. In recent years, with the emergence of generative adversarial networks, the quality of face image generation has notably improved, making face editing methods even more popular. The proposal of StyleGAN in 2018 has led to great progress in the resolution and quality of face generation, and face-related research using StyleGAN has become a hot topic. The editing of a real facial image requires first obtaining its latent code, then using the vector of corresponding attributes for editing, and finally converting the edited latent code into a face image. In this dissertation, the whole process of face transformation using StyleGAN is investigated, and some improvements are made to the existing methods. The main work of this dissertation is as follows: This dissertation presents a method for computing the latent code of a real image using a combination of encoder and optimisation. In order to edit a real face image, its projection in the latent space needs to be obtained first. In this work, we first use a ResNet50-based network to obtain the approximate latent code from the original image and then use an optimisation algorithm to iterate over the latent code so that the corresponding image gradually approaches the original synthesized image, and eventually becomes close enough for subsequent face editing. The experimental results show that this method can significantly improve the speed of calculating the latent code while maintaining accuracy. We also test a method for separating attribute control vectors from face latent code and transformed faces, and compares it with other face editing methods. Specifically, the face latent code and the labels of several features are obtained and the vectors controlling specific attributes are separated from the face latent code by methods such as logistic regression. The face latent code is adjusted by the attribute control vectors, and the adjusted latent code is transformed into a face by StyleGAN to complete the transformation of specific face attributes. The experimental results show that this method can produce clearer and higher quality edited images of faces and is effective in face transformation.
author2 Tan Yap Peng
author_facet Tan Yap Peng
Cui, Naichuan
format Thesis-Master by Coursework
author Cui, Naichuan
author_sort Cui, Naichuan
title Face transformation using StyleGAN
title_short Face transformation using StyleGAN
title_full Face transformation using StyleGAN
title_fullStr Face transformation using StyleGAN
title_full_unstemmed Face transformation using StyleGAN
title_sort face transformation using stylegan
publisher Nanyang Technological University
publishDate 2021
url https://hdl.handle.net/10356/153150
_version_ 1772827556622368768