question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pre-defined color for dataset in COCO format

See original GitHub issue

How to use stuff_colors to pre-defined color for each stuff category for dataset in COCO format?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

0reactions
tom-bucommented, Dec 14, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found