neuro-sam 0.1.10__py3-none-any.whl → 0.1.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -171,6 +171,12 @@ class SegmentationWidget(QWidget):
171
171
  self.patch_size_spin.setToolTip("Size of overlapping patches (128x128 recommended)")
172
172
  patch_size_layout.addWidget(self.patch_size_spin)
173
173
  params_layout.addLayout(patch_size_layout)
174
+
175
+ # Enable boundary cleanup for dendrites
176
+ self.enable_boundary_smoothing_cb = QCheckBox("Enable Light Boundary Cleanup")
177
+ self.enable_boundary_smoothing_cb.setChecked(False) # Disabled by default for speed
178
+ self.enable_boundary_smoothing_cb.setToolTip("Apply light morphological cleanup (hole filling, small object removal)")
179
+ params_layout.addWidget(self.enable_boundary_smoothing_cb)
174
180
 
175
181
  # # Minimum dendrite size for noise removal
176
182
  # min_size_layout = QHBoxLayout()
@@ -389,6 +395,8 @@ class SegmentationWidget(QWidget):
389
395
  path_data = self.state['paths'][path_id]
390
396
  path_name = path_data['name']
391
397
  brightest_path = path_data['data']
398
+
399
+ enable_boundary_smoothing = self.enable_boundary_smoothing_cb.isChecked()
392
400
 
393
401
  # Get segmentation parameters
394
402
  patch_size = self.patch_size_spin.value()
@@ -415,7 +423,10 @@ class SegmentationWidget(QWidget):
415
423
 
416
424
  # Progress callback function
417
425
  def update_progress(current, total):
418
- progress = int((current / total) * 90) # 0-90%
426
+ if enable_boundary_smoothing:
427
+ progress = int((current / total) * 80) # 0-80%
428
+ else:
429
+ progress = int((current / total) * 90) # 0-90%
419
430
  self.segmentation_progress.setValue(progress)
420
431
 
421
432
  # Try to run the segmentation with overlapping patches
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuro-sam
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: Neuro-SAM: Foundation Models for Dendrite and Dendritic Spine Segmentation
5
5
  Author-email: Nipun Arora <nipunarora8@yahoo.com>
6
6
  License: MIT License
@@ -33,7 +33,7 @@ neuro_sam/napari_utils/main_widget.py,sha256=yahfPLwmhBt_hImpRykIObzfMwbVZvVJTEK
33
33
  neuro_sam/napari_utils/path_tracing_module.py,sha256=bDhSawWNMfY-Vs-Zdt8XTb90pLkD9jUBRqpbC2_6li0,44070
34
34
  neuro_sam/napari_utils/punet_widget.py,sha256=WCAND8YLn4CA_20YW4quwcuJ_xEqPAc7GHrSBk4Anw0,16928
35
35
  neuro_sam/napari_utils/segmentation_model.py,sha256=mHXVjksqEcxHRH5KWp5-hXLEnRHgGhwPUxyUkV8eJGM,34141
36
- neuro_sam/napari_utils/segmentation_module.py,sha256=pp2WoWO6mfYQ4CLduiEC-_o3oQhqs7Vcz4i2B6ATnIc,26796
36
+ neuro_sam/napari_utils/segmentation_module.py,sha256=g3Fs9Jqe4Vtdz96-S-I_ajs1mjv4Nev0HdEGlmH8-18,27446
37
37
  neuro_sam/napari_utils/visualization_module.py,sha256=JtZlBoKlfIwVLa2Sqg7b2KTr07fNlAcwR0M7fHsn2oM,24723
38
38
  neuro_sam/punet/deepd3_model.py,sha256=nGVEqzCPz_E4cFA6QmknW2CffDcjxH7VsdYAyTdAtY0,7509
39
39
  neuro_sam/punet/prob_unet_deepd3.py,sha256=syXNleUVrfYtmVveN9G461oAhumxsijsavps8in4VRw,14698
@@ -47,7 +47,7 @@ neuro_sam/training/train_dendrites.py,sha256=TMG4YrrQV0Q784omMziXsB71tNICEmGLYSH
47
47
  neuro_sam/training/utils/__init__.py,sha256=4hbcx57NtRu8nryvXQYqmXK4hyUgUYNDz97kCw3Efs8,31
48
48
  neuro_sam/training/utils/prompt_generation_dendrites.py,sha256=_ntzXNV1lXPrpInRKaZ5CPpq3akF2IuD1naOXbTC8TU,3201
49
49
  neuro_sam/training/utils/stream_dendrites.py,sha256=qS_ZWrhJdW1Sg3RBjoRUJFlCV0u5X1Ns_tjYgJUjWJw,11024
50
- neuro_sam-0.1.10.dist-info/licenses/LICENSE,sha256=akmTIN8IuZn3Y7UK_8qVQnyKDWSDcVUwB8RPGNXCojw,1068
50
+ neuro_sam-0.1.11.dist-info/licenses/LICENSE,sha256=akmTIN8IuZn3Y7UK_8qVQnyKDWSDcVUwB8RPGNXCojw,1068
51
51
  sam2/__init__.py,sha256=uHyh6VzVS4F2box0rPDpN5UmOVKeQNK0CIaTKG9JQZ4,395
52
52
  sam2/automatic_mask_generator.py,sha256=Zt8mbb4UQSMFrjOY8OwbshswOpMhaxAtdn5sTuXUw9c,18461
53
53
  sam2/benchmark.py,sha256=m3o1BriIQuwJAx-3zQ_B0_7YLhN84G28oQSV5sGA3ak,2811
@@ -91,8 +91,8 @@ sam2/utils/__init__.py,sha256=NL2AacVHZOe41zp4kF2-ZGcUCi9zFwh1Eo9spNjN0Ko,197
91
91
  sam2/utils/amg.py,sha256=t7MwkOKvcuBNu4FcjzKv9BpO0av5Zo9itZ8b3WQMpdg,12842
92
92
  sam2/utils/misc.py,sha256=AWAMAcFhzQedcQb7HU2oRc-RqjGrK87K-MsVG21tIKI,13090
93
93
  sam2/utils/transforms.py,sha256=ujpk9GAMYvIJIGpt87QOP88TPtrjL61liDG7DCptEUY,4885
94
- neuro_sam-0.1.10.dist-info/METADATA,sha256=Hrn823PdxJxnip5w28nz7ZXZhwpzwznikmQ2eqops7M,9747
95
- neuro_sam-0.1.10.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
96
- neuro_sam-0.1.10.dist-info/entry_points.txt,sha256=EQg0SmFbnbGGcchHq5ROmhO9pkgby72Y5G5w90WyLZI,220
97
- neuro_sam-0.1.10.dist-info/top_level.txt,sha256=yPbWxFcw79sErTk8zohihUHMK9LL31i3bXir2MrS4OQ,15
98
- neuro_sam-0.1.10.dist-info/RECORD,,
94
+ neuro_sam-0.1.11.dist-info/METADATA,sha256=IClHWfaA9ApPwCyM4lK6smvFP8B9UGtiG0y_y2l0Ejk,9747
95
+ neuro_sam-0.1.11.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
96
+ neuro_sam-0.1.11.dist-info/entry_points.txt,sha256=EQg0SmFbnbGGcchHq5ROmhO9pkgby72Y5G5w90WyLZI,220
97
+ neuro_sam-0.1.11.dist-info/top_level.txt,sha256=yPbWxFcw79sErTk8zohihUHMK9LL31i3bXir2MrS4OQ,15
98
+ neuro_sam-0.1.11.dist-info/RECORD,,