EnVision-Research / LucidDreamer

Official implementation of "LucidDreamer: Towards High-Fidelity Text-to-3D Generation via Interval Score Matching"
MIT License
749 stars 32 forks source link

Error when installing requirements #17

Closed 311-code closed 10 months ago

311-code commented 10 months ago

I was doing the instructions and it installs everything but gives this error at the end:

ERROR: Could not find a version that satisfies the requirement triton (from versions: none) ERROR: No matching distribution found for triton

Any ideas? Using Anaconda on windows 11. 4090 here.

YixunLiang commented 10 months ago

Hi,

Thanks for reaching out. Please try to remove this line in requirements.txt and use pip to install trion manually. Also, I remember that triton would not affect the using of our implementation. Just for solve a warning. So you can also just skip it.

---- Replied Message ---- | From | @.> | | Date | 12/04/2023 08:41 | | To | @.> | | Cc | @.***> | | Subject | [EnVision-Research/LucidDreamer] Error when installing requirements (Issue #17) |

I was doing the instruction and it installs everything but gives this error at the end:

ERROR: Could not find a version that satisfies the requirement triton (from versions: none) ERROR: No matching distribution found for triton

Any ideas?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

311-code commented 10 months ago

Thanks that worked, though I have a new error now (cuda 10.2 is installed to the proper directory)

Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [14 lines of output] No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2' running bdist_wheel C:\Users\PC\anaconda3\envs\LucidDreamer\lib\site-packages\torch\utils\cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\diff_gaussian_rasterization copying diff_gaussian_rasterization__init__.py -> build\lib.win-amd64-cpython-39\diff_gaussian_rasterization running build_ext C:\Users\PC\anaconda3\envs\LucidDreamer\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') error: [WinError 2] The system cannot find the file specified [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization ERROR: Could not build wheels for diff-gaussian-rasterization, which is required to install pyproject.toml-based projects

YixunLiang commented 10 months ago

It seems like your cuda version is too old. Maybe update it to cuda 11.2 would solve this problem.

---- Replied Message ---- | From | @.> | | Date | 12/04/2023 09:56 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [EnVision-Research/LucidDreamer] Error when installing requirements (Issue #17) |

Thanks that worked, though I have a new error now (cuda 10.2 is installed to the proper directory)

Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [14 lines of output] No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2' running bdist_wheel C:\Users\PC\anaconda3\envs\LucidDreamer\lib\site-packages\torch\utils\cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\diff_gaussian_rasterization copying diff_gaussian_rasterizationinit.py -> build\lib.win-amd64-cpython-39\diff_gaussian_rasterization running build_ext C:\Users\PC\anaconda3\envs\LucidDreamer\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') error: [WinError 2] The system cannot find the file specified [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization ERROR: Could not build wheels for diff-gaussian-rasterization, which is required to install pyproject.toml-based projects

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

311-code commented 10 months ago

Just tried 12.3 but same error :(

311-code commented 10 months ago

I have a feeling this is related to windows 11/anaconda, going to try WSL ubuntu tomorrow.

YixunLiang commented 10 months ago

Could you please share your email with me? I sent you a environment.yaml for a try.

311-code commented 10 months ago

yes its brentjohnson221@outlook.com

TangYucopper commented 10 months ago

Hi, may I get a copy of your environment.yaml? Unfortunately I cannot run your code even though I follow your installation procedure completely. It consistently produces CUDA errors such as "numel: integer multiplication overflow" and "illegal memory access" @YixunLiang . Thanks in advance! Besides, could you please tell me which version of nvcc compiler are you using as it is used to compile the diff-gaussian-rasterization package.

YixunLiang commented 10 months ago

Sure, please give me your email. But it might be diff-gaussian-rasterization problem, not the environment.

For the problem of cuda error. you can check this: https://github.com/graphdeco-inria/gaussian-splatting/issues/41 . It might be helpful. BTW, Is your GPU RTX4090?

My nvcc version is:

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Mon_Oct_12_20:09:46_PDT_2020 Cuda compilation tools, release 11.1, V11.1.105 Build cuda_11.1.TC455_06.29190527_0

Hi, may I get a copy of your environment.yaml? Unfortunately I cannot run your code even though I follow your installation procedure completely. It consistently produces CUDA errors such as "numel: integer multiplication overflow" and "illegal memory access" @YixunLiang . Thanks in advance!

TangYucopper commented 10 months ago

Sure, please give me your email. But it might be diff-gaussian-rasterization problem, not the environment.

For the problem of cuda error. you can check this: graphdeco-inria/gaussian-splatting#41 . It might be helpful. BTW, Is your GPU RTX4090?

My nvcc version is:

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Mon_Oct_12_20:09:46_PDT_2020 Cuda compilation tools, release 11.1, V11.1.105 Build cuda_11.1.TC455_06.29190527_0

Hi, may I get a copy of your environment.yaml? Unfortunately I cannot run your code even though I follow your installation procedure completely. It consistently produces CUDA errors such as "numel: integer multiplication overflow" and "illegal memory access" @YixunLiang . Thanks in advance!

Thanks. My GPU is RTX4090. Let me first check the issue page.

SweetCone1 commented 10 months ago

Thanks that worked, though I have a new error now (cuda 10.2 is installed to the proper directory)

Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [14 lines of output] No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2' running bdist_wheel C:\Users\PC\anaconda3\envs\LucidDreamer\lib\site-packages\torch\utils\cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\diff_gaussian_rasterization copying diff_gaussian_rasterizationinit.py -> build\lib.win-amd64-cpython-39\diff_gaussian_rasterization running build_ext C:\Users\PC\anaconda3\envs\LucidDreamer\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') error: [WinError 2] The system cannot find the file specified [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization ERROR: Could not build wheels for diff-gaussian-rasterization, which is required to install pyproject.toml-based projects

I encountered the same problem, has it been solved? I also installed two dependencies when running 3D gauss splatting, but they installed without any issues.

SweetCone1 commented 10 months ago

@YixunLiang

AbnerVictor commented 10 months ago

Thanks that worked, though I have a new error now (cuda 10.2 is installed to the proper directory) Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [14 lines of output] No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2' running bdist_wheel C:\Users\PC\anaconda3\envs\LucidDreamer\lib\site-packages\torch\utils\cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\diff_gaussian_rasterization copying diff_gaussian_rasterizationinit.py -> build\lib.win-amd64-cpython-39\diff_gaussian_rasterization running build_ext C:\Users\PC\anaconda3\envs\LucidDreamer\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') error: [WinError 2] The system cannot find the file specified [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization ERROR: Could not build wheels for diff-gaussian-rasterization, which is required to install pyproject.toml-based projects

I encountered the same problem, has it been solved? I also installed two dependencies when running 3D gauss splatting, but they installed without any issues.

Hi, your error indicates that there might be some problem with ninja, you may install ninja first.