mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
Fix validation is_in_subclip after encoder changes
This commit is contained in:
parent
235f0e27da
commit
daab8ff0d7
@ -189,8 +189,7 @@ def train_command(
|
||||
config=postprocess_config_loaded,
|
||||
)
|
||||
logger.debug(
|
||||
"Loaded postprocessor from file {path}",
|
||||
path=train_config,
|
||||
"Loaded postprocessor from file {path}", path=postprocess_config
|
||||
)
|
||||
except IOError:
|
||||
logger.debug(
|
||||
|
@ -97,7 +97,7 @@ def _is_in_subclip(
|
||||
start_time: float,
|
||||
end_time: float,
|
||||
) -> bool:
|
||||
time, _ = targets.encode_roi(sound_event_annotation)
|
||||
(time, _), _ = targets.encode_roi(sound_event_annotation)
|
||||
return start_time <= time <= end_time
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user