From b36855c79b3cb0c2b960a88d927e5f039c58bcf4 Mon Sep 17 00:00:00 2001 From: getzze Date: Wed, 11 Sep 2024 12:49:01 +0100 Subject: [PATCH] default save_shifted_instances to False --- sleap/config/pipeline_form.yaml | 2 +- sleap/nn/tracking.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sleap/config/pipeline_form.yaml b/sleap/config/pipeline_form.yaml index cbe00e397..ed05b91f8 100644 --- a/sleap/config/pipeline_form.yaml +++ b/sleap/config/pipeline_form.yaml @@ -460,7 +460,7 @@ inference: help: 'Save the flow-shifted instances between elapsed frames. It improves instance matching at the cost of using a bit more of memory.' type: bool - default: true + default: false - type: text text: 'Kalman filter-based tracking:
Uses the above tracking options to track instances for an initial diff --git a/sleap/nn/tracking.py b/sleap/nn/tracking.py index 1374cd5d6..746ab2881 100644 --- a/sleap/nn/tracking.py +++ b/sleap/nn/tracking.py @@ -139,7 +139,7 @@ class FlowCandidateMaker: img_scale: float = 1.0 of_window_size: int = 21 of_max_levels: int = 3 - save_shifted_instances: bool = True + save_shifted_instances: bool = False track_window: int = 5 shifted_instances: Dict[ @@ -1235,7 +1235,7 @@ def get_by_name_factory_options(cls): option["help"] = "For optical-flow: Number of pyramid scale levels to consider" options.append(option) - option = dict(name="save_shifted_instances", default=1) + option = dict(name="save_shifted_instances", default=0) option["type"] = int option["help"] = ( "If non-zero and tracking.tracker is set to flow, save the shifted "