blueoil icon indicating copy to clipboard operation
blueoil copied to clipboard

consider to remove matplotlib dependency

Open tkng opened this issue 5 years ago • 4 comments

It might be possible to remove a dependency matplotlib. (Though I'm not sure...)

tkng avatar Oct 02 '19 09:10 tkng

blueoil uses matplotlib only for colormaps (matplotlib.cm). Alternatives:

  • palettable: https://jiffyclub.github.io/palettable/
  • colorcet: https://colorcet.pyviz.org/

tsawada avatar Oct 03 '19 01:10 tsawada

We have color map implementation in lmnet... It's not enough? https://github.com/blue-oil/blueoil/blob/master/lmnet/lmnet/common.py#L28-L52

iizukak avatar Oct 03 '19 01:10 iizukak

Short answer is, not enough.

  • lmnet/lmnet/common.py defines a color map for label coloring, it's for object detection and semantic segmentation. It's widely used in the Blueoil.
  • lmnet/lmnet/networks/classification/base.py uses Jet, which is a color map for heatmap or depth image.

We don't have latter one.

Recently, Google proposed a new rainbow colormap called Turbo, it looks better alternative to Jet. https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html

tkng avatar Oct 04 '19 03:10 tkng

image

Wow, let's add the Turbo colormap. I'm ready to work on this. @iizukak This is still not fixed yet, right?

kalpitthakkar-lm avatar May 25 '20 09:05 kalpitthakkar-lm