Skip to content

Commit 3ec8aae

Browse files
committed
rm direct dependency on CRF in pyproject.toml
1 parent 8194fae commit 3ec8aae

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

napari_cellseg3d/code_models/crf.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
if not CRF_INSTALLED:
3232
logger.info(
3333
"pydensecrf not installed, CRF post-processing will not be available. "
34-
"Please install by running pip install cellseg3d[crf]"
34+
"Please install by running : pip install pydensecrf@git+https://github.com/lucasb-eyer/pydensecrf.git#egg=master"
3535
"This is not a hard requirement, you do not need it to install it unless you want to use the CRF post-processing step."
3636
)
3737
else:
@@ -42,24 +42,6 @@
4242
unary_from_softmax,
4343
)
4444

45-
# try:
46-
# import pydensecrf.densecrf as dcrf
47-
# from pydensecrf.utils import (
48-
# create_pairwise_bilateral,
49-
# create_pairwise_gaussian,
50-
# unary_from_softmax,
51-
# )
52-
# CRF_INSTALLED = True
53-
# except (ImportError, ModuleNotFoundError):
54-
# logger.info(
55-
# "pydensecrf not installed, CRF post-processing will not be available. "
56-
# "Please install by running pip install cellseg3d[crf]"
57-
# "This is not a hard requirement, you do not need it to install it unless you want to use the CRF post-processing step."
58-
# )
59-
# CRF_INSTALLED = False
60-
# use importlib instead to check if pydensecrf is installed
61-
62-
6345
__author__ = "Yves Paychère, Colin Hofmann, Cyril Achard"
6446
__credits__ = [
6547
"Yves Paychère",

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ profile = "black"
123123
line_length = 79
124124

125125
[project.optional-dependencies]
126-
crf = [
127-
"pydensecrf@git+https://github.com/lucasb-eyer/pydensecrf.git#egg=master",
128-
]
126+
#crf = [
127+
# "pydensecrf@git+https://github.com/lucasb-eyer/pydensecrf.git#egg=master",
128+
#]
129129
onnx-cpu = [
130130
"onnx",
131131
"onnxruntime"
@@ -155,7 +155,7 @@ test = [
155155
"coverage",
156156
"tox",
157157
"twine",
158-
"pydensecrf@git+https://github.com/lucasb-eyer/pydensecrf.git#egg=master",
158+
# "pydensecrf@git+https://github.com/lucasb-eyer/pydensecrf.git#egg=master",
159159
"onnx",
160160
"onnxruntime",
161161
]

0 commit comments

Comments
 (0)