MrForExample / ComfyUI-3D-Pack

An extensive node suite that enables ComfyUI to process 3D inputs (Mesh & UV Texture, etc) using cutting edge algorithms (3DGS, NeRF, etc.)
MIT License
1.72k stars 165 forks source link

simple_knn errors > solved. #163

Open jaeh opened 1 month ago

jaeh commented 1 month ago

hi there.

i ran into two problems with the local simple_knn dir, #define __CUDACC__ errors because it is already defined, FLT_MAX is not defined and if i add include <math.h> the error persists.

i solved it using:

pip install ./tgs/models/snowflake/pointnet2_ops_lib

pip install simple-knn

pip install git+https://github.com/ashawkey/diff-gaussian-rasterization git+https://github.com/NVlabs/nvdiffrast/ git+https://github.com/facebookresearch/pytorch3d.git@stable git+https://github.com/rusty1s/pytorch_scatter.git git+https://github.com/ashawkey/kiuikit.git git+https://github.com/tatsy/torchmcubes.git

in exactly that order.

i will leave this here in case anyone else is running into those errors (or in case i have to reinstall the server. i pray to the machine gods that i won't have to...)