(self,array)
| 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 |
no outgoing calls
no test coverage detected