I am following detectron2 getting started tutorial to detect objects in an image. I am doing this using an AWS machine learning AMI and jupyter notebook. The model successfully detects an object in the image, but openCV seems to be not working because I do not get an output in my console. The error I get is cannot connect to X server.
Reading a file from 'Detectron2 Model Zoo'
[07/12 20:03:32 detectron2]: input1.jpg: detected 1 instances in 0.45s :
cannot connect to X server /home/ubuntu/anaconda3/lib/python3.7/multiprocessing/semaphore_tracker.py:144: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown len(cache)) ubuntu@ip-10-0-0-225:~/detectron2/detectron2/demo$
I am following detectron2 getting started tutorial to detect objects in an image. I am doing this using an AWS machine learning AMI and jupyter notebook. The model successfully detects an object in the image, but openCV seems to be not working because I do not get an output in my console. The error I get is cannot connect to X server.
Here is the command I use to run the model: