UserWarning: Matplotlib is currently using agg,which is a non-GUI backend, so cannot show the figure

在跑 mask-rcnn 代码的时候,遇到了 plt 没法显示图像的问题。web 经一番排查,发现发生在 coco.py 文件svg 将 “Agg” 改成 “TkAgg”,问题解决code import matplotlib; matplotlib.use('TkAgg')
相关文章
相关标签/搜索