Git Product home page Git Product logo

age-gender-estimation's Introduction

age-gender-estimation 年龄性别分析

learn from yu4u : Keras implementation of a CNN network for age and gender estimation.

更详细的自述
BY GJ

使用指南

  1. 运行demo.py使用预训练的模型进行摄像头演示,或者使用--image_dir [IMAGE_DIR]选项在目录中识别图像,预训练的模型保存在pretrained_models文件夹。
  2. 从IMDB-WIKI数据集中创建训练数据,下载地址
    使用create_db.py将图像和标签序列化成mat文件。

    python create_db.py --output data/wiki_crop.mat --db wiki --img_size 64

  3. 使用上面的训练数据训练网络

    python train.py --input data/wiki_crop.mat
    模型保存至checkpoints文件夹(如果验证损失比之前小,则按每个时期存储训练权重文件。 可选参数可以用--help显示或者参考源码。

  4. 抛砖引玉

环境配置

  • ubuntu18.04+python3.7

  • 推荐使用Anaconda(一个提供包管理和环境管理的python版本)。 官网下载

  • 推荐修改镜像地址:

    pip install pip -U pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

  • 安装需要的python库:(缺少相应的库可用conda或者pip自行安装)

    • opencv-python
    • matplotlib
    • keras
    • tensorflow
    • dlib

age-gender-estimation's People

Contributors

acemyzoe avatar

Watchers

 avatar

Forkers

dwtcourses

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.