tarashakhurana / 4d-occ-forecasting

CVPR 2023: Official code for `Point Cloud Forecasting as a Proxy for 4D Occupancy Forecasting'

Home Page:https://www.cs.cmu.edu/~tkhurana/ff4d/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chamferdis module reported an error

Tkk0124 opened this issue · comments

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”

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