Pre-defined color for dataset in COCO format
See original GitHub issueHow to use stuff_colors
to pre-defined color for each stuff category for dataset in COCO format?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Create COCO Annotations From Scratch - Immersive Limit
This tutorial will teach you how to create a simple COCO-like dataset from scratch. It gives example code and example JSON annotations.
Read more >Understanding COCO Dataset - Section.io
In this tutorial, we will learn how to represent the dataset in COCO format. We will understand how the COCO format is structured...
Read more >Use Custom Datasets — detectron2 0.6 documentation
If you load a COCO format dataset, it will be automatically set by the function load_coco_json . thing_colors (list[tuple(r, g, b)]): Pre-defined color...
Read more >How to work with object detection datasets in COCO format
A comprehensive guide to defining, loading, exploring, and evaluating object detection datasets in COCO format using FiftyOne.
Read more >What Object Categories / Labels Are In COCO Dataset?
ID Object (Paper) Object (2014 Rel.) Object (2017 Rel.) Super Category
1 person person person person
2 bicycle bicycle bicycle vehicle
3 car car car vehicle...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Answered in docs https://detectron2.readthedocs.io/modules/utils.html#detectron2.utils.visualizer.ColorMode
I see now. If you set the stuff_color in the metadata, those colors will be fixed but the instances (thing classes) will still be randomized. If you set the instance_mode = ColorMode.SEGMENTATION, then all of the thing classes will follow the colors in the thing_color. I believe it not only affects the mask but also the bounding box coloring as well.