Install script seems not to be compatible with Windows
OS: Windows 11 torch version: 2.7.1+cu126 torchvision version: 0.22.1+cu126
The dependency installation uses a sh script, which is only supported in Linux, so I manully execute those scripts in Windows 11. Error appeared when i install submodules/odgs-gaussian-rasterization Error:
E:\projects\Matrix-3D\submodules\ODGS\submodules\odgs-gaussian-rasterization\cuda_rasterizer\backward.cu(176): error: identifier "M_PI" is undefined`
const float x_scale = width/(2*M_PI);
^
E:\projects\Matrix-3D\submodules\ODGS\submodules\odgs-gaussian-rasterization\cuda_rasterizer\backward.cu(385): error: identifier "M_PI" is undefined
const float x_scale = W/(2*M_PI)/dist_xz2;
^
2 errors detected in the compilation of "cuda_rasterizer/backward.cu".
backward.cu
error: command 'E:\\cudatoolkit\\bin\\nvcc' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for odgs_gaussian_rasterization
Running setup.py clean for odgs_gaussian_rasterization
Failed to build odgs_gaussian_rasterization
ERROR: Failed to build installable wheels for some pyproject.toml based projects (odgs_gaussian_rasterization)
M_PI is defined in Linux, but not in Windows. I'm not familar with ODGS this module, is this module only supported in Linux or not? Is it possible to create a install script for Windows OS?
Btw, the README says that the project dependency uses torch 2.7.1 and CUDA 12.4, but torch 2.7.1 seems not to have CUDA 12.4 version, while CUDA 12.6 is the minimum version I can find for torch 2.7.1
cuda 12.6 should be okay as long as all packages in the script are properly installed. As for the odgs installation, it looks like a cuda compile predefinition problem during compliation; you may try to add some predefinition head like USE_MATH_DEFINES or search the error for solution.
BTW, the generation process takes a large amount of gpu memory(around 40g for 480p generation and 60g for 720p generation). make sure you have a good graphic card for this.
I think some dependencies used in project are very old versions, which are not easy to installed in latest cuda and torch. I later tried to install dependencies in Linux, some dependencies still had a lot compatible issues with different torch version, cuda version, then I needed to solve them one by one. But unfortunately my Linux cluster is arm architecture cpu, some dependencies are very tough to be compiled to install, I have not been able to reproduce this project.