yiranran / APDrawingGAN

Code for APDrawingGAN: Generating Artistic Portrait Drawings from Face Photos with Hierarchical GANs (CVPR 2019 Oral)
Apache License 2.0
785 stars 145 forks source link

Did you retrain the method in paper"...Automatic Portrait Segmentation...", when you get the background mask? #6

Closed SwordHolderSH closed 2 years ago

SwordHolderSH commented 5 years ago

Dear authors: This is an outstanding work, but here is a small problem. 1) In "Preprocessing steps>Prepare background masks" of APDrawingGAN, we run the code of paper "Automatic Portrait Segmentation for Image Stylization" obtained from the link "http://xiaoyongshen.me/webpage_portrait/index.html". 2) We use the pre-trained models proved by authors to test the code (we did not change anything in the codes), but it cannot achieve the effect of the paper, our test results as shown in the following Figures: 00321 2_aligned 1_aligned 3) Could you please tell me how you employ their code, whether you retrain it, and so on?

Very thanks!
SwordHolderSH commented 5 years ago

We have obtained background-masks by Baidu-Api instead of "Automatic Portrait Segmentation for Image Stylization" , thanks you!

ichuniq commented 5 years ago

Hi @DoctorSH, For your information or others who may similar doubts, I tested the model using the pre-trained model and the Matlab code testing/demo_portraitFCN.m which are both provided in Automatic Portrait Segmentation for Image Stylization, the results seems to be ok under most circumstances. It didn't do well when there is a small color difference between people and the background or when the image is overexposed. I believe there are other advanced segmentation models available nowadays, so if the pre-trained one doesn't meet your expectation when preprocessing your dataset, try other models or retrain it by yourself, but in the scope of frontal, ID-like photo, which APDrawingGAN is trained in, I think it is good enough.

rsz_masked0321