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

FloatingPointError: invalid value encountered in divide #23

Open
josieisjose opened this issue Oct 17, 2024 · 0 comments
Open

FloatingPointError: invalid value encountered in divide #23

josieisjose opened this issue Oct 17, 2024 · 0 comments

Comments

@josieisjose
Copy link

I think you're doing a good job, but I'm running the generate_grasps.py and I'm getting an error:
Traceback (most recent call last):
File "/home/josie/miniconda3/envs/dexgraspnet/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/josie/DexGraspNet/grasp_generation/scripts/generate_grasps.py", line 70, in generate
initialize_convex_hull(hand_model, object_model, args)
File "/home/josie/DexGraspNet/grasp_generation/utils/initializations.py", line 58, in initialize_convex_hull
closest_points, _, _ = mesh_origin.nearest.on_surface(p.detach().cpu().numpy())
File "/home/josie/miniconda3/envs/dexgraspnet/lib/python3.8/site-packages/trimesh/constants.py", line 151, in timed
result = method(*args, **kwargs)
File "/home/josie/miniconda3/envs/dexgraspnet/lib/python3.8/site-packages/trimesh/proximity.py", line 333, in on_surface
return closest_point(mesh=self._mesh, points=points)
File "/home/josie/miniconda3/envs/dexgraspnet/lib/python3.8/site-packages/trimesh/proximity.py", line 162, in closest_point
query_close = _corresponding(query_tri, query_point)
File "/home/josie/miniconda3/envs/dexgraspnet/lib/python3.8/site-packages/trimesh/triangles.py", line 652, in closest_point
v = (d1[is_ab]*factor / scaled_denominator).reshape((-1, 1))
FloatingPointError: invalid value encountered in divide
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "scripts/generate_grasps.py", line 252, in
list(it)
File "/home/josie/miniconda3/envs/dexgraspnet/lib/python3.8/site-packages/tqdm/std.py", line 1181, in iter
for obj in iterable:
File "/home/josie/miniconda3/envs/dexgraspnet/lib/python3.8/multiprocessing/pool.py", line 868, in next
raise value
FloatingPointError: invalid value encountered in divide

How to solve it? Is it because the wrong version of trimesh?

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