Skip to main content

JSB Framework

Project description

Semantic Segmentation and Edge Detection

Setup

# install mmcv and pytorch

# install other dependencies
pip install -r requirements.txt

# If you want to install potato globally
python setup.py develop

Datasets

python tools/convert_datasets/preprocess_cityscapes.py

Training

CUDA_VISIBLE_DEVICES=0,1 ./tools/dist_train.sh <path/to/config> <num_gpus>

Test

Evaluate and Visualize Segmentatation and Edges

CUDA_VISIBLE_DEVICES=0,1 ./tools/dist_train.sh <path/to/config> <path/to/ckpt> <num_gpus> ...

To evaluate F-boundary scores:

# only supports single gpu
CUDA_VISIBLE_DEVICES=0, python tools/test_boundary_fscore.py <path/to/config> <path/to/ckpt> ...

Evaluate Edges

# save edges
CUDA_VISIBLE_DEVICES=0,1 ./tools/dist_train.sh <path/to/config> <path/to/ckpt> <num_gpus> --save-edge ...

python tools/test_edge.py <path/to/config> <path/to/predictions> ...

Evaluating edges will take a very long time (depends on the hardware).

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

potato-cv-0.1.0.tar.gz (82.0 kB view hashes)

Uploaded Source

Built Distribution

potato_cv-0.1.0-py3-none-any.whl (122.4 kB view hashes)

Uploaded Python 3

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