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

Tensorflow implementation #1

Closed
Zumbalamambo opened this issue Aug 26, 2017 · 7 comments
Closed

Tensorflow implementation #1

Zumbalamambo opened this issue Aug 26, 2017 · 7 comments

Comments

@Zumbalamambo
Copy link

Is there any tensorflow implementation of the code ?

@mahehu
Copy link
Owner

mahehu commented Aug 26, 2017

We are training TF versions now. Should be ready to commit in a few weeks.

@Zumbalamambo
Copy link
Author

can you please share the dataset for age?

@mahehu
Copy link
Owner

mahehu commented Aug 26, 2017

@Zumbalamambo
Copy link
Author

are you using imdb celebrity faces? because the cropped face which of 7 gb is not proper. the age of people is not exact. I will share with you the code that I used to segregate the images into various folders based on their age. after segregation, I noticed that even the teenagers are in old people age folder. However imdb wiki dataset it good enough..

import numpy as np
from utils import get_meta
import cv2
import os
from shutil import copy
db = "imdb"
mat_path = "data/{}_crop/{}.mat".format(db, db)
print (mat_path)
full_path, dob, gender, photo_taken, face_score, second_face_score, age\
    = get_meta(mat_path, db)

print("#images: {}".format(len(face_score)))
print("#images with inf scores: {}".format(np.isinf(face_score).sum()))

img_paths = []
photo_root = "data/{}_crop/".format(db)


for i in range(len(age)):
    if age[i] == 7:
        print (photo_root +str (full_path[i][0]))
        img_cv = cv2.imread(os.path.join(photo_root, full_path[i][0]))

        copy(photo_root + "/" + str(full_path[i][0]), "seven")

@Zumbalamambo
Copy link
Author

@mahehu any ideas as of how I can get this done?

@elmoutaouakkil
Copy link

elmoutaouakkil commented Mar 9, 2018

Can you please share with us more details (files to compile ...) ?

@mahehu
Copy link
Owner

mahehu commented Apr 24, 2019

I think all these issues are addressed in the current version.

@mahehu mahehu closed this as completed Apr 24, 2019
mahehu pushed a commit that referenced this issue Apr 24, 2019
New alignment, refactoring/cleanup, improvements to celeb visualization, Freetype support for nicer fonts
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