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

Uploaded Source

Built Distribution

people_segmentation-0.0.2-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.2.tar.gz.

File metadata

  • Download URL: people_segmentation-0.0.2.tar.gz
  • Upload date:
  • Size: 7.8 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.2.tar.gz
Algorithm Hash digest
SHA256 10c18af9d019042a3045995641a4fc02627a89fb23d1f538cdb3b2b4d636af63
MD5 b3ca8aee0bdd2ee11111538fb206670e
BLAKE2b-256 83f2264a57ec0e8cd4d9f26c2bc2fabd92c53f7e8c56dd5312dd32d38524bd97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: people_segmentation-0.0.2-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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e36bef4ef1b28a814418fceb4f57bdac0d523e3b3a1242be501794fe8668c4d
MD5 28e92acfb7a113c9bb3fc189a73900be
BLAKE2b-256 11d4c1bc93384c7f9607e197019d1ee602cafa3054796e41e1743c07651ea377

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