Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Length of defined colormap is not match with number of categories #6

Open
dgks0n opened this issue Sep 16, 2019 · 0 comments
Open

Length of defined colormap is not match with number of categories #6

dgks0n opened this issue Sep 16, 2019 · 0 comments

Comments

@dgks0n
Copy link

dgks0n commented Sep 16, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant