tarashakhurana / 4d-occ-forecasting

CVPR 2023: Official code for `Point Cloud Forecasting as a Proxy for 4D Occupancy Forecasting'
https://www.cs.cmu.edu/~tkhurana/ff4d/index.html
MIT License
212 stars 22 forks source link

Chamferdis module reported an error #5

Closed Tkk0124 closed 1 year ago

Tkk0124 commented 1 year ago

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”

flm8620 commented 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 .

Tkk0124 commented 1 year ago

sure,It needs to be solved by linking other libraries in a ”pip insatll ." way