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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file people_segmentation-0.0.4.tar.gz.
File metadata
- Download URL: people_segmentation-0.0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd4e1ab5a8f6437eb131019ac2650bc5b3a2b51af95da86d3d6c95bd5a7489d6
|
|
| MD5 |
9ea5f613c135e2fa3aab4856bb7d379b
|
|
| BLAKE2b-256 |
aa3d180d41a7b1eefbf461c84e809e8bd03b7ce65d86cfb13eedd4debbc20aa2
|
File details
Details for the file people_segmentation-0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: people_segmentation-0.0.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d53c5fe7aa838debbfb2e5f7f77e21c1ef57fc01ffb2fd0c9079d85200f09dc
|
|
| MD5 |
37ec86e2303dd63deb5b40c9bc5445a1
|
|
| BLAKE2b-256 |
7a64b70128334cad6f1384087192ccd8d147206f3f78d01987249985d2b63b0f
|