当前位置:网站首页>Yolov3 & yolov5 output result description
Yolov3 & yolov5 output result description
2022-07-02 14:12:00 【Maple in Luobei Village】
This article uses yolov3 and yolov5 Engineering documents are github On ultralytics be based on pytorch Of v3 and v5 Code , The output results of the training set are basically the same , The output results are mainly introduced , This is a study note
This article uses yolov3 Code github Download address :yolov3
See this blog for specific steps of model training :
yolov3 model training —— Use yolov3 Train your model
This article uses yolov5 Code github Download address :yolov5
See this blog for specific steps of model training :
yolov5 model training ——— Use yolov5 Train your own dataset
This article mainly includes the following contents :
yolov3 The output results of model training are shown in the figure below :
yolov5 The output results of model training are shown in the figure below :
( This version of v3 and v5 The output result type looks exactly the same , I used the same data set for training , So the output visualization results are also very similar ,v5 The result screenshot on the server was not saved , This is used here. windows Lower view )
1. confusion_matrix.png
confusion_matrix.png Refers to the confusion matrix (Confusion Matrix)
In machine learning , Confusion matrix (Confusion Matrix), Also known as possibility matrix or error matrix . Confusion matrix is a visualization tool , Especially for supervised learning , In unsupervised learning, it's called matching matrix . In the evaluation of image accuracy , It is mainly used to compare the classification results with the actual measured values , The accuracy of the classification results can be displayed in a confusion matrix .
Each column of the confusion matrix represents the prediction category , The total number of each column represents the number of data predicted for that category ;
Each row represents the true category of the data , The total number of data in each row represents the number of data instances in that category ; The values in each column represent the number of real data predicted to be of this class .
The confusion matrix structure is shown in the figure below :
2. F1_curve.png
F1_Score: The mathematical definition is F1 fraction (F1-Score), Also known as balance F fraction (Balanced Score), It is defined as the harmonic average of accuracy and recall . stay β=1 The situation of ,F1-Score The value range of is 0 To 1,1 It's the best ,0 Is the worst . The calculation formula is shown in the figure below :
3. labels.jpg
The first picture classes: The amount of data in each category
The second picture labels: label
The third picture center xy
The fourth picture labels The length and width of the label
4. P_curve.png
Accuracy Precision And confidence confidence Diagram for
5. PR_curve.png
PR In the curve P It stands for Precision( Accuracy ),R It stands for Recall( Recall rate ), It represents the relationship between accuracy and recall , In general , take recall Set to abscissa ,precision Set to ordinate .PR The area enclosed under the curve is AP, All categories AP The average value is map.
If PR One of the curves in Figure A Completely enclose the curve of another learner B, It can be asserted that A Better performance than B, When A and B When crossing occurs , It can be compared according to the area under the curve . General training results mainly observe the fluctuation of accuracy and recall rate ( If the fluctuation is not great, the training effect is better ).
Precision( Accuracy ) Indicates the percentage of positive samples detected as correct by the classifier in all positive samples predicted , That is, in the prediction box of the current traverse , The proportion of correct target prediction frame detected . The formula is shown in the figure below :
Recall( Recall rate ) Indicates the percentage of all positive samples detected as correct by the classifier , That is, in all truth bounding boxes , Proportion of correct positive sample bounding box detected . The formula is shown in the figure below :
Precision and Recall Generally, it is a pair of contradictory performance metrics ;
Improve Precision Improve the threshold of positive case prediction by two classifiers , Make the positive example predicted by the two classifiers as real as possible ;
Improve Recall Reduce the threshold of positive case prediction by two classifiers , Make the two classifiers choose the real positive examples as much as possible
6. R_curve.png
Recall rate Recall And confidence confidence The relationship between
7. results.png

(1)yolov3 And yolov5 The loss function of can be divided into three parts : Class loss function (Classification loss)、 Confidence loss function (Confidence loss) And position loss function (Localization loss)
Box_loss:Box by CIoU The loss function means , The smaller the box, the more accurate ;
Objectness_loss:Objectness Is the average loss of target detection , The smaller the target, the more accurate the detection ;
Classification_loss:Classification Is the average loss of classification , The smaller the size, the more accurate the classification ;
val Box_loss: Verification set bounding box Loss ;
val Objectness_loss: Verification set target detection loss mean value ;
val classification_loss: Validation set classification loss mean value ;
(2)
Precision: The change curve of accuracy rate with the number of training
Recall: The change curve of recall rate with the number of training
(3)AP Value is an important evaluation index to measure the performance of target detection model classifier ,AP The higher the value, the better the classifier performance , The smaller the size, the worse the classifier performance ;AP The size of the value is equal to P-R The area of the area enclosed by the curve and the coordinate axis .
mAP Represents all label categories AP The average of the values ,mAP The bigger the value is. , It shows that the better the performance of the model .
[email protected]: It means that IoU The threshold for 0.5 At the time of the mAP The curve of value change
[email protected]:0.95: It means that IoU Threshold with 0.05 The step size is from 0.5 To 0.95 When changing mAP The curve of value change , namely IoU Threshold value 0.5、0.55、0.6、0.65、0.7、0.75、0.8、0.85、0.9、0.95 Average at mAP.
8. results.txt

results.txt The last three columns in are the validation set results , The previous is the result of the training set , All columns are :
Training times ,GPU Consume , Bounding box loss , Target detection loss , Classified loss ,total,targets, Picture size ,P,R,[email protected], [email protected]:.95, Verification set val Box, Verification set val obj, Verification set val cls
test_batch0_labels Pictures like this are the visual results of model training output , I won't repeat ~
边栏推荐
- 浏览器驱动的下载
- Whole house Wi Fi: a pain point that no one can solve?
- Default slot, named slot, scope slot
- 【文档树、设置】字体变小
- 无主灯设计:如何让智能照明更加「智能」?
- P1908 reverse sequence pair
- 当贝投影4K激光投影X3 Pro获得一致好评:万元投影仪首选
- Generally speaking, if the error of inconsistent tab and space occurs frequently
- Qt-制作一个简单的计算器-实现四则运算-将结果以对话框的形式弹出来
- Dingtalk 发送消息
猜你喜欢

ensp简单入门

Téléchargement par navigateur

Origin plots thermogravimetric TG and differential thermogravimetric DTG curves

QT new project

Codeforces Round #803 (Div. 2)(A~D)

你的 Sleep 服务会梦到服务网格外的 bookinfo 吗

腾讯云 TStor 统一存储通过信通院首批文件存储基础能力评测

千元投影小明Q1 Pro和极米NEW Play谁更好?和哈趣K1比哪款配置更高?

Everyone believes that the one-stop credit platform makes the credit scenario "useful"

浏览器驱动的下载
随机推荐
Start to write a small demo - three piece chess
一般来讲,如果频繁出现inconsistent tab and space的报错
【模板】最长公共子序列 (【DP or 贪心】板子)
Getting started with QT - making a simple calculator
P1042 [noip2003 popularization group] Table Tennis
Selenium element positioning method
Stone merging Board [interval DP] (ordinary stone Merging & Ring Stone merging)
selenium,元素操作以及浏览器操作方法
ensp简单入门
The global special paper revenue in 2021 was about $27 million, and it is expected to reach $35 million in 2028. From 2022 to 2028, the CAGR was 3.8%
Launcher startup process
自定义事件,全局事件总线,消息订阅与发布,$nextTick
故事點 vs. 人天
Unity small map production [2]
The conference on the growth of all things was held in Hangzhou, and dangbei was selected into the top 100 list of future unicorns in China in 2022
Codeforces Round #803 (Div. 2)(A~D)
瀏覽器驅動的下載
Halcon extract orange (Orange)
Just 1000 fans, record it
Drawing Nyquist diagram with MATLAB