Skip to main content

High quality model for people segmentation.

Project description

Binary segmentation of people

Data

Train set:

  • Mapillary Vistas Commercial 1.2 (train)
  • COCO (train)
  • Pascal VOC (train)
  • Human Matting

Validation set:

  • 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.

Training

Define the config.

Example at people_segmentation/configs

You can enable / disable datasets that are used for training and validation.

Define the environmental variable TRAIN_PATH that points to the folder with train dataset.

Example:

export TRAIN_PATH=<path to the tranining folder>

Define the environmental variable VAL_PATH that points to the folder with validation dataset.

Example:

export VAL_PATH=<path to the validation folder>

Run training

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

Run Inference

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

people_segmentation-0.0.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

people_segmentation-0.0.3-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file people_segmentation-0.0.3.tar.gz.

File metadata

  • Download URL: people_segmentation-0.0.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for people_segmentation-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d6acacb5bbe81851c95297a6373ca8356642d68edf3e06c9c89134347c42d3d5
MD5 db6ec7ba54b4365eae772822e4185008
BLAKE2b-256 23812db9500041a7240b80cb44356c35525805a526212e9c954e950f7be1ca6a

See more details on using hashes here.

File details

Details for the file people_segmentation-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: people_segmentation-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for people_segmentation-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 333e1f2af3e8fad3b362dc9d32d891800cb7c2f85b956cb5ca09f9933b05a011
MD5 ddbfb54419f7000836ad352777414576
BLAKE2b-256 8c03d14e469757d99eed45e4f3d7ed8cac998a66ba7850f90841da26edd70a37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page