MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / ColorMode

Class ColorMode

utils/visualizer.py:37–56  ·  view source on GitHub ↗

Enum of different color modes to use for instance visualizations.

Source from the content-addressed store, hash-verified

35
36@unique
37class ColorMode(Enum):
38 """
39 Enum of different color modes to use for instance visualizations.
40 """
41
42 IMAGE = 0
43 """
44 Picks a random color for every instance and overlay segmentations with low opacity.
45 """
46 SEGMENTATION = 1
47 """
48 Let instances of the same category have similar colors
49 (from metadata.thing_colors), and overlay them with
50 high opacity. This provides more attention on the quality of segmentation.
51 """
52 IMAGE_BW = 2
53 """
54 Same as IMAGE, but convert all areas without masks to gray-scale.
55 Only available for drawing per-instance mask predictions.
56 """
57
58
59class GenericMask:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected