darknet-docker icon indicating copy to clipboard operation
darknet-docker copied to clipboard

Cannot run detecting on multiple images

Open jtong99 opened this issue 4 years ago • 0 comments

Hi, thanks for your docker image, it helps me a lot with Yolo v4. I can run detecting on single image perfectly, but when I run to detect on multiple images and export to JSON file, seem like it cannot read the data in txt file.

docker run --runtime=nvidia --rm -v $PWD:/workspace -w /workspace daisukekobayashi/darknet:gpu \
	darknet detector test data/obj.data cfg/yolov4-obj.cfg yolov4-obj_final.weights -ext_output -dont_show -out result.json < data/test.txt 

I go to the code and try to log the input but it's null

CUDA-version: 11020 (11040), cuDNN: 8.1.1, GPU count: 1  
 OpenCV version: 4.2.0
 0 : compute_capability = 610, cudnn_half = 0, GPU: NVIDIA GeForce GTX 1050 
 Allocate additional workspace_size = 52.44 MB 
Loading weights from yolov4-obj_final.weights...start detecting:
net.optimized_memory = 0 
mini_batch = 1, batch = 16, time_steps = 1, train = 0 
Create CUDA-stream - 0 
 Create cudnn-handle 0 
nms_kind: greedynms (1), beta = 0.600000 
nms_kind: greedynms (1), beta = 0.600000 
nms_kind: greedynms (1), beta = 0.600000 
Done! Loaded 162 layers from weights-file 

 seen 64, trained: 384 K-images (6 Kilo-batches_64) 
Enter Image Path: input (null):

But when I run this command inside the container, it works successfully. Could you help me with this?

jtong99 avatar Sep 02 '21 04:09 jtong99