ReenactGAN icon indicating copy to clipboard operation
ReenactGAN copied to clipboard

Hi ! How to get the ground-true boundary maps

Open wqz960 opened this issue 6 years ago • 3 comments

It seems that the training code of the encode network for transforming the face image to boundary maps does not include in this project, you have provided the pretrained model, can you provide me the code for producing the ground-true boundary maps? Thanks!!!

wqz960 avatar Nov 11 '19 11:11 wqz960

I think you can get the boundary map using the pretrained model - v8_net_boundary_detection.pth. You can find the code that turns image into boundary maps in transformer_model.py (in 'init_Bound') or face2boundary2face_model.py ('self.netBoundary' does the job).

rosebbb avatar Dec 09 '19 19:12 rosebbb

@rosebbb emmmm. sorry to bother you! can you provide me the script for transforming the ground true landmarks to the boundary maps instead of a test model? Thank you!

wqz960 avatar Dec 11 '19 12:12 wqz960

I don't find such a script in this repository. The model here takes face images as input and outputs boundary maps, which is what you talked about in your first question. If you want to work on landmarks maybe take a look at another paper by the author on https://wywu.github.io/projects/LAB/LAB.html

rosebbb avatar Dec 12 '19 18:12 rosebbb