Vegeta2020 / SE-SSD

SE-SSD: Self-Ensembling Single-Stage Object Detector From Point Cloud, CVPR 2021.
Apache License 2.0
811 stars 128 forks source link

When I run 'python ./tools/test.py', I encounter the following problems. #81

Closed lwplw closed 2 years ago

lwplw commented 2 years ago

image

I searched for it, this seems to be a numpy version of the problem, and I have tried to reduce the numpy version from 1.21.6 to 1.20.0 is still not resolved, continue to reduce the version will cause other dependent libraries version conflicts, please ask the author of the version of the relevant library, I refer to it, thanks!

lwplw commented 2 years ago

Supplement: I run train.py is working properly.

lwplw commented 2 years ago

I also found that maybe it was a problem with the coco API, and tried to upgrade to the latest version of pycocotools 2.0.4 as suggested, but still could not solve it.

Check out .../python3.8/site-packages/pycocotools/cocoeval .py this issue has indeed been fixed in the new version. image

lwplw commented 2 years ago

I solved! I modified the code in the /SE-SSD/det3d/datasets/kitti/eval .py:

for i in range(overlap_ranges.shape[1]):
        for j in range(overlap_ranges.shape[2]):
            # min_overlaps[:, i, j] = np.linspace(*overlap_ranges[:, i, j])
            a, b, c = overlap_ranges[:, i, j]  # extracting the three numbers
            min_overlaps[:, i, j] = np.linspace(a, b, int(c)) # casting to integer
bhaskar-anand-iith commented 2 years ago

Thank you, I too faced this issue and could solve it using your suggestion..