Download segmentation/mmseg_custom/core/evaluation/panoptic_utils.py from Leonardo6/git: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/Leonardo6/git/resolve/main/segmentation/mmseg_custom/core/evaluation/panoptic_utils.py
- Command line
-
hf download hf://Leonardo6/git/segmentation/mmseg_custom/core/evaluation/panoptic_utils.py
-
curl -L -o panoptic_utils.py https://huggingface.co/Leonardo6/git/resolve/main/segmentation/mmseg_custom/core/evaluation/panoptic_utils.py
273 Bytes
| # Copyright (c) OpenMMLab. All rights reserved. | |
| # A custom value to distinguish instance ID and category ID; need to | |
| # be greater than the number of categories. | |
| # For a pixel in the panoptic result map: | |
| # pan_id = ins_id * INSTANCE_OFFSET + cat_id | |
| INSTANCE_OFFSET = 1000 | |