File tree Expand file tree Collapse file tree 2 files changed +5
-23
lines changed
napari_cellseg3d/code_models Expand file tree Collapse file tree 2 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 3131if 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 )
3737else :
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" ,
Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ profile = "black"
123123line_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+ # ]
129129onnx-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]
You can’t perform that action at this time.
0 commit comments