Skip to content

Commit

Permalink
Fix topdown multi-class model
Browse files Browse the repository at this point in the history
  • Loading branch information
gitttt-1234 committed Dec 16, 2024
1 parent a003f29 commit 058a861
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sleap/nn/data/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,7 @@ def make_viz_pipeline(self, data_provider: Provider) -> Pipeline:
provider=data_provider,
)
pipeline += Normalizer.from_config(self.data_config.preprocessing)
pipeline += Resizer.from_config(self.data_config.preprocessing)
pipeline += InstanceCentroidFinder.from_config(
self.data_config.instance_cropping,
skeletons=self.data_config.labels.skeletons,
Expand Down
1 change: 1 addition & 0 deletions sleap/nn/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -4280,6 +4280,7 @@ def _initialize_inference_model(self):
refinement="integral" if self.integral_refinement else "local",
integral_patch_size=self.integral_patch_size,
return_confmaps=False,
resize_input_image=False,
)
if use_gt_centroid:
centroid_crop_layer.input_scale = cfg.data.preprocessing.input_scaling
Expand Down
2 changes: 2 additions & 0 deletions sleap/nn/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,7 @@ def _setup_visualization(self):
peak_threshold=0.2,
refinement="local",
return_confmaps=True,
resize_input_image=False,
)

def visualize_example(example):
Expand Down Expand Up @@ -1759,6 +1760,7 @@ def _setup_visualization(self):
peak_threshold=0.2,
refinement="local",
return_confmaps=True,
resize_input_image=False,
)

def visualize_example(example):
Expand Down

0 comments on commit 058a861

Please sign in to comment.