balbal.....
下载完weight后,在终端输入:
./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg
我是根据网上Yolo v3教程一步一步来的,装了最新的opencv,发现如下问题:
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 yolo
Loading weights from yolov3.weights...Done!
data/dog.jpg: Predicted in 0.045922 seconds.
dog: 99%
truck: 92%
bicycle: 99%
OpenCV(3.4.1) Error: Assertion failed ((flags & FIXED_TYPE) != 0) in type, file /home/kiraq/home/installation/opencv-3.4.1/modules/core/src/matrix_wrap.cpp, line 807
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.1) /home/kiraq/home/installation/opencv-3.4.1/modules/core/src/matrix_wrap.cpp:807: error: (-215) (flags & FIXED_TYPE) != 0 in function type
Aborted (core dumped)
请问如何解决?