neuro-sam 0.1.0__py3-none-any.whl → 0.1.5__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.
- neuro_sam/napari_utils/punet_widget.py +1 -1
- neuro_sam/napari_utils/segmentation_module.py +2 -5
- neuro_sam/plugin.py +6 -3
- neuro_sam/punet/prob_unet_deepd3.py +3 -3
- neuro_sam/punet/prob_unet_with_tversky.py +2 -2
- neuro_sam/punet/unet_blocks.py +1 -1
- {neuro_sam-0.1.0.dist-info → neuro_sam-0.1.5.dist-info}/METADATA +6 -2
- {neuro_sam-0.1.0.dist-info → neuro_sam-0.1.5.dist-info}/RECORD +12 -12
- neuro_sam-0.1.5.dist-info/entry_points.txt +5 -0
- neuro_sam-0.1.0.dist-info/entry_points.txt +0 -2
- {neuro_sam-0.1.0.dist-info → neuro_sam-0.1.5.dist-info}/WHEEL +0 -0
- {neuro_sam-0.1.0.dist-info → neuro_sam-0.1.5.dist-info}/licenses/LICENSE +0 -0
- {neuro_sam-0.1.0.dist-info → neuro_sam-0.1.5.dist-info}/top_level.txt +0 -0
|
@@ -22,7 +22,7 @@ except ImportError:
|
|
|
22
22
|
# Fallback if running from a different context, try to append path
|
|
23
23
|
import sys
|
|
24
24
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'punet'))
|
|
25
|
-
from neuro_sam.punet_inference import run_inference_volume
|
|
25
|
+
from neuro_sam.punet.punet_inference import run_inference_volume
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -7,11 +7,8 @@ from qtpy.QtWidgets import (
|
|
|
7
7
|
)
|
|
8
8
|
from qtpy.QtCore import Signal
|
|
9
9
|
import torch
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
13
|
-
from contrasting_color_system import contrasting_color_manager
|
|
14
|
-
from segmentation_model import DendriteSegmenter
|
|
10
|
+
from .contrasting_color_system import contrasting_color_manager
|
|
11
|
+
from .segmentation_model import DendriteSegmenter
|
|
15
12
|
from scipy import ndimage
|
|
16
13
|
from scipy.ndimage import binary_fill_holes
|
|
17
14
|
from skimage.morphology import disk, binary_closing, remove_small_objects
|
neuro_sam/plugin.py
CHANGED
|
@@ -216,8 +216,7 @@ def load_ome_tiff_with_spacing(image_path):
|
|
|
216
216
|
return image, (94.0, 94.0, 500.0)
|
|
217
217
|
|
|
218
218
|
|
|
219
|
-
|
|
220
|
-
if __name__ == "__main__":
|
|
219
|
+
def main():
|
|
221
220
|
import sys
|
|
222
221
|
import argparse
|
|
223
222
|
|
|
@@ -257,4 +256,8 @@ if __name__ == "__main__":
|
|
|
257
256
|
|
|
258
257
|
print("\nStarted NeuroSAM with anisotropic scaling support!")
|
|
259
258
|
print("Configure voxel spacing in the 'Path Tracing' tab before starting analysis.")
|
|
260
|
-
napari.run() # Start the Napari event loop
|
|
259
|
+
napari.run() # Start the Napari event loop
|
|
260
|
+
|
|
261
|
+
# For direct execution from command line
|
|
262
|
+
if __name__ == "__main__":
|
|
263
|
+
main()
|
|
@@ -10,9 +10,9 @@ import torch.nn.functional as F
|
|
|
10
10
|
from torch.distributions import Normal, Independent, kl
|
|
11
11
|
import numpy as np
|
|
12
12
|
|
|
13
|
-
from deepd3_model import DeepD3Model
|
|
14
|
-
from unet_blocks import *
|
|
15
|
-
from utils import init_weights, init_weights_orthogonal_normal, l2_regularisation
|
|
13
|
+
from .deepd3_model import DeepD3Model
|
|
14
|
+
from .unet_blocks import *
|
|
15
|
+
from .utils import init_weights, init_weights_orthogonal_normal, l2_regularisation
|
|
16
16
|
|
|
17
17
|
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
18
18
|
|
|
@@ -12,8 +12,8 @@ import torch
|
|
|
12
12
|
import torch.nn as nn
|
|
13
13
|
import torch.nn.functional as F
|
|
14
14
|
from torch.distributions import kl
|
|
15
|
-
from deepd3_model import DeepD3Model
|
|
16
|
-
from prob_unet_deepd3 import AxisAlignedConvGaussian, Fcomb
|
|
15
|
+
from .deepd3_model import DeepD3Model
|
|
16
|
+
from .prob_unet_deepd3 import AxisAlignedConvGaussian, Fcomb
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class TverskyLoss(nn.Module):
|
neuro_sam/punet/unet_blocks.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neuro-sam
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Neuro-SAM: Foundation Models for Dendrite and Dendritic Spine Segmentation
|
|
5
|
-
Author-email: Nipun Arora <
|
|
5
|
+
Author-email: Nipun Arora <nipunarora8@yahoo.com>
|
|
6
6
|
License: MIT License
|
|
7
7
|
|
|
8
8
|
Copyright (c) 2024 Nipun Arora
|
|
@@ -50,6 +50,10 @@ Requires-Dist: superqt
|
|
|
50
50
|
Requires-Dist: magicgui
|
|
51
51
|
Requires-Dist: scikit-image
|
|
52
52
|
Requires-Dist: tifffile
|
|
53
|
+
Requires-Dist: numba
|
|
54
|
+
Requires-Dist: PyQt5
|
|
55
|
+
Requires-Dist: opencv-python-headless
|
|
56
|
+
Requires-Dist: matplotlib
|
|
53
57
|
Dynamic: license-file
|
|
54
58
|
|
|
55
59
|
<div align="center">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
neuro_sam/__init__.py,sha256=0pbMqpI_nQyhP0_pfTaIg97FVEcFkS5w8gQrsMiBcG4,34
|
|
2
|
-
neuro_sam/plugin.py,sha256=
|
|
2
|
+
neuro_sam/plugin.py,sha256=35z7ybZQaFTxXL78z9oNOaHghdILJ8vaAtVShyQyISo,10116
|
|
3
3
|
neuro_sam/brightest_path_lib/__init__.py,sha256=vU3VvX26D2c9B26Lid09uThzKMQJYPx622SkPhxNlDI,123
|
|
4
4
|
neuro_sam/brightest_path_lib/connected_componen.py,sha256=x_kjDGZ_8U2ks9kZJOOyM8_ow84UugAsPUByI-NlXFk,12734
|
|
5
5
|
neuro_sam/brightest_path_lib/algorithm/__init__.py,sha256=XFYxFyx97FG7lK3_j7uA8GgunpfkOcAo2NIJU0GUn40,170
|
|
@@ -30,19 +30,19 @@ neuro_sam/napari_utils/color_utils.py,sha256=Hf5R8f0rh7b9CY1VT72o3tLGfGnnjRREkX8
|
|
|
30
30
|
neuro_sam/napari_utils/contrasting_color_system.py,sha256=a-lt_3zJLDL9YyIdWJhFDGMYzBb6yH85cV7BNCabbdI,6771
|
|
31
31
|
neuro_sam/napari_utils/main_widget.py,sha256=yahfPLwmhBt_hImpRykIObzfMwbVZvVJTEKKzMZ11bw,48588
|
|
32
32
|
neuro_sam/napari_utils/path_tracing_module.py,sha256=0mMAtrMmtgK_ujMzaWzIguYVDPr8nfzalaTAwgF3NaQ,44062
|
|
33
|
-
neuro_sam/napari_utils/punet_widget.py,sha256=
|
|
33
|
+
neuro_sam/napari_utils/punet_widget.py,sha256=_kGI4bQGbRpjSyhfZrFAqRK5RdSkdwenSrFAFv53pvs,17064
|
|
34
34
|
neuro_sam/napari_utils/segmentation_model.py,sha256=uAnNvMdZVrtlaST36TpCdyoYiaNtVsQLeaPcroD-aT0,33939
|
|
35
|
-
neuro_sam/napari_utils/segmentation_module.py,sha256=
|
|
35
|
+
neuro_sam/napari_utils/segmentation_module.py,sha256=TPn_x53uwf-WVC0vTleX2g9fCFXXWNAGtuB8Ht5vmAM,28909
|
|
36
36
|
neuro_sam/napari_utils/visualization_module.py,sha256=JtZlBoKlfIwVLa2Sqg7b2KTr07fNlAcwR0M7fHsn2oM,24723
|
|
37
37
|
neuro_sam/punet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
38
|
neuro_sam/punet/deepd3_model.py,sha256=nGVEqzCPz_E4cFA6QmknW2CffDcjxH7VsdYAyTdAtY0,7509
|
|
39
|
-
neuro_sam/punet/prob_unet_deepd3.py,sha256=
|
|
40
|
-
neuro_sam/punet/prob_unet_with_tversky.py,sha256=
|
|
39
|
+
neuro_sam/punet/prob_unet_deepd3.py,sha256=syXNleUVrfYtmVveN9G461oAhumxsijsavps8in4VRw,14698
|
|
40
|
+
neuro_sam/punet/prob_unet_with_tversky.py,sha256=2dBbO_BEHbhYWBXW7rXQX6s2DnqoTgBKkgk6VkgN-Ds,12845
|
|
41
41
|
neuro_sam/punet/punet_inference.py,sha256=U3ne-sP1y732PISFYlV50cPbXN6eEREQue1Jf6w1Io8,8032
|
|
42
42
|
neuro_sam/punet/run_inference.py,sha256=c9ATKWJvhOzNEaww_sUCI5fFS1q0bQ4GYUwNUqxWcwA,5312
|
|
43
|
-
neuro_sam/punet/unet_blocks.py,sha256=
|
|
43
|
+
neuro_sam/punet/unet_blocks.py,sha256=ZRNKay9P3OnJ0PmtKXw_iSgUyRE1DkkGefGXwSbYZGY,3171
|
|
44
44
|
neuro_sam/punet/utils.py,sha256=ibwcpkqqZ3_3Afz2VYxzplz8_8FWQ5qYQqjJiKS8hIo,1786
|
|
45
|
-
neuro_sam-0.1.
|
|
45
|
+
neuro_sam-0.1.5.dist-info/licenses/LICENSE,sha256=akmTIN8IuZn3Y7UK_8qVQnyKDWSDcVUwB8RPGNXCojw,1068
|
|
46
46
|
sam2/__init__.py,sha256=uHyh6VzVS4F2box0rPDpN5UmOVKeQNK0CIaTKG9JQZ4,395
|
|
47
47
|
sam2/automatic_mask_generator.py,sha256=Zt8mbb4UQSMFrjOY8OwbshswOpMhaxAtdn5sTuXUw9c,18461
|
|
48
48
|
sam2/benchmark.py,sha256=m3o1BriIQuwJAx-3zQ_B0_7YLhN84G28oQSV5sGA3ak,2811
|
|
@@ -86,8 +86,8 @@ sam2/utils/__init__.py,sha256=NL2AacVHZOe41zp4kF2-ZGcUCi9zFwh1Eo9spNjN0Ko,197
|
|
|
86
86
|
sam2/utils/amg.py,sha256=t7MwkOKvcuBNu4FcjzKv9BpO0av5Zo9itZ8b3WQMpdg,12842
|
|
87
87
|
sam2/utils/misc.py,sha256=AWAMAcFhzQedcQb7HU2oRc-RqjGrK87K-MsVG21tIKI,13090
|
|
88
88
|
sam2/utils/transforms.py,sha256=ujpk9GAMYvIJIGpt87QOP88TPtrjL61liDG7DCptEUY,4885
|
|
89
|
-
neuro_sam-0.1.
|
|
90
|
-
neuro_sam-0.1.
|
|
91
|
-
neuro_sam-0.1.
|
|
92
|
-
neuro_sam-0.1.
|
|
93
|
-
neuro_sam-0.1.
|
|
89
|
+
neuro_sam-0.1.5.dist-info/METADATA,sha256=04rkWKMPdFGRctGcQgHGe69JxMENwwkzNtMHOQiGn_Y,9618
|
|
90
|
+
neuro_sam-0.1.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
91
|
+
neuro_sam-0.1.5.dist-info/entry_points.txt,sha256=K0SaLior6N1REi_K0O4962Wn4DhTSos_Sx6Enx0mIm4,105
|
|
92
|
+
neuro_sam-0.1.5.dist-info/top_level.txt,sha256=yPbWxFcw79sErTk8zohihUHMK9LL31i3bXir2MrS4OQ,15
|
|
93
|
+
neuro_sam-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|