Skip to content

Commit 6e9762a

Browse files
committed
Fix new unsup LR in tests
1 parent fe1a2f8 commit 6e9762a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

napari_cellseg3d/_tests/test_unsup_training.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
Trainer,
66
)
77

8+
im_path = Path(__file__).resolve().parent / "res/test.tif"
89

9-
def test_unsupervised_worker(make_napari_viewer_proxy):
10-
im_path = Path(__file__).resolve().parent / "res/test.tif"
11-
# im_path_str = str(im_path)
1210

11+
def test_unsupervised_worker(make_napari_viewer_proxy):
1312
unsup_viewer = make_napari_viewer_proxy()
1413
widget = Trainer(viewer=unsup_viewer)
1514
widget.device_choice.setCurrentIndex(0)
16-
1715
widget.model_choice.setCurrentText("WNet")
1816
widget._toggle_unsupervised_mode(enabled=True)
1917

napari_cellseg3d/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ class WNetTrainingWorkerConfig(TrainingWorkerConfig):
285285
out_channels: int = 1 # decoder (reconstruction) output channels
286286
num_classes: int = 2 # encoder output channels
287287
dropout: float = 0.65
288+
learning_rate: np.float64 = 2e-5
288289
use_clipping: bool = False # use gradient clipping
289290
clipping: float = 1.0 # clipping value
290291
weight_decay: float = 0.01 # 1e-5 # weight decay (used 0.01 historically)

0 commit comments

Comments
 (0)