Giter Site home page Giter Site logo

human_activity_training's Introduction

Training and Inference pipeline for Human Activity prediction

Project based on Pytorch-Lightning

Training

Experiments are written in Yaml format and stored in experiments folder

EXPERIMENT_NAME: "baseline" - You need to specify experiment name, this name will be used to store logs

DATA: ... - This block is used to specify what samples to train on and where the data stored. Moreover, BATCH_SIZE and validation size are needed to be specified

OPTIMIZER: ... - Optimizer configuration: from what package import, what optimizer to use and arguments to this optimizer

To run training process You need to run python main.py --experiment_cfg experiments/train.yaml

MODEL: ... - What model to use

SCHEDULER: ... - Parameters of scheduler to use.

CRITERION: ... - What loss to use to optimize

AUGMENTATION: ... - The training augmentations. The augmentation need to be written in package specified in PY

EARLY_STOPPING: ... - Parameters of early stopping process

CHECKPOINT: ... - Parameters of checkpointing process

EPOCHS: ... - The number of epochs

GPUS: ... - GPUS to train on

To start training process with baseline experiment config run :

python main.py --experiment_cfg experiments/baseline.yaml

###Convert checkpoint of Pytorch-Lightning

To convert checkpoint of Pytorch-Lightning run:

python convert_checkpoint.py --checkpoint path_to_checkpoint --config_file path_to_config

###Inference

Inference config has the following structure:

MODEL: ... - What model to use

TEST: ... - This block is used to specify what samples to test on and where the data stored

To run inference python inference.py --config_file test.yaml

human_activity_training's People

Contributors

cruigo93 avatar

Watchers

 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.