changeset 1189:ccab20f85710

changed to better parameters
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sat, 25 Jun 2022 01:09:20 +0200
parents 82fc21f6dfdf
children d24d57e4de24
files scripts/nomad/nomad-parameters.txt scripts/nomad/site-parameters-optimization.py trafficintelligence/storage.py
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/nomad/nomad-parameters.txt	Tue Jun 21 23:22:19 2022 +0200
+++ b/scripts/nomad/nomad-parameters.txt	Sat Jun 25 01:09:20 2022 +0200
@@ -5,8 +5,8 @@
 
 X0		initial-parameters.txt                          # starting point
 
-LOWER_BOUND	( 0 0  1  0.01 2   0.5 0.1 1  )			# all variables' lower bounds
-UPPER_BOUND	( 1 10 10 0.3  100 100 100 15 )			# all variables' upper bounds
+LOWER_BOUND	( 0 0  1  0.01 2   0.1 0.1 1.01  )			# all variables' lower bounds
+UPPER_BOUND	( 1 10 10 0.3  100 10 5 15 )			# all variables' upper bounds
 
 MAX_BB_EVAL	500						# the algorithm terminates when
 								# n black-box evaluations have
--- a/scripts/nomad/site-parameters-optimization.py	Tue Jun 21 23:22:19 2022 +0200
+++ b/scripts/nomad/site-parameters-optimization.py	Sat Jun 25 01:09:20 2022 +0200
@@ -97,7 +97,7 @@
     subprocess.check_output(gf + para[8:16])  # ['--min-feature-time', 'x', '--mm-connection-distance', 'x', '--mm-segmentation-distance', 'x', '--min-nfeatures-group', 'x']
 
 def computeMota(annotations, objects, Mota):
-    matchingDistance = 500
+    matchingDistance = 5
     firstInstant = 0
     lastInstant = 50000
     return moving.computeClearMOT(annotations, objects, matchingDistance, firstInstant, lastInstant)[1]
--- a/trafficintelligence/storage.py	Tue Jun 21 23:22:19 2022 +0200
+++ b/trafficintelligence/storage.py	Sat Jun 25 01:09:20 2022 +0200
@@ -1328,7 +1328,7 @@
         self.bikeCarSVMFilename = utils.getRelativeFilename(parentPath, config.get(self.sectionHeader, 'bv-svm-filename'))
         self.percentIncreaseCrop = config.getfloat(self.sectionHeader, 'percent-increase-crop')
         self.minNPixels = config.getint(self.sectionHeader, 'min-npixels-crop')
-        x  = config.getint(self.sectionHeader, 'hog-rescale-size')
+        x = config.getint(self.sectionHeader, 'hog-rescale-size')
         self.hogRescaleSize = (x, x)
         self.hogNOrientations = config.getint(self.sectionHeader, 'hog-norientations')
         x = config.getint(self.sectionHeader, 'hog-npixels-cell')