PythonAPI/cocoSegmentationToPngDemo.py函数是用来做语义分割的,参考这里https://blog.csdn.net/qq_33000225/article/details/78985635?utm_source=blogxgwz2
由于我用的是2017数据集,因此只需要改第一部分,labelMap = cocoSegmentationToSegmentationMap(coco, imgId, checkUniquePixelLabel=False, includeCrowd=includeCrowd)
不需要改第二部分。改完后去PythonAPI路径下make。

 
中途报错:ValueError: invalid palette size,
解决方案:
引用cmap的时候改成 np.uint8(cmap).tolist()即可~
参考 https://stackoverflow.com/questions/50140853/pil-putpalette-error

        </div>

相关文章:

  • 2021-11-22
  • 2021-12-14
  • 2021-07-18
  • 2021-04-19
  • 2022-01-13
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-04-08
  • 2021-06-17
  • 2021-12-02
  • 2021-04-01
  • 2021-04-26
  • 2021-04-27
  • 2021-06-28
相关资源
相似解决方案