Cannot connect to X server GOOGLE COLAB

后端 未结 3 1678
清歌不尽
清歌不尽 2021-01-02 04:24

I am trying to make a prediction using Tensorflow Object Detection API on Google COLAB. Already I successfully completed the train

3条回答
  •  萌比男神i
    2021-01-02 04:38

    An X server is a program in the X Window System that runs on local machines (i.e. the computers used directly by users) and handles all access to the graphics cards, display screens and input devices (typically a keyboard and mouse) on those computers.

    With that said Colab runs as a terminal instance in the server, if you are using GPU runtime, then the problem is not with X server accessing your Graphics card, neither with Input devices, generally this occurs when you try to parse some data that should be displayed as separate window on your desktop, commands like cv2.imshow(), there can be other similar functions that can cause this problem, if you have to use graphical ouput you might want to look into %matplotlib notebook and displaying the data in the interactable matplot plots.

    If this is not your issue, just post a link to your modified code and I might be able to help more.

提交回复
热议问题