Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black areas that appear on frontalized face images #8

Open
xvbw opened this issue Jun 30, 2016 · 3 comments
Open

Black areas that appear on frontalized face images #8

xvbw opened this issue Jun 30, 2016 · 3 comments

Comments

@xvbw
Copy link

xvbw commented Jun 30, 2016

When I perform Face Frontalization(by the way I used MATLAB code however I found black areas do appear in this Python code too. So I'm asking here) , I get following result.

screenshot from 2016-06-30 21 00 52

What drives me crazy is the black areas that appear in frontalized output.

I want to crop around the faces so that black areas disappear. I was actually thinking about cropping the frontalized image by manually setting ROI box to crop only around the face so that black areas will be gone. Does this makes sense?

When seeing the Adience3D.0.1.1.zip database provided in the author's webpage, it looks like the black areas are pretty much gone as shown below
screenshot from 2016-06-30 21 02 34

The question is How do I deal with black areas that appear in frontalized image?
I want to get only the frontalized face image without black blank pixels so that the face is fitted to the whole image just like an original input image shown above.

​That's all!
Thanks

@xvbw xvbw changed the title black areas that appear on frontalized face images Black areas that appear on frontalized face images Jun 30, 2016
@xvbw
Copy link
Author

xvbw commented Jul 1, 2016

Thanks! I've noticed you had a similar issue previously. Will try this and show the result

@TalHassner
Copy link
Collaborator

Hi Xvbw,

The frontalized images are extremely well aligned. This means that facial features appear in the frontalized view in nearly the exact same coordinates. A consequence of this is that you can decide on a crop region once -- on an ideal frontalized view -- and apply the same crop to all frontalized images.

Having said that, the "black areas" you refer to are regions outside the input image that get warped into the frontalized view. There is really nothing to be done about this other than crop, as I explaiend above.

I hope this helps,

Tal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@xvbw @TalHassner and others