当前位置:网站首页>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 ~
边栏推荐
- MySQL -- convert rownum in Oracle to MySQL
- Pointer from entry to advanced (1)
- selenium的特点
- 你的 Sleep 服务会梦到服务网格外的 bookinfo 吗
- 快解析:轻松实现共享上网
- mysql ---- Oracle中的rownum转换成MySQL
- Data Lake (11): Iceberg table data organization and query
- 自定义事件,全局事件总线,消息订阅与发布,$nextTick
- Selenium element positioning method
- Federated Search: all requirements in search
猜你喜欢
rxjs Observable 自定义 Operator 的开发技巧
博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
Whole house Wi Fi: a pain point that no one can solve?
[deep learning] simple implementation of neural network forward propagation
万物生长大会在杭召开,当贝入选2022中国未来独角兽TOP100榜单
Pycharm连接远程服务器
Getting started with QT - making a simple calculator
千元投影小明Q1 Pro和极米NEW Play谁更好?和哈趣K1比哪款配置更高?
ensp简单入门
In 2021, the global TCB adapter revenue was about $93 million, and it is expected to reach $315.5 million in 2028
随机推荐
rxjs Observable 自定义 Operator 的开发技巧
P1347 sorting (topology + SPFA judgment ring or topology [inner judgment ring])
自定义事件,全局事件总线,消息订阅与发布,$nextTick
石子合并板子【区间DP】(普通石子合并 & 环形石子合并)
Slashgear shares 2021 life changing technology products, which are somewhat unexpected
Everyone believes that the one-stop credit platform makes the credit scenario "useful"
ensp简单入门
Go operation redis
Getting started with QT - making a simple calculator
Golang quickly generates model and queryset of database tables
使用BLoC 构建 Flutter的页面实例
Error: eacces: permission denied, access to "/usr/lib/node_modules"
Qt新建项目
uni-app中使用computed解决了tab切换中data()值显示的异常
大家信夫一站式信用平台让信用场景“用起来
MySQL45讲——学习极客时间MySQL实战45讲笔记—— 04 | 深入浅出索引(上)
Characteristics of selenium
OpenHarmony笔记-----------(四)
[to be continued] [UE4 notes] l5ue4 model import
Golang 快速生成数据库表的 model 和 queryset