Open Caroline1994 opened 6 years ago
Instead of this line FILE *fp=fopen("results/result.txt","a");
use this line static FILE *fp=fopen("results/result.txt","a");
But better to use without any changes of source code:
darknet.exe detector demo data/voc.data yolo-voc.cfg yolo-voc.weights test.mp4 > result.txt
@AlexeyAB
Could you tell me how can I get mAP corresponding of FPS when I run ./darknet detector demo
Thank you very much
Could you tell me how can I get mAP corresponding of FPS
./darknet detector map
- to get mAP./darknet detector demo
- to get FPSSo you will get mAP and FPS for the same model.
mAP can't be obtained for video, because to get mAP your Dataset-images should be labeled.
./darknet detector map
@AlexeyAB Thank you very much!
Hi,@AlexeyAB
Could you tell me how to use the method in this picture?How should I modify the parameters in the darknet.exe detector calc_anchors data/obj.data -num_of_clusters 9 -width 416 -height 416
Thank you very much!
@Caroline1994
Just do this command
darknet.exe detector calc_anchors data/obj.data -num_of_clusters 9 -width 416 -height 416
You will get new anchors. Then set new anchors in these 3 places in your cfg-file:
Hi,@AlexeyAB Thans for your reply. I want to ask you, in the paper YOLO9000: Better, Faster, Stronger, I saw the section of the introduction of dimensional clustering mentioned that the recall rate of 5 kinds of anchor boxes is equivalent to 9 kinds of anchor boxes in the Faster R-CNN. Why does the code do not use 5 anchor boxes, but 9?
@Caroline1994
the section of the introduction of dimensional clustering mentioned that the recall rate of 5 kinds of anchor boxes is equivalent to 9 kinds of anchor boxes
This is about Yolo v2 where is only 1 detection-layer ([region]
) in the network at one scale. Figure2 and Table 1 on page 3: https://arxiv.org/pdf/1612.08242v1.pdf
But in the Yolo v3 there are 3 detection layers ([yolo]
) at the the different scales, so each 3 anchors are used only for correspond [yolo]
layer. At the different scales should be used different anchors.
Thank you very much!@AlexeyAB If you don't mind,could you give me a brief introduction of the idea and the main formula about using k-means++ to find out the anchor boxes's width and height in the src/detector.c calc_anchors() function?
Hi, @AlexeyAB I want to get the coordinates of the detected object and save the data to a txt file I have add
into the draw_detections_cv_v3() function. I have got core dump problem when I run
./darknet detector demo
But I can got correct result when I add those code into draw_detections_v3() function and run./darknet detector test
. could you help me