Skip to content

issue with LoadNifti & denseNet121 in V.0.5.0  #2032

@naruetep

Description

@naruetep

Previously the following codes was working
but it showed error messages and could not continue:

!pip install -q "monai[gdown, nibabel, tqdm]"

from monai.transforms import
Compose, AddChanneld, ScaleIntensityd, ToTensord, RandRotated, RandFlipd, RandZoomd, Spacingd, SpatialPadd, CenterSpatialCropd , LoadNiftid
from monai.networks.nets import densenet121

Below are the errors:

ImportError: cannot import name 'LoadNiftid' from 'monai.transforms' (/usr/local/lib/python3.7/dist-packages/monai/transforms/init.py)

ImportError: cannot import name 'densenet121' from 'monai.networks.nets' (/usr/local/lib/python3.7/dist-packages/monai/networks/nets/init.py)

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions