pip install -U people_segmentation
Jupyter notebook with the example:
- Mapillary Vistas Commercial 1.2 (train)
- COCO (train)
- Pascal VOC (train)
- Human Matting
- Mapillary Vistas Commercial 1.2 (val)
- COCO (val)
- Pascal VOC (val)
- Supervisely
To convert datasets to the format:
training
coco
matting_humans
pascal_voc
vistas
validation
coco
pascal_voc
supervisely
vistas
use this set of scipts.
Example at people_segmentation/configs
You can enable / disable datasets that are used for training and validation.
Example:
export TRAIN_PATH=<path to the tranining folder>
Example:
export VAL_PATH=<path to the validation folder>
python -m people_segmentation.train -c <path to config>
You can check the loss and validation curves for the configs from people_segmentation/configs at W&B dashboard
python -m torch.distributed.launch --nproc_per_node=<num_gpu> people_segmentation/inference.py \
-i <path to images> \
-c <path to config> \
-w <path to weights> \
-o <output-path> \
--fp16
https://peoplesegmentation.herokuapp.com/
Code for the web app: https://github.com/ternaus/people_segmentation_demo