We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6509054 commit 6f523c2Copy full SHA for 6f523c2
labelbox/schema/ontology.py
@@ -331,7 +331,7 @@ def _update_colors(self):
331
hsv_color = (index * 1 / num_tools, 1, 1)
332
rgb_color = tuple(
333
int(255 * x) for x in colorsys.hsv_to_rgb(*hsv_color))
334
- if self.tools[index].color is None:
+ if self.tools[index].color == "#000000":
335
self.tools[index].color = '#%02x%02x%02x' % rgb_color
336
337
@classmethod
0 commit comments