SurroundOcc icon indicating copy to clipboard operation
SurroundOcc copied to clipboard

inference error

Open phamhieutn44 opened this issue 2 years ago • 3 comments

image Im using pretrained model with template data and corresponding .pkl file with this: ./tools/dist_inference.sh ./projects/configs/surroundocc/surroundocc_inference.py ./path/to/ckpts.pth 1 Why i got this error

phamhieutn44 avatar Jun 14 '23 10:06 phamhieutn44

image 我是修改的这里,不使用self.is_vis,否则会返回shape[0],就会遇到问题。

unuan12 avatar Jun 16 '23 08:06 unuan12

图片

不应该出现这个问题啊,如果返回的shape[0],应该不会执行这段code

weiyithu avatar Jun 16 '23 10:06 weiyithu

image 我是修改的这里,不使用self.is_vis,否则会返回shape[0],就会遇到问题。

我修改了这个红框里的return pred_occ.shape[0]return pred_occ,然后模型可以正常预测了

doublekuk avatar Jan 27 '24 10:01 doublekuk