feat: initial HSAP platform
Huaxu Sentinel Active Safety Platform with embedded algorithm code, Docker Compose setup, and vendored dataset scaffolds for clone-and-run. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
23
algorithms/lane_ufld/code/UFLD/evaluation/culane/calTotal.m
Executable file
23
algorithms/lane_ufld/code/UFLD/evaluation/culane/calTotal.m
Executable file
@@ -0,0 +1,23 @@
|
||||
%% Calculate overall Fmeasure from each scenarios
|
||||
clc; clear; close all;
|
||||
|
||||
allFile = 'output/vgg_SCNN_DULR_w9_iou0.5.txt';
|
||||
|
||||
all = textread(allFile,'%s');
|
||||
TP = 0;
|
||||
FP = 0;
|
||||
FN = 0;
|
||||
|
||||
for i=1:9
|
||||
tpline = (i-1)*14+4;
|
||||
tp = str2double(all(tpline));
|
||||
fp = str2double(all(tpline+2));
|
||||
fn = str2double(all(tpline+4));
|
||||
TP = TP + tp;
|
||||
FP = FP + fp;
|
||||
FN = FN + fn;
|
||||
end
|
||||
|
||||
P = TP/(TP + FP)
|
||||
R = TP/(TP + FN)
|
||||
F = 2*P*R/(P + R)*100
|
||||
Reference in New Issue
Block a user