MCPcopy Create free account
hub / github.com/SAMMiCA/ChangeSim / unique

Method unique

script/utils/Object_Labeling.py:26–28  ·  view source on GitHub ↗
(self,array)

Source from the content-addressed store, hash-verified

24 self.idx2name.update(self.idx2name_padding)
25
26 def unique(self,array):
27 uniq, index = np.unique(array, return_index=True, axis=0)
28 return uniq[index.argsort()]
29
30 def extract_color_from_seg(self,img_seg):
31 colors = img_seg.reshape(-1, img_seg.shape[-1]) # (H*W,3) # color channel in rgb order

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected