MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / get_colors

Function get_colors

utils/visualize.py:42–47  ·  view source on GitHub ↗
(class_num)

Source from the content-addressed store, hash-verified

40
41
42def get_colors(class_num):
43 colors = []
44 for i in range(class_num):
45 colors.append((np.random.random((1, 3)) * 255).tolist()[0])
46
47 return colors
48
49
50def get_ade_colors():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected