matlab - Matlab中RCNN检测器的混淆矩阵
问题描述
I tagged 300 images using the alexnet neural network I completed the training of the rcnn detector object. I can test the pictures one by one, containing 12 different people, 100 of which are not labeled.
testImage = imread('E:.....\....jpg');
[bboxes, score, label] = detect(detector, testImage, 'MiniBatchSize', 128)
T = 0.7;
idx = score >= T;
s = score(idx);
lbl = label(idx);
bbox = bboxes(idx, :);
outputImage = testImage;
for ii = 1 : size(bbox, 1)
annotation = sprintf('%s: (Confidence = %f)', lbl(ii), s(ii));
outputImage = insertObjectAnnotation(outputImage, 'rectangle', bbox(ii,:), annotation);
end
figure
imshow(outputImage)
But for 100 test pictures, each with 12 people (12 labels), I cannot plot confusion matrix that gives the success of the network, the correct number of predictions. There are many examples, which one should I use? For example, in an experiment I get an error like this.
Example
net = trainNetwork(XTrain,YTrain,layers,options);
[XTest,YTest] = trainingData;
YPredicted = classify(net,XTest);
plotconfusion(YTest,YPredicted)
Eror
[XTest,YTest] = detector;
等号右侧的输出数量不足,无法满足分配。
我有 100 张测试图片。有一个使用 Alexnet 训练的 rcnn 检测器。如何使用混淆矩阵查看 100 张图像中 12 个人(12 个标签)的正确标记数量?如何为 100 张图像和 12 个不同的标签创建成功的 RCNN 检测器?
解决方案
推荐阅读
- blender - 如何使用 Python 搅拌器从另一个具有相同骨骼名称的骨架复制旋转约束
- postgresql - Postgres SQL:要命名的行,值 json 对
- angular - AngularJS:所选选项不起作用
- amazon-web-services - 更改已在运行的 Amazon MQ 代理的子网
- docker - `docker build --network 容器的可能用例是什么:
`? - c# - 在 C# 应用程序设置期间 SQL Server 登录失败
- visual-studio-code - VSCode - 设置同步 - 无法写入文件 EACCES
- rest - 如何在 REST API 的 cloudformation 模板中指定 TLS 版本?
- java - Spring Data MongoDB:MergeOperation 返回整个集合。为什么?
- elasticsearch - 需要嵌套排序弹性搜索查询