MaHaWo commited on
Commit
ce0a037
·
1 Parent(s): d7d573a

add kwargs to google perch

Browse files
google_bird_classification/preprocessor.py CHANGED
@@ -18,6 +18,7 @@ class Preprocessor(ppb.PreprocessorBase):
18
  sample_rate: int = 32000,
19
  sample_secs: float = 5.0,
20
  resample_type: str = "kaiser_fast",
 
21
  ):
22
  """
23
  __init__ Construct a new preprocesssor for custom birdnet classifiers from given parameters, and use defaults for the ones not present.
@@ -26,6 +27,7 @@ class Preprocessor(ppb.PreprocessorBase):
26
  sample_rate (int, optional): The sample rate used to resample the read audio file. Defaults to 48000.
27
  sample_secs (float, optional): Length of chunks to be analyzed at once. Defaults to 3.0.
28
  resample_type (str, optional): Resampling method used when reading from file. Defaults to "kaiser_fast".
 
29
  """
30
  # README: this class does not have an overlap attribute because the model it works with does not want it.
31
  super().__init__(
 
18
  sample_rate: int = 32000,
19
  sample_secs: float = 5.0,
20
  resample_type: str = "kaiser_fast",
21
+ **kwargs
22
  ):
23
  """
24
  __init__ Construct a new preprocesssor for custom birdnet classifiers from given parameters, and use defaults for the ones not present.
 
27
  sample_rate (int, optional): The sample rate used to resample the read audio file. Defaults to 48000.
28
  sample_secs (float, optional): Length of chunks to be analyzed at once. Defaults to 3.0.
29
  resample_type (str, optional): Resampling method used when reading from file. Defaults to "kaiser_fast".
30
+ **kwargs: Additional keyword arguments that are not used in this class.
31
  """
32
  # README: this class does not have an overlap attribute because the model it works with does not want it.
33
  super().__init__(