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
Release files for people-segmentation 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| people_segmentation-0.0.4.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| people_segmentation-0.0.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 17.6 kB
Release files / people_segmentation-0.0.4.tar.gz
| Download URL | people_segmentation-0.0.4.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd4e1ab5a8f6437eb131019ac2650bc5b3a2b51af95da86d3d6c95bd5a7489d6
|
|
BLAKE2b-256 checksum How to use checksums |
aa3d180d41a7b1eefbf461c84e809e8bd03b7ce65d86cfb13eedd4debbc20aa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / people_segmentation-0.0.4-py2.py3-none-any.whl
| Download URL | people_segmentation-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6d53c5fe7aa838debbfb2e5f7f77e21c1ef57fc01ffb2fd0c9079d85200f09dc
|
|
BLAKE2b-256 checksum How to use checksums |
7a64b70128334cad6f1384087192ccd8d147206f3f78d01987249985d2b63b0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|