Mmdetection: : cannot connect to X server

Created on 7 May 2019  ·  4Comments  ·  Source: open-mmlab/mmdetection

当我运行demo时,发生了这个报错 模型我都有离线下载完毕 对这个报错 不明白是哪里出问题了

Most helpful comment

show_result(img, result, model.CLASSES, show=False, out_file='result.jpg')
加上show=False
out_file='result.jpg' 你保存的地方。

All 4 comments

你解决了吗

我是运行test.py的时候遇到,去掉--show就好了,运行demo的时候可以指定out_file,把标记过的图片保存下再打开

您好,请问在test.py的时候是怎么把标记的图片保存到文件夹的呢?指定out_file保存的不是pkl文件么?

show_result(img, result, model.CLASSES, show=False, out_file='result.jpg')
加上show=False
out_file='result.jpg' 你保存的地方。

Was this page helpful?
0 / 5 - 0 ratings