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,
|
config=postprocess_config_loaded,
|
||||||
)
|
)
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"Loaded postprocessor from file {path}",
|
"Loaded postprocessor from file {path}", path=postprocess_config
|
||||||
path=train_config,
|
|
||||||
)
|
)
|
||||||
except IOError:
|
except IOError:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
@ -97,7 +97,7 @@ def _is_in_subclip(
|
|||||||
start_time: float,
|
start_time: float,
|
||||||
end_time: float,
|
end_time: float,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
time, _ = targets.encode_roi(sound_event_annotation)
|
(time, _), _ = targets.encode_roi(sound_event_annotation)
|
||||||
return start_time <= time <= end_time
|
return start_time <= time <= end_time
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user