MaHaWo commited on
Commit
3b7bf6d
·
1 Parent(s): f532fdf

remove some specific parameter names

Browse files
birdnet_custom_v2.4/default.yml CHANGED
@@ -4,7 +4,7 @@ Analysis:
4
  min_conf: 0.25
5
  file_check_poll_interval: 1
6
  Model:
7
- sigmoid_sensitivity: 1.0
8
  num_threads: 2
9
  species_list_file: null
10
 
 
4
  min_conf: 0.25
5
  file_check_poll_interval: 1
6
  Model:
7
+ sensitivity: 1.0
8
  num_threads: 2
9
  species_list_file: null
10
 
birdnet_custom_v2.4/model.py CHANGED
@@ -47,7 +47,7 @@ class Model(ModelBase):
47
  self,
48
  default_model_path: str = None,
49
  model_path: str = None,
50
- sigmoid_sensitivity: float = 1.0,
51
  num_threads: int = 1,
52
  **kwargs
53
  ):
@@ -58,7 +58,7 @@ class Model(ModelBase):
58
  classifier_model_path = str(Path(model_path) / "model.tflite")
59
  classifier_labels_path = str(Path(model_path) / "labels.txt")
60
 
61
- self.sensitivity = sigmoid_sensitivity
62
 
63
  # check custom classifier paths through function due to higher complexity
64
  self._check_classifier_path_integrity(
@@ -78,7 +78,7 @@ class Model(ModelBase):
78
  model_path=classifier_model_path,
79
  labels_path=classifier_labels_path,
80
  num_threads=num_threads,
81
- sensitivity=sigmoid_sensitivity,
82
  **kwargs
83
  )
84
 
 
47
  self,
48
  default_model_path: str = None,
49
  model_path: str = None,
50
+ sensitivity: float = 1.0,
51
  num_threads: int = 1,
52
  **kwargs
53
  ):
 
58
  classifier_model_path = str(Path(model_path) / "model.tflite")
59
  classifier_labels_path = str(Path(model_path) / "labels.txt")
60
 
61
+ self.sensitivity = sensitivity
62
 
63
  # check custom classifier paths through function due to higher complexity
64
  self._check_classifier_path_integrity(
 
78
  model_path=classifier_model_path,
79
  labels_path=classifier_labels_path,
80
  num_threads=num_threads,
81
+ sensitivity=sensitivity,
82
  **kwargs
83
  )
84
 
birdnet_default_v2.4/default.yml CHANGED
@@ -4,7 +4,7 @@ Analysis:
4
  min_conf: 0.25
5
  file_check_poll_interval: 1
6
  Model:
7
- sigmoid_sensitivity: 1.0
8
  num_threads: 2
9
  species_list_file: null
10
 
 
4
  min_conf: 0.25
5
  file_check_poll_interval: 1
6
  Model:
7
+ sensitivity: 1.0
8
  num_threads: 2
9
  species_list_file: null
10
 
birdnet_default_v2.4/model.py CHANGED
@@ -16,7 +16,7 @@ class Model(ModelBase):
16
  self,
17
  model_path: str,
18
  num_threads: int = 1,
19
- sigmoid_sensitivity: float = 1.0,
20
  species_list_file: str = None,
21
  **kwargs
22
  ):
@@ -26,7 +26,7 @@ class Model(ModelBase):
26
  Args:
27
  model_path (str): Path to the location of the model file to be loaded
28
  num_threads (int, optional): Number of threads used for inference. Defaults to 1.
29
- sigmoid_sensitivity (float, optional): Parameter of the sigmoid function used to compute probabilities. Defaults to 1.0.
30
 
31
  Raises:
32
  AnalyzerConfigurationError: The model file 'model.tflite' doesn't exist at the given path.
@@ -43,7 +43,7 @@ class Model(ModelBase):
43
  model_path,
44
  labels_path,
45
  num_threads=num_threads,
46
- sensitivity=sigmoid_sensitivity,
47
  **kwargs
48
  )
49
 
 
16
  self,
17
  model_path: str,
18
  num_threads: int = 1,
19
+ sensitivity: float = 1.0,
20
  species_list_file: str = None,
21
  **kwargs
22
  ):
 
26
  Args:
27
  model_path (str): Path to the location of the model file to be loaded
28
  num_threads (int, optional): Number of threads used for inference. Defaults to 1.
29
+ sensitivity (float, optional): Parameter of the sigmoid function used to compute probabilities. Defaults to 1.0.
30
 
31
  Raises:
32
  AnalyzerConfigurationError: The model file 'model.tflite' doesn't exist at the given path.
 
43
  model_path,
44
  labels_path,
45
  num_threads=num_threads,
46
+ sensitivity=sensitivity,
47
  **kwargs
48
  )
49
 
google_bird_classification/default.yml CHANGED
@@ -7,7 +7,7 @@ Analysis:
7
  lon: -76.45
8
  date: 24/01/2024
9
  Model:
10
- sigmoid_sensitivity: 1.0
11
  num_threads: 2
12
  species_list_file: null
13
 
 
7
  lon: -76.45
8
  date: 24/01/2024
9
  Model:
10
+ sensitivity: 1.0
11
  num_threads: 2
12
  species_list_file: null
13