CoinCheung / BiSeNet

Add bisenetv2. My implementation of BiSeNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请问一下如何改一下语义分割后颜色,与citys数据集分割后的颜色一致

plmoknhhh opened this issue · comments

Hi,

Currently, color is randomly generated, you can see the code:

palette = np.random.randint(0, 256, (256, 3), dtype=np.uint8)

If you want to use other colormap, you can replace the above line with your own color map.

感谢

我之前在github下载了deeplabv3plus的源码,里面有cityscapes的颜色映射,直接调用并且替换了

Glad to know you have solved your problem. I am closing this.