CityGaussian icon indicating copy to clipboard operation
CityGaussian copied to clipboard

Some questions about requirements.txt

Open micki-37 opened this issue 1 year ago • 12 comments

Hello, I‘m very impressed by your work, but I have encountered some problems when I try to build citygs. First, the cuda version of my device is 11.8, the same as your introduction in [citygaussianv1_readme.md] image Then I installed the same pytorch version as introduction, and used requirements.txt to build the environment. But in the procedure, it installed many modules used for cuda12 like the image I will show in the picture below image So in the final process for building wheel for simple-knn and diff-gaussian-rasterization, it reported an error, image I’m really confused about it, so can you recheck the requirements.txt or give me some help? Really looking forward to your reply soon!

micki-37 avatar Jan 15 '25 13:01 micki-37

Hi, @micki-37, perhaps you could try to clean your anaconda cache.

DekuLiuTesla avatar Jan 16 '25 04:01 DekuLiuTesla

clean your anaconda cache

I‘ve tried a lot of times but it seems to install the same thing and actually it goes to download wheel for pytorch 2.5.1 for py39 everytime image

micki-37 avatar Jan 16 '25 05:01 micki-37

clean your anaconda cache

I‘ve tried a lot of times but it seems to install the same thing and actually it goes to download wheel for pytorch 2.5.1 for py39 everytime image

Try this:

diff --git a/requirements.txt b/requirements.txt
index 9ecf7b2..2540898 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
-lightning==2.0.9.post0
-lightning[pytorch-extra]
+lightning[pytorch-extra]==2.0.9.post0
+pytorch-lightning==2.0.*
 splines==0.3.0
 plyfile==0.8.1
 numpy==1.26.2

yzslab avatar Jan 16 '25 06:01 yzslab

clean your anaconda cache

I‘ve tried a lot of times but it seems to install the same thing and actually it goes to download wheel for pytorch 2.5.1 for py39 everytime image

Try this:

diff --git a/requirements.txt b/requirements.txt
index 9ecf7b2..2540898 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
-lightning==2.0.9.post0
-lightning[pytorch-extra]
+lightning[pytorch-extra]==2.0.9.post0
+pytorch-lightning==2.0.*
 splines==0.3.0
 plyfile==0.8.1
 numpy==1.26.2

I've tried to replace the first two line of the requirements.txt with the two new lines by your instruction, but it still reported the same error when building wheels for simple knn and diff gaussian rasterization

micki-37 avatar Jan 16 '25 06:01 micki-37

@micki-37 Obviously, you need to recreate your virtual envieonment.

yzslab avatar Jan 16 '25 06:01 yzslab

@micki-37 Obviously, you need to recreate your virtual envieonment.

I've tried a lot of times, and I didn't meet this question when I build wheels for simple knn and diff gaussian rasterization for the original 3Dgs

micki-37 avatar Jan 16 '25 06:01 micki-37

I think you have only tried with the old requirements.txt a lot of times, rather than my modified one.

yzslab avatar Jan 16 '25 06:01 yzslab

I think you have only tried with the old requirements.txt a lot of times, rather than my modified one.

image I indeed used your new one, I promise, but still the same problem

micki-37 avatar Jan 16 '25 07:01 micki-37

Try using uv [1] to manage python environment. You can remove all the specific version in requirement.txt, and that works fine in my test[2].

[1] An extremely fast Python package and project manager
[2] https://github.com/DekuLiuTesla/CityGaussian/issues/79#issuecomment-2571560543

Fregettia avatar Jan 17 '25 07:01 Fregettia

Try using uv [1] to manage python environment. You can remove all the specific version in requirement.txt, and that works fine in my test[2].

[1] An extremely fast Python package and project manager [2] #79 (comment)

thank you! I've tried and solve the problem

micki-37 avatar Jan 19 '25 08:01 micki-37

Hi. I found similar issues with requirements.txt . Command: pip install -r requirements.txt I don't know why I get this if I am using Conda. In theory, it should be installed with a Cuda version.

Please let me know if you found a solution to this.

Image

emedinac avatar Apr 02 '25 08:04 emedinac

@emedinac I suggest reinstalling the version of Torch that corresponds to CUDA 11.8, and then it should work.

whwh747 avatar Sep 18 '25 09:09 whwh747