Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exam_eval.py #31

Open
Pamyuu opened this issue Jan 6, 2022 · 0 comments
Open

exam_eval.py #31

Pamyuu opened this issue Jan 6, 2022 · 0 comments

Comments

@Pamyuu
Copy link

Pamyuu commented Jan 6, 2022

您好,最近在github上看你们的代码,这里我把你们数据集的前110个scene使用convert脚本转换成.npy文件,使用exam_eval.py脚本进行评估,遇到了以下错误:
Traceback (most recent call last):
File "/home/robot/graspnetAPI-master/examples/exam_eval.py", line 21, in
acc = ge_r.eval_scene(scene_id=sceneId, dump_folder=dump_folder)
File "/home/robot/graspnetAPI-master/graspnetAPI/graspnet_eval.py", line 144, in eval_scene
grasp_list, score_list, collision_mask_list = eval_grasp(grasp_group, model_sampled_list, dexmodel_list, pose_list, config, table=table_trans, voxel_size=0.008, TOP_K = TOP_K)
File "/home/robot/graspnetAPI-master/graspnetAPI/utils/eval_utils.py", line 340, in eval_grasp
indices = compute_closest_points(grasp_group.translations, scene)
File "/home/robot/graspnetAPI-master/graspnetAPI/utils/eval_utils.py", line 133, in compute_closest_points
dists = compute_point_distance(A, B)
File "/home/robot/graspnetAPI-master/graspnetAPI/utils/eval_utils.py", line 114, in compute_point_distance
dists = np.linalg.norm(A-B, axis=-1)
ValueError: operands could not be broadcast together with shapes (2754,1,0) (1,5328,3)

Process finished with exit code 1

看了每个函数的定义,不知道怎么解决,期待您的回复!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant