Skip to content

Commit

Permalink
Removed extraneous field
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Oct 7, 2024
1 parent 843da73 commit 211009c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions cellfinder/napari/detect/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ def widget(
use_pre_trained_weights: bool,
weights_only: bool,
trained_model: Optional[Path],
model_weights: Optional[Path],
batch_size: int,
misc_options,
start_plane: int,
Expand Down Expand Up @@ -311,9 +310,6 @@ def widget(
trained_model : Optional[Path]
Trained model file path (home directory (default) -> pretrained
weights)
model_weights : Optional[Path]
Model weights file path (home directory (default) -> pretrained
weights)
start_plane : int
First plane to process (to process a subset of the data)
end_plane : int
Expand Down Expand Up @@ -379,7 +375,10 @@ def widget(
max_cluster_size,
)

model_weights = None

if weights_only:
model_weights = trained_model
trained_model = None

if use_pre_trained_weights:
Expand Down
3 changes: 1 addition & 2 deletions cellfinder/napari/detect/detect_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ 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"]),
model_weights=dict(value=cls.defaults()["model_weights"]),
skip_classification=dict(
value=cls.defaults()["skip_classification"]
),
Expand Down

0 comments on commit 211009c

Please sign in to comment.