Jongyeon Lee, Face Super-Resolution with Styled Feature Channel Attention, Hongik University Graduation Project in 2020
Abstract: The Style Generative Adversarial Network(StyleGAN) showed very successful results and verified it is the state-of-art model in the area of generating faces. one of the main reasons for the success is to apply noise all layers for the face's detail. we learned through some experiments that the noises act differently on the different facial area. that means the model can extract and segment the face features such as hair, eyes, teeth, etc. so by using this characteristics, we construct a face-super-resolution model to generate photo-realistic 8-scaling face images with enhancement feature extraction for facial details. for the purpose, we propose enhancement channel attention that has same structure with the original channel attention. but the enhancement channel attention is inputted by the inner product of the latent variables for low resolution image and the feature maps. the latent variables are the output of variational encoder with input image using Gaussian prior. the enhancement channel attention guides the directions for high qualitative feature extractions and ehancement features. we identified through experimental results that the model we proposed enhanced the very detailed facial area with less noises.
$ python train.py --train-data-path [train data path]
Optional arguments :
--batch-size, input batch size for training (default: 4)
--epochs, number of epochs to train (default: 10)
--log-interval, how many batches to wait before logging training status (default: 10)
--low-image-size, size of input training images (default: 32)
--scale, scale size (default: 8)
--train-test, 0 means train phase, and the otherwise test (default: 0)
--pretrain, 1 means using pretrained model (default: 0)
--train-data-path, train data path
--test-data-path, test data path
The intermediate output is generated in the "results" folder
$ python train.py --train-test 1 --test-data-path [test data path]
The output is generated in the "samples" folder