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

On getting the code to run on Sept. 2024 #68

Open
jhuangBU opened this issue Sep 9, 2024 · 10 comments
Open

On getting the code to run on Sept. 2024 #68

jhuangBU opened this issue Sep 9, 2024 · 10 comments

Comments

@jhuangBU
Copy link
Contributor

jhuangBU commented Sep 9, 2024

I just tried setting this entire project up again for something else, and the documented way of setting up conda environments appears to be broken (again).

Assuming the first way of setting up environments (by conda env create -f environment.yaml), you now need to do this instead:

  • comment out line 20 & line 21 in environment.yaml
    • we need to run pip manually
  • run conda env create -f environment.yaml
    • To setup the environment
  • run conda activate GaussianEditor
    • activate the environment for everything follows
  • run export CPLUS_INCLUDE_PATH=$CONDA_PREFIX/targets/x86_64-linux/include
    • so the NVCC compiler can find the cub/* thrust/* headers
  • go to gaussiansplatting/submodules/simple-knn/simple_knn.cu, and add #include <float.h> to the end of the include operations
    • so you won't get the FLT_MAX missing error during compilation
  • run pip install -r requirements.lock.txt --use-deprecated=legacy-resolver
    • install pip dependencies using the legacy solver so everything can still be found

All of this is very temporary and is only tested to work on 2024-09-09.

Yeah this is absolutely worth my time and is totally why I got into AI research! /s

@zohairbadshah
Copy link

Thank you worked for most of the submodules but not for diff-gaussian-rasterizer,simpleknn,tinycudann. The error is with the compatibility of MSVS and Cuda toolkit. I have MSVS 2022 and cuda 11.8 and for these packages it says incompatible compiler. When i install gaussian splatting i had cuda 12.6 and MSVS 2022 and there was no error. Is there a workaround for this?

@jhuangBU
Copy link
Contributor Author

Thank you worked for most of the submodules but not for diff-gaussian-rasterizer,simpleknn,tinycudann. The error is with the compatibility of MSVS and Cuda toolkit. I have MSVS 2022 and cuda 11.8 and for these packages it says incompatible compiler. When i install gaussian splatting i had cuda 12.6 and MSVS 2022 and there was no error. Is there a workaround for this?

I think there is a switch you can use to force nvcc to use the unsupported compiler, but otherwise you might have to fiddle with versions

@zohairbadshah
Copy link

Made it work somehow, there is still a dependency conflict with Lang sem, it requires python>3.11. how to solve this?

@jhuangBU
Copy link
Contributor Author

Then I suppose you need to fiddle with the versions a bit more; all of this was tested on Linux, sorry.

@zohairbadshah
Copy link

Ok, for anyone having the same issue install lang-sem from this commit
pip install git+https://github.com/luca-medeiros/lang-segment-anything.git@9bdf77715fa70fca96452184abdc64a6666e0d46

@jhuangBU Great work! Thank you!

@coderpiaobozhe
Copy link

coderpiaobozhe commented Oct 17, 2024

Ok, for anyone having the same issue install lang-sem from this commit pip install git+https://github.com/luca-medeiros/lang-segment-anything.git@9bdf77715fa70fca96452184abdc64a6666e0d46

@jhuangBU Great work! Thank you!

The link does not work now. It seems that the author of lang-sem deleted the branch and I failed to install the new version of lang-sem due to a version issue of accelerate.

@zohairbadshah
Copy link

Try this one:
luca-medeiros/lang-segment-anything@9bdf777

@husky2001
Copy link

试试这个: luca-medeiros/lang-segment-anything@9bdf777

The latest lang-segment-anything requires python>3.11, but this causes dependency conflicts in igl. How can I solve it?The link above is also broken, how can we fix it? Thank you! Thank you!

@sgtziggy
Copy link

Try this one: luca-medeiros/lang-segment-anything@9bdf777

i have the same problem, too. Is there any methods to solve it?

@husky2001
Copy link

Try this one: luca-medeiros/lang-segment-anything@9bdf777

i have the same problem, too. Is there any methods to solve it?
This is version 0.1.0 I found, I succeeded, you can try it!
https://github.com/paulguerrero/lang-sam

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

5 participants