LPCG icon indicating copy to clipboard operation
LPCG copied to clipboard

TypeError: list indices mustbe integersor.slices,nottuple

Open aqr1961 opened this issue 1 year ago • 2 comments

File "/media/10T/weakm3d/dataloader/kitti dataloader.py", line' 152, in getitem cls info = np.ones like(RoI boxpoints['bbox2d'][:,0])*2 TypeError: list indices mustbe integersor.slices,nottuple

请问是否有人遇到过类似的问题,怀疑是遇到了点云为空的情况,是否可以尝试利用判断语句直接去掉空点云呢?

aqr1961 avatar Apr 16 '23 14:04 aqr1961

抱歉,回复较晚了。 是的,如果存在这样的情况,你可以用if判断跳过这一帧。 但这种错误不应该出现的,之后我有时间时会核实并修复这个问题,谢谢你的反馈!

SPengLiang avatar Apr 20 '23 12:04 SPengLiang

收到 谢谢学长

| | aqr1961 | | @.*** | ---- Replied Message ---- | From | @.> | | Date | 4/20/2023 20:24 | | To | @.> | | Cc | @.> , @.> | | Subject | Re: [SPengLiang/LPCG] TypeError: list indices mustbe integersor.slices,nottuple (Issue #6) |

抱歉,回复较晚了。 是的,如果存在这样的情况,你可以用if判断跳过这一帧。 但这种错误不应该出现的,之后我有时间时会核实并修复这个问题,谢谢你的反馈!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

aqr1961 avatar Apr 21 '23 08:04 aqr1961