darknet icon indicating copy to clipboard operation
darknet copied to clipboard

Example from web page doesn't predict a dog

Open VilhoRaatikka opened this issue 6 years ago • 6 comments

Hi, I followed the instructions without modifications on page https://pjreddie.com/darknet/yolo/ (2018-04-25) and finally executed ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg . As a result I see this:

[...]
   99 conv    128  1 x 1 / 1    52 x  52 x 384   ->    52 x  52 x 128  0.266 BFLOPs
  100 conv    256  3 x 3 / 1    52 x  52 x 128   ->    52 x  52 x 256  1.595 BFLOPs
  101 conv    128  1 x 1 / 1    52 x  52 x 256   ->    52 x  52 x 128  0.177 BFLOPs
  102 conv    256  3 x 3 / 1    52 x  52 x 128   ->    52 x  52 x 256  1.595 BFLOPs
  103 conv    128  1 x 1 / 1    52 x  52 x 256   ->    52 x  52 x 128  0.177 BFLOPs
  104 conv    256  3 x 3 / 1    52 x  52 x 128   ->    52 x  52 x 256  1.595 BFLOPs
  105 conv    255  1 x 1 / 1    52 x  52 x 256   ->    52 x  52 x 255  0.353 BFLOPs
  106 detection
Loading weights from yolov3.weights...Done!
data/dog.jpg: Predicted in 22.369216 seconds.

(end of it)

Any hints on how to get prediction working?

ThinkPad-T460s 4.4.0-119-generic #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I probably didn't try with all configs but most at least. I also tried several other call syntaxes I found from other issues and their comments.

VilhoRaatikka avatar Apr 25 '18 19:04 VilhoRaatikka

It works now for my case. Pull again and try.

ankitshah009 avatar May 08 '18 09:05 ankitshah009

Hi, I pulled and rebuilt with, and without DEBUG set. Without debug it still doesn't predict. Debug build still segfaults. I used pre-trained model by following the instructions on https://pjreddie.com/darknet/yolo/

git pull
make clean
make
./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg

Makefile :

GPU=0
CUDNN=0
OPENCV=0
OPENMP=0
DEBUG=1

VilhoRaatikka avatar May 08 '18 10:05 VilhoRaatikka

I experience the same problem as @VilhoRaatikka, any solution yet?

MuadDev avatar May 19 '18 15:05 MuadDev

I am experiencing the same problem as @VilhoRaatikka and @MuadDev

shahidammer avatar Jul 24 '18 06:07 shahidammer

I too experiencing the same problem....any solution till now???

Rajykattoju avatar Aug 10 '18 20:08 Rajykattoju

Try this yolov3.weights wget https://pjreddie.com/media/files/yolov3.weights

Oreo0925 avatar May 29 '22 12:05 Oreo0925