SarahWeiii / CoACD

[SIGGRAPH2022] Approximate Convex Decomposition for 3D Meshes with Collision-Aware Concavity and Tree Search
https://colin97.github.io/CoACD/
MIT License
403 stars 52 forks source link

How to enable determinism? #43

Open yuvaltassa opened 1 month ago

yuvaltassa commented 1 month ago

As we attempt to integrate CoACD with MuJoCo, we found that we do not understand how to enable deterministic operation. The params struct has a seed attribute (defaulting to 1234), which seems to imply that rerunning without changing anything will lead to the same decomposition, but this is not the case. Below are images of two runs with identical seed.

Are we doing something wrong? cc @quagla @btaba

Screenshot 2024-05-03 at 12 43 45 Screenshot 2024-05-03 at 12 44 28
SarahWeiii commented 1 month ago

Hi, I think the issue stems from the random seed settings in CDT, but I wasn't able to resolve it before. I'll check it again when I have more time.