vincentgong7 / VG_AlexeyAB_darknet

A forked AlexeyAB Darknet repo with extra convenient functions.
https://darknet.gong.im
Other
84 stars 41 forks source link

Gtk-WARNING **: cannot open display: #2

Closed yustiks closed 4 years ago

yustiks commented 5 years ago

Hello! I am trying to run your program, but I have this error: "mask_scale: Using default '1.000000' Loading weights from weights/yolo-voc.backup...Done!

(145:15882): Gtk-WARNING **: cannot open display: "

Basically, the program predicts one image and saves the results, but after 1 image it stops with this phrase. What is your suggestion? UPDATE I figured out it was a problem with opencv library, so I had to make opencv=0 in Makefile and run command make again, so it worked for me

vincentgong7 commented 5 years ago

Hi Yustiks,

Nice to know that you solved it. Yes, if you do not use OpenCV, set it as 0. Great! Enjoy using it. Hope it help u anyway.

BR, Vincent

Vic-TheGreat commented 5 years ago

Quick question, why is it unable to combine with openCV?? ...... I would like to know for the knowledge. Thanks!

cheers!!

vincentgong7 commented 5 years ago

It should be able to combine with the openCV. Maybe some problems in configuration.

vincentgong7 commented 5 years ago

Could you try the original version and test if the same problem occurs?

Vic-TheGreat commented 5 years ago

Oh maybe that's the problem.... is there a specif way to open with openCV? ..... I simply run with the command ./darknet detector batch cfg/coco.data cfg/yolov3.cfg weights/yolov3.weights batch exp/in_images/ exp/out_images/ > exp/results/results.txt

vincentgong7 commented 4 years ago

In the Makefile in the root folder of this project, you could specify if you use Opencv or not: OPENCV=0 or: OPENCV=1

Once the Makefile is modified, you should compile this project again. For example, on Linux, the command is "make". After that, you can use the command you mentioned to batch process images.

DoSquared commented 2 years ago

I have this issue and I cannot fix it after changing open CV