GithubHelp home page GithubHelp logo

age_gender_recognition's Introduction

1. Setup params

Opens file config.ini:

[device]
device = cuda 

[dataset]
data_path = mega_age_gender
train_val_ratio = 0.2 
max_age = 69
    
[callback]
mode = min 
monitor = val_loss
 # checkpoint_path
checkpoint_path = model_checkpoint
# save top k best models
save_top_k = 3 
# path file: checkpoint_path/filename.ckpt
filename = AgeGender-{epoch:02d}-{val_loss:.2f} 

[model]
epochs = 5
lr = 0.001 
batch_size = 32

[inference]
checkpoint_path = models/best_checkpoint.ckpt
gender_threshold = 0.5

Setup and save file.


2. Training

python3 train.py --cfg_path configs/config.ini

3. Predict

python3 predict.py --cfg_path configs/config.ini --image dataset/0_A0_G0.png

age_gender_recognition's People

Contributors

anminhhung avatar

Watchers

 avatar  avatar

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.