Skip to content

Commit

Permalink
fix(pred): use 1 x Y x X for 2D patch shape, fix #383
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-yu committed Jan 23, 2025
1 parent e4750f5 commit e7eab7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plantseg/viewer_napari/widgets/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def update_halo():
widget_unet_prediction.model_name.value
)
if model_zoo.is_2D_zoo_model(widget_unet_prediction.model_name.value):
widget_unet_prediction.patch_size[0].value = 0
widget_unet_prediction.patch_size[0].value = 1

Check warning on line 211 in plantseg/viewer_napari/widgets/prediction.py

View check run for this annotation

Codecov / codecov/patch

plantseg/viewer_napari/widgets/prediction.py#L211

Added line #L211 was not covered by tests
widget_unet_prediction.patch_size[0].enabled = False
widget_unet_prediction.patch_halo[0].enabled = False
else:
Expand Down Expand Up @@ -401,7 +401,7 @@ def widget_add_custom_model(
widget_unet_prediction.model_name.choices = model_zoo.list_models()
else:
log(
f'Error adding new model {new_model_name} to the list of available models: ' f'{error_msg}',
f'Error adding new model {new_model_name} to the list of available models: {error_msg}',
level='error',
thread='Add Custom Model',
)
Expand Down

0 comments on commit e7eab7f

Please sign in to comment.