How can it be done?
https://github.com/AlexeyAB/darknet#how-to-use
To process a list of images data/train.txt and save results of detection to result.txt use:
darknet.exe detector test cfg/coco.data yolov3.cfg yolov3.weights -dont_show -ext_output < data/train.txt > result.txt
Thanks Alexey.
I don’t want to test the images one by one and run the whole network for
detection separately. I would like to run a test batch with size larger
than 1.
How can it be done?
בתאריך יום א׳, 17 בפבר׳ 2019 ב-23:10 מאת Alexey notifications@github.com:
https://github.com/AlexeyAB/darknet#how-to-use
To process a list of images data/train.txt and save results of detection
to result.txt use:
darknet.exe detector test cfg/coco.data yolov3.cfg yolov3.weights
-dont_show -ext_output < data/train.txt > result.txt—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AlexeyAB/darknet/issues/2424#issuecomment-464509689,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Al94CgtYopdO_WXFalDFNoTjc9SYu4EDks5vOcVGgaJpZM4a_yix
.
I don’t want to test the images one by one and run the whole network for detection separately.
The network will be loaded only once.
If you want to test 64 by 64 instead of 1 by 1, then it isn't implemented batch testing yet.
Since the current aim low latency for real-time object detection on a single video-stream.
I have been trying to do exactly the same thing but can't seem to get it to actually run. I am simply trying to run it on my same training data (I was able to train successfully with all of the following .cfg/.data, etc). However, I still get output such as:
Cannot load image "data/labels/32_0.png"
Cannot load image "data/labels/33_0.png"
Cannot load image "data/labels/34_0.png"
Cannot load image "data/labels/35_0.png"
...
Prior to the model loading, then it simply hangs with the output:
Total BFLOPS 65.297
Allocate additional workspace_size = 33.55 MB
Loading weights from gemini_final.weights...Done!
Despite having also changed the beginning my .cfg as follows:
[net]
# Testing
batch=1
subdivisions=1
# Training
#batch=64
#subdivisions=64
My arguments to start it are as follows:
./darknet detector test data/gemini.data gemini.cfg gemini_final.weights -dont_show -ext_output < data/gemini_train.txt > results.txt
I don't suppose you have any insight?
EDIT: Oh I'm dumb, it redirected output to results.txt... Everything seems to be working perfectly!
@Stoltec
However, I still get output such as:
Cannot load image "data/labels/32_0.png" Cannot load image "data/labels/33_0.png" Cannot load image "data/labels/34_0.png" Cannot load image "data/labels/35_0.png"
Because your removed this directory: https://github.com/AlexeyAB/darknet/tree/master/data/labels
Hi Alexey.
Thank you for the details.
We used some solution provided by another post on the net that externally
advances the output pointer of each layer to get the result of different
batches.
We still have some issues that you might be able to help with:
Thanks,
Avia & Guy.
On Sun, Feb 17, 2019 at 11:47 PM Alexey notifications@github.com wrote:
I don’t want to test the images one by one and run the whole network for
detection separately.The network will be loaded only once.
If you want to test 64 by 64 instead of 1 by 1, then there isn't
implemented batch testing yet.
Since the current aim low latency for real-time object detection on a
single video-stream.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AlexeyAB/darknet/issues/2424#issuecomment-464513961,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Al94CvMl25ooCmtzAu_wj7-Ul4O1prYNks5vOc3sgaJpZM4a_yix
.
@aviaisr
If the memory allocation of the process if above 1.5GB in Release the application crashes
Thank you Alexey,
BR,
Guy & Avia
בתאריך יום ד׳, 20 בפבר׳ 2019 ב-10:51 מאת Alexey notifications@github.com:
@aviaisr https://github.com/aviaisr
- This is related to this line, you can just comment it:
https://github.com/AlexeyAB/darknet/blob/5e850c24897a5eb65941703059a85ead2ea5ff8c/src/yolo_layer.c#L407If the memory allocation of the process if above 1.5GB in Release the
application crashes
- I never met with it. And I can't reproduce it. All my models work
well until all 8 GB of my GPU RTX 2070 will used.—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/AlexeyAB/darknet/issues/2424#issuecomment-465482171,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Al94Ct4H2xGwDLdzjNw4zAfDmQ_PiJcBks5vPQyIgaJpZM4a_yix
.
@aviaisr Just experiment to increase accuracy by detection on both non-flipped and flipped images. You can leave it commented.
@aviaisr
We used some solution provided by another post on the net that externally
advances the output pointer of each layer to get the result of different
batches.
Hi, I have the same need as you, to test the YOLO V3 network on several images with only one forward and get detection results for these image at one time.
You mentioned you accomplish this with the solution of another repo, could you share your solution please?
Thanks!
Most helpful comment
https://github.com/AlexeyAB/darknet#how-to-use
To process a list of images data/train.txt and save results of detection to result.txt use:
darknet.exe detector test cfg/coco.data yolov3.cfg yolov3.weights -dont_show -ext_output < data/train.txt > result.txt