Skip to content

Commit

Permalink
default save_shifted_instances to False
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Sep 11, 2024
1 parent 3c93be7 commit 66759a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sleap/config/pipeline_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<b>Kalman filter-based tracking</b>:<br />
Uses the above tracking options to track instances for an initial
Expand Down
4 changes: 2 additions & 2 deletions sleap/nn/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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[
Expand Down Expand Up @@ -1225,7 +1225,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 "
Expand Down

0 comments on commit 66759a6

Please sign in to comment.