Skip to content

Commit

Permalink
Merge pull request yu4u#81 from moralfish/master
Browse files Browse the repository at this point in the history
fix predicted genders label and add requirements.txt file for quick setup
  • Loading branch information
yu4u authored Feb 11, 2019
2 parents d2ab01f + d708e3b commit 9410a57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def main():
# draw results
for i, d in enumerate(detected):
label = "{}, {}".format(int(predicted_ages[i]),
"F" if predicted_genders[i][0] < 0.5 else "M")
"M" if predicted_genders[i][0] < 0.5 else "F")
draw_label(img, (d.left(), d.top()), label)

cv2.imshow("result", img)
Expand Down
11 changes: 11 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
opencv-python
dlib
imutils
tensorflow
Keras
scipy
numpy
Pandas
tqdm
h5py
tables

0 comments on commit 9410a57

Please sign in to comment.