Skip to content

Commit

Permalink
set pcen bias (delta) to adaptive value
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Jan 21, 2019
1 parent 6c2948b commit e89517c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions birdvoxdetect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ def process_file(
logging.info(event_str.format(confidence_path))



def compute_pcen(audio, sr):
# Load settings.
pcen_settings = get_pcen_settings()
Expand Down Expand Up @@ -419,7 +418,7 @@ def compute_pcen(audio, sr):
sr=pcen_settings["sr"],
hop_length=pcen_settings["hop_length"],
gain=pcen_settings["pcen_norm_exponent"],
bias=2,
bias=pcen_settings["pcen_delta"],
power=pcen_settings["pcen_power"],
time_constant=pcen_settings["pcen_time_constant"])

Expand Down

0 comments on commit e89517c

Please sign in to comment.