Skip to content

Commit 80218fb

Browse files
committed
fix: fix imports
1 parent ccb59ea commit 80218fb

File tree

5 files changed

+3
-44
lines changed

5 files changed

+3
-44
lines changed

cellseg_models_pytorch/inference/post_processor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"hovernet": True,
2828
"drfns": True,
2929
"dcan": False,
30-
"dran": False,
3130
}
3231

3332
ALLOWED_FORMATS = (".mat", ".geojson", ".feather", ".parquet")

cellseg_models_pytorch/losses/criterions/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from .ce import CELoss
33
from .dice import DiceLoss
44
from .focal import FocalLoss
5-
from .grad_mse import GradMSE
65
from .iou import IoULoss
76
from .mae import MAE
87
from .mse import MSE
@@ -18,7 +17,6 @@
1817
"sce": SCELoss,
1918
"focal": FocalLoss,
2019
"mse": MSE,
21-
"gmse": GradMSE,
2220
"ssim": SSIM,
2321
"msssim": MSSSIM,
2422
"mae": MAE,
@@ -30,7 +28,6 @@
3028
"SEG_LOSS_LOOKUP",
3129
"REG_LOSS_LOOKUP",
3230
"MSE",
33-
"GradMSE",
3431
"SSIM",
3532
"MSSSIM",
3633
"DiceLoss",

cellseg_models_pytorch/postproc/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
normalize_field,
1010
)
1111
from .functional.dcan import post_proc_dcan
12-
from .functional.dran import post_proc_dran
1312
from .functional.drfns import post_proc_drfns
1413
from .functional.hovernet import post_proc_hovernet
1514
from .functional.omnipose import get_masks_omnipose, post_proc_omnipose
@@ -24,7 +23,6 @@
2423
"omnipose": post_proc_omnipose,
2524
"dcan": post_proc_dcan,
2625
"drfns": post_proc_drfns,
27-
"dran": post_proc_dran,
2826
"hovernet": post_proc_hovernet,
2927
}
3028

@@ -44,6 +42,5 @@
4442
"post_proc_cellpose_old",
4543
"post_proc_drfns",
4644
"post_proc_dcan",
47-
"post_proc_dran",
4845
"get_bboxes",
4946
]

cellseg_models_pytorch/postproc/functional/stardist/nms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from numba import njit, prange
66
from scipy.spatial import KDTree
77

8-
from ....utils import intersection
8+
from cellseg_models_pytorch.utils import intersection
99

1010
__all__ = ["get_bboxes", "nms_stardist"]
1111

cellseg_models_pytorch/utils/__init__.py

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,9 @@
2828
type_map_flatten,
2929
)
3030
from .multiproc import run_pool
31-
from .tensor_kernels import filter2D, gaussian, gaussian_kernel2d, sobel_hv
32-
from .tensor_utils import (
33-
ndarray_to_tensor,
34-
tensor_one_hot,
35-
tensor_to_ndarray,
36-
to_device,
37-
)
38-
from .thresholding import (
39-
argmax,
40-
morph_chan_vese_thresh,
41-
naive_thresh,
42-
naive_thresh_prob,
43-
niblack_thresh,
44-
sauvola_thresh,
45-
)
46-
47-
THRESH_LOOKUP = {
48-
"argmax": argmax,
49-
"naive": naive_thresh_prob,
50-
"sauvola": sauvola_thresh,
51-
"niblack": niblack_thresh,
52-
}
53-
31+
from .tensor_utils import tensor_one_hot, to_device, to_tensor
5432

5533
__all__ = [
56-
"THRESH_LOOKUP",
5734
"Downloader",
5835
"FileHandler",
5936
"H5Handler",
@@ -75,18 +52,7 @@
7552
"remove_debris_semantic",
7653
"fill_holes_semantic",
7754
"label_semantic",
78-
"naive_thresh_prob",
79-
"naive_thresh",
80-
"niblack_thresh",
81-
"sauvola_thresh",
82-
"morph_chan_vese_thresh",
83-
"argmax",
84-
"gaussian",
85-
"gaussian_kernel2d",
86-
"sobel_hv",
87-
"filter2D",
88-
"ndarray_to_tensor",
89-
"tensor_to_ndarray",
55+
"to_tensor",
9056
"to_device",
9157
"tensor_one_hot",
9258
"normalize_torch",

0 commit comments

Comments
 (0)