Some questions about requirements.txt
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]
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
So in the final process for building wheel for simple-knn and diff-gaussian-rasterization, it reported an error,
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!
Hi, @micki-37, perhaps you could try to clean your anaconda cache.
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
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
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
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
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 Obviously, you need to recreate your virtual envieonment.
@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
I think you have only tried with the old requirements.txt a lot of times, rather than my modified one.
I think you have only tried with the old
requirements.txta lot of times, rather than my modified one.
I indeed used your new one, I promise, but still the same problem
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
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
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.
@emedinac I suggest reinstalling the version of Torch that corresponds to CUDA 11.8, and then it should work.
