graspnet / graspnet-baseline

Baseline model for "GraspNet-1Billion: A Large-Scale Benchmark for General Object Grasping" (CVPR 2020)
https://graspnet.net/
Other
475 stars 142 forks source link

run demo error #84

Closed MoonBunnyZZZ closed 5 months ago

MoonBunnyZZZ commented 9 months ago

During run common_demo.sh, there is ImportError:

ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it).

It seems like about grasp_nms package. How to fix it?

MoonBunnyZZZ commented 9 months ago

During run common_demo.sh, there is ImportError:

ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it).

It seems like about grasp_nms package. How to fix it?

I put 'numpy.import_array()' after cimporting numpy in grasp_nms.pyx.The error don't occur.But I don't kown whether this is the only right way.

chenxi-wang commented 9 months ago

Maybe it's due to numpy version?

MoonBunnyZZZ commented 9 months ago

Maybe it's due to numpy version?

which version in your python env?In my env, it's 1.19.0.

chenxi-wang commented 9 months ago

I didn't remember the version. You can try upgrading numpy directly.

MoonBunnyZZZ commented 9 months ago

I didn't remember the version. You can try upgrading numpy directly.

Ok

MoonBunnyZZZ commented 9 months ago

By the way, what is the gray point in point cloud generated by running demo .py?What does it mean?

chenxi-wang commented 9 months ago

By the way, what is the gray point in point cloud generated by running demo .py?What does it mean?

Could you provide more details about "gray point"?

MoonBunnyZZZ commented 9 months ago

By the way, what is the gray point in point cloud generated by running demo .py?What does it mean?

Could you provide more details about "gray point"?

sorry for the delay the gray point is in the top-right corner Screenshot from 2023-12-20 09-51-17

chenxi-wang commented 8 months ago

Could it be the origin of the camera coordinates?

captain316 commented 8 months ago

During run common_demo.sh, there is ImportError: ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it). It seems like about grasp_nms package. How to fix it?

I put 'numpy.import_array()' after cimporting numpy in grasp_nms.pyx.The error don't occur.But I don't kown whether this is the only right way.

but, where is grasp_nms.pyx? I can't find it.

15138676358 commented 8 months ago

The function "nms" is aimed at non-maximum suppression. I commented out the line 108 [e.g. gg.nms()] of the demo.py file directly, which seems to have no great effect on the results of the example.

briller-zzj commented 4 months ago

During run common_demo.sh, there is ImportError: ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it). It seems like about grasp_nms package. How to fix it?

I put 'numpy.import_array()' after cimporting numpy in grasp_nms.pyx.The error don't occur.But I don't kown whether this is the only right way.

I'm also getting this error, but I can't find where the “grasp_nms.sh” file is, how did you fix it, could you tell me please?