EdjeElectronics / TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10

How to train a TensorFlow Object Detection Classifier for multiple object detection on Windows
Apache License 2.0
2.93k stars 1.3k forks source link

Cannot connect to X server #379

Open MrFahad opened 5 years ago

MrFahad commented 5 years ago

Hi,

While working over the google colab I am getting this error "cannot connect to X server". I have placed all my folder in google drive and importing from as:

from google.colab import drive drive.mount('/content/gdrive')

while running my file

!python abc.py -i data

I have tried all this in TWO different notebooks.

1 - jupyter notebook 2 - Matplotlib notebook

MrFahad commented 5 years ago

NOTE: The data folder carries images .jpg etc

mohanaditya910 commented 4 years ago

make sure that u are not using cv2.imshow,cv2.destroyallwindows that solves the problem...........

More explanation in this link https://stackoverflow.com/questions/54577083/cannot-connect-to-x-server-google-colab

abhishekzgithub commented 3 years ago

Colab is over a server so it will not e able to show any window and hence it shuts it down. I had the same issue but we need to find how we can do it without opening another window frame.