Skip to content

About

Real-time hand pose and shape in RGB videos

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Real-time Hand 3D

Real-time hand pose and shape in RGB videos

Steps to train

  • Create conda env using the env.yml file.
conda env create -f env.yml
conda activate hand
  • Install relevant version of PyTorch by substituting appropriate CUDA version in the following command -
conda install pytorch==1.8.0 torchvision==0.9.0 cudatoolkit=10.2 -c pytorch
  • Download training data by -
cd segmentation/data
bash download_data.sh

This will download the compressed data files, extract them to segmentation/data/train_imgs and segmentation/data/bg_imgs, and will then delete the compressed files.

  • If the above command doesn't work out -

    • Download files from 1, 2, 3 and 4 and extract them to segmentation/data/train_imgs.
    • Download file from 1 and extract to segmentation/data/bg_imgs.
  • To train, switch to the scripts directory and run train_segmentation.sh with the command line arguments described below -

    1. model_name: Name of the segmentation model to train, eg. LightWeightRefineNet
    2. device: CPU/GPU Cud device to train on.
      • Enter '-1' to use CPU
      • Enter '0' to use CUDA device 0
      • Enter '0,1' to use CUDA devices 0 and 1 (no spaces)
      • Enter 'all' to use all CUDA devices available

    Example command bash train_segmentation.sh ModSegNet 0

  • To view training curves after completion -

tensorboard --logdir=experiments

About

Real-time hand pose and shape in RGB videos

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages