lvis-api icon indicating copy to clipboard operation
lvis-api copied to clipboard

Length of defined colormap is not match with number of categories

Open dgks0n opened this issue 5 years ago • 0 comments

Hi @agrimgupta92 ,

As my understanding, the LVIS has more than 1200 categories and each category will have a colormap for visualization. However, I checked the result of the below method is only ~80 colormaps have been defined.

def get_color(self, idx):
        color_list = colormap(rgb=True) / 255
        return color_list[idx % len(color_list), 0:3]

So, is there something wrong here? Thanks

dgks0n avatar Sep 16 '19 04:09 dgks0n