From a9f547c1681e1874ce5f95802397a50520ec25b6 Mon Sep 17 00:00:00 2001 From: Yiheng Wang <68361391+yiheng-wang-nv@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:50:34 +0800 Subject: [PATCH] Update morphological ops path (#1778) Fixes # . ### Description This PR is used to update the path of morphological path according to MONAI core changes: https://github.com/Project-MONAI/MONAI/pull/7995. ### Checks - [ ] Avoid including large-size files in the PR. - [ ] Clean up long text outputs from code cells in the notebook. - [ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t ` Signed-off-by: Yiheng Wang --- generation/maisi/scripts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation/maisi/scripts/utils.py b/generation/maisi/scripts/utils.py index 7600a3cdb1..a16d1c4846 100644 --- a/generation/maisi/scripts/utils.py +++ b/generation/maisi/scripts/utils.py @@ -21,7 +21,7 @@ import skimage import torch import torch.distributed as dist -from monai.apps.generation.maisi.utils.morphological_ops import dilate, erode +from monai.transforms.morphological_ops import dilate, erode from monai.bundle import ConfigParser from monai.config import DtypeLike, NdarrayOrTensor from monai.data import CacheDataset, DataLoader, partition_dataset