Skip to content

Commit 13c7f09

Browse files
committed
Make converters "importable"
1 parent 7bb4655 commit 13c7f09

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CONVERTERS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ In COCO stuff segmentation challenge 2017 all thing classes were merged into one
5858
In the panoptic segmentation [paper](https://arxiv.org/abs/1801.00868) naive format to store panoptic segmentation is proposed. We call the format *2 channel format*. Each segment is defined by two labels:
5959
(1) semantic category label and (2) instance ID label. Together this two labels form a unique pair that distinguishes one segment from another. These two labels are stored as first two channels of a PNG file correspondingly. Example of panoptic data saved in the 2 channel format can be found in [sample_data/panoptic_examples_2ch_format](https://github.com/cocodataset/panopticapi/blob/master/sample_data/panoptic_examples_2ch_format) folder.
6060

61-
The script `converters/2channels2panoptic_coco_format.py` converts panoptic segmentation prediction from 2 channels format to COCO panoptic format:
61+
The script `converters/twochannels2panoptic_coco_format.py` converts panoptic segmentation prediction from 2 channels format to COCO panoptic format:
6262

6363
``` bash
64-
python converters/2channels2panoptic_coco_format.py \
64+
python converters/twochannels2panoptic_coco_format.py \
6565
--source_folder sample_data/panoptic_examples_2ch_format \
6666
--images_json_file sample_data/images_info_examples.json \
6767
--prediction_json_file converted_data/panoptic_coco_from_2ch.json

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
setup(
77
name='panopticapi',
8-
packages=['panopticapi'],
9-
package_dir = {'panopticapi': 'panopticapi'},
8+
packages=['panopticapi', 'panopticapi_converters'],
9+
package_dir = {'panopticapi': 'panopticapi',
10+
'panopticapi_converters': 'converters'},
1011
install_requires=[
1112
'numpy',
1213
'Pillow',

0 commit comments

Comments
 (0)