Borda / pyImSegm

Image segmentation - general superpixel segmentation & center detection & region growing
https://borda.github.io/pyImSegm
BSD 3-Clause "New" or "Revised" License
373 stars 73 forks source link

No display found. Using non-interactive Agg backend. #25

Closed blasco closed 4 years ago

blasco commented 4 years ago

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.

Borda commented 4 years ago

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? https://github.com/Borda/pyImSegm/blob/a08c02b3be1cd729b7409dd4c93003e4ab2c0eab/imsegm/utilities/__init__.py#L8-L11

blasco commented 4 years ago

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?

Borda commented 4 years ago

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