Skip to content

Commit

Permalink
fixing brush size bug with reset of image, and train size window increas
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed May 23, 2024
1 parent 40a0c7d commit c03958c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cellpose/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,7 @@ def make_buttons(self):
b0 += 3
self.norm3D_cb = QCheckBox("norm3D")
self.norm3D_cb.setFont(self.medfont)
self.norm3D_cb.setChecked(True)
self.norm3D_cb.setToolTip("run same normalization across planes")
self.filtBoxG.addWidget(self.norm3D_cb, b0, 0, 1, 3)

Expand Down Expand Up @@ -1233,7 +1234,6 @@ def reset(self):
self.ViewDropDown.model().item(self.ViewDropDown.count() - 1).setEnabled(False)
self.delete_restore()

self.BrushChoose.setCurrentIndex(1)
self.clear_all()

#self.update_plot()
Expand Down Expand Up @@ -1942,12 +1942,13 @@ def get_normalize_params(self):
]
self.check_percentile_params(percentile)
normalize_params = {"percentile": percentile}
norm3D = self.norm3D_cb.isChecked()
normalize_params["norm3D"] = norm3D
if self.restore == "filter":
sharpen = float(self.filt_edits[0].text())
smooth = float(self.filt_edits[1].text())
tile_norm = float(self.filt_edits[2].text())
smooth3D = float(self.filt_edits[3].text())
norm3D = self.norm3D_cb.isChecked()
invert = self.invert_cb.isChecked()
out = self.check_filter_params(sharpen, smooth, tile_norm, smooth3D, norm3D,
invert)
Expand All @@ -1956,7 +1957,6 @@ def get_normalize_params(self):
normalize_params["smooth_radius"] = smooth
normalize_params["tile_norm_blocksize"] = tile_norm
normalize_params["tile_norm_smooth3D"] = smooth3D
normalize_params["norm3D"] = norm3D
normalize_params["invert"] = invert

from cellpose.models import normalize_default
Expand Down
2 changes: 1 addition & 1 deletion cellpose/gui/guiparts.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class TrainWindow(QDialog):

def __init__(self, parent, model_strings):
super().__init__(parent)
self.setGeometry(100, 100, 900, 350)
self.setGeometry(100, 100, 900, 550)
self.setWindowTitle("train settings")
self.win = QWidget(self)
self.l0 = QGridLayout()
Expand Down

0 comments on commit c03958c

Please sign in to comment.