Skip to main content

cloths_segmentation

Code for binary segmentation of cloths

Data Preparation

Download the dataset from https://www.kaggle.com/c/imaterialist-fashion-2019-FGVC6

Process the data using script https://github.com/ternaus/iglovikov_helper_functions/tree/master/iglovikov_helper_functions/data_processing/prepare_cloths_segmentation

The script will create process the data and store images to folder images and binary masks to folder labels.

Training

Define the config.

Example at cloths_segmentation/configs

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

Define the environmental variable IMAGE_PATH that points to the folder with images.

Example:

export IMAGE_PATH=<path to the the folder with images>

Define the environmental variable LABEL_PATH that points to the folder with masks.

Example:

export MASK_PATH=<path to the folder with masks>

Training

python -m cloths_segmentation.train -c <path to config>

Inference

python -m torch.distributed.launch --nproc_per_node=<num_gpu> cloths_segmentation/inference.py \
                                   -i <path to images> \
                                   -c <path to config> \
                                   -w <path to weights> \
                                   -o <output-path> \
                                   --fp16

Metadata

Release files for cloths-segmentation 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloths-segmentation 0.0.2
File Size Uploaded Provenance Actions
cloths_segmentation-0.0.2.tar.gz 7.2 kB Without provenance Details for cloths_segmentation-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cloths-segmentation 0.0.2
File Interpreter ABI Platform Actions
cloths_segmentation-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for cloths_segmentation-0.0.2-py2.py3-none-any.whl

Total release size: 16.4 kB

Release files / cloths_segmentation-0.0.2.tar.gz

Download URL cloths_segmentation-0.0.2.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b4b58a9b2fbe44990c72e987dbc33e3ba05842cfe0ef670b67344c68dcec3526
BLAKE2b-256 checksum
How to use checksums
991e3fb6b12feefa605243e156d3fa440966f984c5a4a7086875b9e79b5bb8d3
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/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

Release files / cloths_segmentation-0.0.2-py2.py3-none-any.whl

Download URL cloths_segmentation-0.0.2-py2.py3-none-any.whl
Size 9.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7dfa956591c2c444f709a6d953daa5e1c8fc7f2d373a1f53c4a0b762f9e6cc4d
BLAKE2b-256 checksum
How to use checksums
ceb49ab8580a998597f0cc57a16c5c67f261e9405dd526bfe9eb9bd5eef4befa
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/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

Security for cloths-segmentation 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page