annotate classifier.cfg @ 1262:f10e84505443

modif for highway level of service
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 17 Apr 2024 16:46:23 -0400
parents 88eedf79f16a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
812
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
1 # filename of the general ped/cyc/veh SVM classifier
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
2 pbv-svm-filename = modelPBV.xml
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
3 # filename of the cyc/veh SVM classifier
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
4 bv-svm-filename = modelBV.xml
1241
ab4c72b9475c work in progress
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 1022
diff changeset
5 # filename of a Ultralytics-compatible model, eg Yolov8
1243
88eedf79f16a correct classifier.cfg and info classification
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 1241
diff changeset
6 # if the filename is valid, it will be used, otherwise the SVMs
88eedf79f16a correct classifier.cfg and info classification
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 1241
diff changeset
7 dl-filename = yolov8x.pt
812
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
8 # percent increase of the max of width and height of the bounding box of features extracted for classification
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
9 percent-increase-crop = 0.2
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
10 # min number of pixels in cropped image to classify by SVM
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
11 min-npixels-crop = 800
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
12 # square size to resize image crops for HoG computation
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
13 hog-rescale-size = 64
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
14 # number of HoG orientation
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
15 hog-norientations = 9
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
16 # number of pixels per cell for HoG computation
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
17 hog-npixels-cell = 8
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
18 # number of cells per block for HoG computation
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
19 hog-ncells-block = 2
893
ff92801e5c54 updated hog to scikit-image 0.13 (needed to add a block_norm attribute in classifier.cfg)
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 854
diff changeset
20 # block normalization method (L1, L1-sqrt, L2, L2-Hys)
961
ec1682ed999f added computation of confusion matrix and improved default parameter for block normalization for SVM classification
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 899
diff changeset
21 hog-block-norm = L1-sqrt
1243
88eedf79f16a correct classifier.cfg and info classification
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 1241
diff changeset
22 # object confidence threshold for detection
88eedf79f16a correct classifier.cfg and info classification
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 1241
diff changeset
23 confidence = 0.25
1022
b7689372c0ec renamed quantile to centile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 961
diff changeset
24 # method to aggregate road user speed: mean, median or any (per)centile
812
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
25 speed-aggregation-method = median
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
26 # number of frames to ignore at both ends of a series (noisy)
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
27 nframes-ignore-at-ends = 2
1022
b7689372c0ec renamed quantile to centile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 961
diff changeset
28 # centile for the speed aggregation, if centile is chosen
b7689372c0ec renamed quantile to centile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 961
diff changeset
29 speed-aggregation-centile = 50
812
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
30 # speed value below which all classes are equiprobable (distributions give odd values there) (km/h)
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
31 min-speed-equiprobable = 3.33
899
1466a63dd1cf added a new classification parameter
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 893
diff changeset
32 # maximum proportion of the instants with unknow appearance classification to use speed information
1466a63dd1cf added a new classification parameter
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 893
diff changeset
33 max-prop-unknown-appearance = 0.66
812
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
34 # maximum pedestrian speed (agregate: mean, median, 85th centile, etc.) 10 km/h
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
35 max-ped-speed = 10.0
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
36 # maximum cyclist speed (agregate: mean, median, 85th centile, etc.) 30 km/h (3xped)
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
37 max-cyc-speed = 30.0
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
38 # mean pedestrian speed and standard deviation (in a normal distribution) 4.91+-0.88 km/h
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
39 mean-ped-speed = 4.91
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
40 std-ped-speed = 0.88
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
41 # mean cyclist speed and standard deviation (in a log-normal distribution) 11.+-4.83 km/h
854
33d296984dd8 rework and more info on speed probabilities for classification
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 812
diff changeset
42 # to multiply the parameters by a, loc = loc+ln(a)
812
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
43 cyc-speed-loc = 2.31
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
44 cyc-speed-scale = 0.42
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
45 # mean vehicle speed and standard deviation (in a normal distribution) 18.45+-7.6 km/h
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
46 mean-veh-speed = 18.45
21f10332c72b moved the classification parameters from tracking.cfg to a new classifier.cfg and made all classification parameters apparent
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
47 std-veh-speed = 7.6