Skip to content

Use mmcv.runner.ModuleList instead of nn.ModuleList in mmdet3d.models.dense_heads.centerpoint_head #1554

@anti-destiny

Description

@anti-destiny

As you can see from here:

self.task_heads = nn.ModuleList()

task_heads is initialized as a nn.ModuleList
However, nn.ModuleList does not implement the init_weights function which is declared in the BaseModule class.
So, you should replaced nn.ModuleList with mmcv.runner.ModuleList. Otherwise, the CenterPointHead won't be correctly initialized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions