Closed Tkk0124 closed 1 year ago
You need to install the modified chamferdist package shipped from this repo, under utils/chamferdist.
You can use command like: $ ~/4d-occ-forecasting/utils/chamferdist# pip install .
sure,It needs to be solved by linking other libraries in a ”pip insatll ." way
Is there any exception in the provided chamferdis module version 1.0.0? The error is pointing to this module
The following is the error message “Traceback (most recent call last): File "test.py", line 327, in
test(args)
File "test.py", line 283, in test
metrics["chamfer_distance"] += compute_chamfer_distance(pred_pcd, gt_pcd, device)
File "/home/gdyanfa1/tmh/tmh_lidar_occ/4d-occ-forecasting-main/utils/evaluation.py", line 207, in compute_chamfer_distance
cd_forward, cd_backward, CD_info = chamfer_distance(
File "/home/gdyanfa1/miniconda3/envs/tmh_lidar_occ/lib/python3.8/site-packages/torch/_tensor.py", line 607, in iter
raise TypeError('iteration over a 0-d tensor')
TypeError: iteration over a 0-d tensor”