Ask Your Question

Revision history [back]

[Darknet] Cannot load image "-dont_show" despite patch of images and opencv OK

I'll like to know the explanation about the output error:

105 conv 18 1 x 1 / 1 76 x 76 x 256 -> 76 x 76 x 18 0.053 BFLOPs 106 yolo Loading weights from backup/obj_100.weights...Done! Cannot load image "-dont_show" free(): invalid pointer when a try to use the ./darknet detector test obj.data obj.cfg backup/obj_100.weights -dont_show -ext_output < data/train.txt > result.txt command. I check the train.txt and the image path is OK: /home/fitlab1/Área de Trabalho/CNN4antsYOLO/darknet/sample_107.jpg The opencv is OK too: python3 -c "\ import cv2 print(cv2.__version__)" 4.2.0

and the prediction direct with the file image name using the command ./darknet detector train obj.data cfg/obj.cfg darknet53.conv.74 -map | tee log.txt work very well:

105 conv 18 1 x 1 / 1 76 x 76 x 256 -> 76 x 76 x 18 0.053 BFLOPs 106 yolo Loading weights from darknet53.conv.74...obj Done!

Is there some explanation for this error?

[Darknet] Cannot load image "-dont_show" despite patch of images and opencv OK

I'll like to know the explanation about the output error:

105 conv 18 1 x 1 / 1 76 x 76 x 256 -> 76 x 76 x 18 0.053 BFLOPs 106 yolo Loading weights from backup/obj_100.weights...Done! Cannot load image "-dont_show" free(): invalid pointer when a try to use the ./darknet detector test obj.data obj.cfg backup/obj_100.weights -dont_show -ext_output < data/train.txt > result.txt command. I check the train.txt and the image path is OK: /home/fitlab1/Área de Trabalho/CNN4antsYOLO/darknet/sample_107.jpg The opencv is OK too: python3 -c "\ import cv2 print(cv2.__version__)" 4.2.0

and the prediction direct with the file image name using the command ./darknet detector train obj.data cfg/obj.cfg darknet53.conv.74 -map | tee log.txt work very well:

105 conv 18 1 x 1 / 1 76 x 76 x 256 -> 76 x 76 x 18 0.053 BFLOPs 106 yolo Loading weights from darknet53.conv.74...obj Done!

Is there some explanation for this error?

click to hide/show revision 3
None

updated 2020-04-08 07:32:16 -0600

berak gravatar image

[Darknet] [Darknet-off topic] Cannot load image "-dont_show" despite patch of images and opencv OK

I'll like to know the explanation about the output error:

  105 conv     18  1 x 1 / 1    76 x  76 x 256   ->    76 x  76 x  18  0.053 BFLOPs
  106 yolo
Loading weights from backup/obj_100.weights...Done!
Cannot load image "-dont_show"
free(): invalid pointer
 

when a try to use the ./darknet detector test obj.data obj.cfg backup/obj_100.weights -dont_show -ext_output < data/train.txt > result.txt command. I check the train.txt and the image path is OK: OK:

/home/fitlab1/Área de Trabalho/CNN4antsYOLO/darknet/sample_107.jpg

The opencv is OK too: too:

python3 -c "\
import cv2
print(cv2.__version__)"
4.2.0

and the prediction direct with the file image name using the command ./darknet detector train obj.data cfg/obj.cfg darknet53.conv.74 -map | tee log.txt work very well:

  105 conv     18  1 x 1 / 1    76 x  76 x 256   ->    76 x  76 x  18  0.053 BFLOPs
  106 yolo
Loading weights from darknet53.conv.74...obj
Done!

Is there some explanation for this error?