isl-org / DeepLagrangianFluids

Code repository for "Lagrangian Fluid Simulation with Continuous Convolutions", ICLR 2020.
Other
207 stars 41 forks source link

pyopenvdb module #21

Closed ytimber closed 2 years ago

ytimber commented 2 years ago

Hi,

I'm currently trying to use scripts/create_surface_meshes.py, but it asks for pyopenvdb. I'm wondering which version I should be downloading. When I used python3 -m pip install pyopenvdb, it generates the following error

ERROR: Could not find a version that satisfies the requirement pyopenvdb
ERROR: No matching distribution found for pyopenvdb

Any insight on how this can be done is immensely appreciated!

benjaminum commented 2 years ago

I compiled the python module for OpenVDB from source https://github.com/AcademySoftwareFoundation/openvdb

syguan96 commented 2 years ago

Hi @benjaminum, could you please tell me the version of OpenVDB you used.

benjaminum commented 2 years ago

I used version 7.0

ytimber commented 2 years ago

@benjaminum Thanks! I ran into the following issue while running the create_surface_meshes.py

free(): invalid pointer

have you also encountered this error while running your code? I'm wondering whether you might provide me with some insights on why this is happening. Many thanks in advance! :))

EDIT: solved! Just simply load pyopenvdb as the first module rather than the last.

syguan96 commented 2 years ago

I use conda to create an environment. Then build openvdb with OPENVDB_BUILD_PYTHON_MODULE=ON. But after make install, I met the problem: ModuleNotFoundError: No module named 'pyopenvdb'.

@ytimber, could you please tell me your install procedure?

ytimber commented 2 years ago

@syguan96 Hi, I didn't compile from source. I used python3.7 -m pip install pyopenvdb

benjaminum commented 2 years ago

Thanks @ytimber @syguan96 for the comments and hints. Please reopen if there is still an issue.