lvis-dataset / lvis-api

Python API for LVIS Dataset
http://lvisdataset.org
Other
405 stars 62 forks source link

Color Map for visualization #5

Closed dgks0n closed 5 years ago

dgks0n commented 5 years ago

Hi @agrimgupta92,

Is there any instruction for using colormap for visualization? Especially, segmentation task.

Thanks!

agrimgupta92 commented 5 years ago

You can take a look here for example usage of colormap.

dgks0n commented 5 years ago

Hi @agrimgupta92, In fact I used LVISVis class to visualize a specific image it does not work as I expected.

lvis_vis = LVISVis(ANNOTATION_PATH, RESULT_PATH, img_dir="./LVIS/train2017")
lvis_vis.vis_img(img_id=174018)

Is there any wrong and is there any way to get colormap as RGB (0~256)?