Borda / pyImSegm

Image segmentation - general superpixel segmentation & center detection & region growing

Home Page:https://borda.github.io/pyImSegm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No display found. Using non-interactive Agg backend.

blasco opened this issue · comments

Description

I get the following error when importing the package:
"No display found. Using non-interactive Agg backend."

Everything seems to be working but ploting, matplotlib stops working.

it seems that you are running on remote mode on a server which does not have a display? or Docker image without mounted display... may you share some more details about your environment?

if not os.environ.get('DISPLAY', '') and matplotlib.rcParams['backend'] != 'agg':
print('No display found. Using non-interactive Agg backend.')
# https://matplotlib.org/faq/usage_faq.html
matplotlib.use('Agg')

You are right, I'm running on a docker image with GPU support for tensorflow. How should I launch the container so it doesn't fail?

Then, restart your session and try get pure Figure without importing this package... I suppose that it fails =)

import matplotlib.pyplot as plt
plt.plot(1, 2), plt.show()

EDIT: you may need to connect it, check http://wiki.ros.org/docker/Tutorials/GUI