Enum of different color modes to use for instance visualizations.
| 35 | |
| 36 | @unique |
| 37 | class 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 | |
| 59 | class GenericMask: |
nothing calls this directly
no outgoing calls
no test coverage detected