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

what preprocess need to do before send face image into mobile-id network #5

Open
wangsheng1991 opened this issue Sep 21, 2017 · 6 comments

Comments

@wangsheng1991
Copy link

for example,sub mean image or just divide some value

@xyt2008
Copy link

xyt2008 commented Sep 27, 2017

I met the same problem。can you tell us what preprocess need to do? @liuziwei7

@xialuxi
Copy link

xialuxi commented Nov 13, 2017

I met the same problem。

@sunjunlishi
Copy link

width height

@sunjunlishi
Copy link

how aboult result

@CLIsVeryOK
Copy link

the data in hdf format is stored in BGR not RGB, hdf data is single format and has a relation with uint8 RGB data as : RGB = (SingleHdf + 1.6) * 80. I am not sure, but for me, it works.

@liuziwei7
Copy link
Owner

Yes, the data in HDF5 file is stored in the BGR order channel-wise for accommodating with the Caffe convention. The value of the images has been normalized as: data = data * (3.2/255) - 1.6 .

Also, the script for crop&align face images ("align_face_celeba.m") has been uploaded to the repository.

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

6 participants