xinge008 / Cylinder3D

Rank 1st in the leaderboard of SemanticKITTI semantic segmentation (both single-scan and multi-scan) (Nov. 2020) (CVPR2021 Oral)
Apache License 2.0
858 stars 180 forks source link

Error when trying to re-train #170

Open SM1991CODES opened 1 year ago

SM1991CODES commented 1 year ago

Hi,

I was trying to re-train on SemanticKITTI and I get the following error during validation. Please help in fixing this.

Traceback (most recent call last): File "train_cylinder_asym.py", line 167, in main(args) File "train_cylinder_asym.py", line 109, in main iou = per_class_iu(sum(hist_list)) File "/home/sambit/data/code/Cylinder3D/utils/metric_util.py", line 16, in per_class_iu return np.diag(hist) / (hist.sum(1) + hist.sum(0) - np.diag(hist)) File "<__array_function__ internals>", line 180, in diag File "/usr/local/lib/python3.8/dist-packages/numpy/lib/twodim_base.py", line 309, in diag raise ValueError("Input must be 1- or 2-d.") ValueError: Input must be 1- or 2-d.