Skip to content

Network alias is conflicting with the module names #3134

@wyli

Description

@wyli

Describe the bug
some network modules can't be imported, due to incorrect alias settings.

To Reproduce

import monai.networks.nets.densenet as mod
print(type(mod))

The outcome is <class 'type'>.

Expected behavior
The outcome should be <class 'module'>, because monai/networks/nets/densenet.py is a file.

Additional context
for example

Densenet = densenet = DenseNet
the alias name densenet is conflicting with the file name monai/networks/nets/densenet.py.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions