LittlePey / SFD

Sparse Fuse Dense: Towards High Quality 3D Detection with Depth Completion (CVPR 2022, Oral)
Apache License 2.0
263 stars 35 forks source link

TypeError: 'int' object is not subscriptable. It happens in sfd_head.py when build network. #4

Closed Raiden-cn closed 2 years ago

Raiden-cn commented 2 years ago

Finnally,I can train this code in 30 series card with above Issues ! but there still are some questions.

In sfd_head.py , there is a code follows:

        for k in range(len(mlps)):
            mlps[k] = [input_channels[src_name]] + mlps[k]

input_chennels is a int not a List,I have no idea which config get wrong.

TypeError: 'int' object is not subscriptable

Thanks for your reply.

LittlePey commented 2 years ago

Hi, it seems that you add our method to a new version of OpenPCDet? You may need to use backbone_channels instead of input_channels. You can refer to lin9 and line22.