Replies: 2 comments
-
please try the docker image which has a precompiled otherwise you can install it from the source:
more details https://docs.monai.io/en/latest/installation.html#from-github |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you very much for your reply. I will try again according to your reply.
…------------------ 原始邮件 ------------------
发件人: "Project-MONAI/MONAI" ***@***.***>;
发送时间: 2022年8月22日(星期一) 晚上9:15
***@***.***>;
***@***.******@***.***>;
主题: Re: [Project-MONAI/MONAI] Error caused by calling CRF block (Discussion #4953)
please try the docker image which has a precompiled monai._C in it and the CRF is probably ready-to-use if you can get the docker container running https://docs.monai.io/en/latest/installation.html#from-dockerhub
otherwise you can install it from the source:
BUILD_MONAI=1 pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI#egg=monai
more details https://docs.monai.io/en/latest/installation.html#from-github
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(1)I introduced the CRF block at the end of the Unet framework:
def forward(self, x: torch.Tensor) -> torch.Tensor:
(2)I want to introduce CRF bloack at the end of the model for post-processing, but the following error is displayed:
monai.utils.module.OptionalImportError: import monai._C (No module named 'monai._C').
(3)After debugging, it is found that CRF module calls the filter function written in C language
import torch
from monai.utils.module import optional_import
_C, _ = optional_import("monai._C")
all = ["BilateralFilter", "PHLFilter"]
There is a problem here. I don't know how to deal with it.
Beta Was this translation helpful? Give feedback.
All reactions