neuro-sam 0.1.4__py3-none-any.whl → 0.1.6__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.
@@ -15,14 +15,8 @@ import napari
15
15
  from napari.qt.threading import thread_worker
16
16
 
17
17
  # Import the model class
18
- # Assuming running from root, so punet is a package
19
- try:
20
- from neuro_sam.punet.punet_inference import run_inference_volume
21
- except ImportError:
22
- # Fallback if running from a different context, try to append path
23
- import sys
24
- sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'punet'))
25
- from neuro_sam.punet_inference import run_inference_volume
18
+ # Assumes installed package structure
19
+ from neuro_sam.punet.punet_inference import run_inference_volume
26
20
 
27
21
 
28
22
 
@@ -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):
@@ -7,7 +7,7 @@ import torch
7
7
  import tifffile as tiff
8
8
  from tqdm import tqdm
9
9
 
10
- from prob_unet_with_tversky import ProbabilisticUnetDualLatent
10
+ from .prob_unet_with_tversky import ProbabilisticUnetDualLatent
11
11
 
12
12
 
13
13
  def pad_to_multiple(img: np.ndarray, multiple: int = 32):
@@ -2,7 +2,7 @@ import torch
2
2
  import torch.nn as nn
3
3
  from torch.autograd import Variable
4
4
  import numpy as np
5
- from utils import init_weights
5
+ from .utils import init_weights
6
6
 
7
7
  class DownConvBlock(nn.Module):
8
8
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuro-sam
3
- Version: 0.1.4
3
+ Version: 0.1.6
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
@@ -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=GzY8fGzx5xvitkIiD24TjWktW1ex4F7ujYjCu3Rd6xA,17058
33
+ neuro_sam/napari_utils/punet_widget.py,sha256=bhg2Iw8I46mCbJ_6ocCpWK4SRILStDFtrW2TtupRi4k,16790
34
34
  neuro_sam/napari_utils/segmentation_model.py,sha256=uAnNvMdZVrtlaST36TpCdyoYiaNtVsQLeaPcroD-aT0,33939
35
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=qZcKo4dZeEemqD7PxLHZu5YB_h3Q0--W3vTRhXjYxS0,14695
40
- neuro_sam/punet/prob_unet_with_tversky.py,sha256=D-Ur5AfGsVl2dH35jbZL8BaHdJHzbTrHLsS-cagBzoQ,12843
41
- neuro_sam/punet/punet_inference.py,sha256=U3ne-sP1y732PISFYlV50cPbXN6eEREQue1Jf6w1Io8,8032
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
+ neuro_sam/punet/punet_inference.py,sha256=v5ufB2Zz5WfgfFZ5-rDjBEobpr5gy-HKPPWZpCALV7A,8033
42
42
  neuro_sam/punet/run_inference.py,sha256=c9ATKWJvhOzNEaww_sUCI5fFS1q0bQ4GYUwNUqxWcwA,5312
43
- neuro_sam/punet/unet_blocks.py,sha256=xc-nZql_CSsyEeCxKIY-WIhiXG1KyRiCSIESztGJKEs,3170
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.4.dist-info/licenses/LICENSE,sha256=akmTIN8IuZn3Y7UK_8qVQnyKDWSDcVUwB8RPGNXCojw,1068
45
+ neuro_sam-0.1.6.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.4.dist-info/METADATA,sha256=SCUeOtRyt-711lsALQT9aJCOsd8cK_xyYfIMhVzc6pE,9618
90
- neuro_sam-0.1.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
91
- neuro_sam-0.1.4.dist-info/entry_points.txt,sha256=K0SaLior6N1REi_K0O4962Wn4DhTSos_Sx6Enx0mIm4,105
92
- neuro_sam-0.1.4.dist-info/top_level.txt,sha256=yPbWxFcw79sErTk8zohihUHMK9LL31i3bXir2MrS4OQ,15
93
- neuro_sam-0.1.4.dist-info/RECORD,,
89
+ neuro_sam-0.1.6.dist-info/METADATA,sha256=P7v6cbsVv3H4usDScH0_8pVQsarkXpUXDO-Ephq6adg,9618
90
+ neuro_sam-0.1.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
91
+ neuro_sam-0.1.6.dist-info/entry_points.txt,sha256=K0SaLior6N1REi_K0O4962Wn4DhTSos_Sx6Enx0mIm4,105
92
+ neuro_sam-0.1.6.dist-info/top_level.txt,sha256=yPbWxFcw79sErTk8zohihUHMK9LL31i3bXir2MrS4OQ,15
93
+ neuro_sam-0.1.6.dist-info/RECORD,,