Real-time hand pose and shape in RGB videos
- Create conda env using the
env.ymlfile.
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 -
-
To train, switch to the
scriptsdirectory and runtrain_segmentation.shwith the command line arguments described below -- model_name: Name of the segmentation model to train, eg. LightWeightRefineNet
- 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