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.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

people_segmentation-0.0.1-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.1.tar.gz.

File metadata

  • Download URL: people_segmentation-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 3a13d100cc0f0180ed469885b254e13bff98bd12bba1a6be3eec28d64623e898
MD5 4dff03061a6aa696d2eed1532a2e70c5
BLAKE2b-256 41acb97fdaf0b438cf9aba762d5ecf44a68f1aeaf7323a7d217d5e970d942666

See more details on using hashes here.

File details

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

File metadata

  • Download URL: people_segmentation-0.0.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7c5a6ebe7e76b51771e5c07348862b73f7eddba63b799a6f581b838d6c6d3191
MD5 be7309a3221f7fe3d66ee6d76f19fcb6
BLAKE2b-256 c609987c9a122d75066562cbd78f205f57943071d78d0515a3732b2d70586379

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