Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Oct 7, 2024
1 parent 211009c commit a31df6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cellfinder/napari/detect/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def widget(
use_pre_trained_weights: bool,
weights_only: bool,
trained_model: Optional[Path],
model_weights,
batch_size: int,
misc_options,
start_plane: int,
Expand Down Expand Up @@ -375,8 +376,6 @@ def widget(
max_cluster_size,
)

model_weights = None

if weights_only:
model_weights = trained_model
trained_model = None
Expand Down
2 changes: 1 addition & 1 deletion cellfinder/napari/detect/detect_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def widget_representation(cls) -> dict:
use_pre_trained_weights=dict(
value=cls.defaults()["use_pre_trained_weights"]
),
# weights_only=dict(value=cls.defaults()["weights_only"]),
weights_only=dict(value=cls.defaults()["weights_only"]),
trained_model=dict(value=cls.defaults()["trained_model"]),
skip_classification=dict(
value=cls.defaults()["skip_classification"]
Expand Down

0 comments on commit a31df6a

Please sign in to comment.