Closed lwplw closed 2 years ago
Supplement: I run train.py is working properly.
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.
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
Thank you, I too faced this issue and could solve it using your suggestion..
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!