threestudio-project / threestudio

A unified framework for 3D content generation.
Apache License 2.0
6.18k stars 474 forks source link

Windows Support #54

Open sekkit opened 1 year ago

sekkit commented 1 year ago

Since im using UE5 in Windows, it's cool if threestudio could run under Windows.

mischaschaub commented 1 year ago

YES YES YES, this would be awfully great!

thuliu-yt16 commented 1 year ago

Maybe you could first try WSL. The objective of threestudio now is to integrate most methods, so supporting new platform is of low priority.

mischaschaub commented 1 year ago

Exactly, this would be so helpful. There is a whole group of VoC users and many of their best people tried ot compile the WSL, but no chance. It would be ever so helpful if you could create such a file.

claforte commented 1 year ago

I think all core researchers are using Linux. If you want Windows support, I recommend you try to do it yourselves.

shinya7y commented 1 year ago

I have installed threestudio with WSL2. I hope you find the following article helpful. Translation in Chrome generally works. https://zenn.dev/shinya7y/articles/threestudio-prolificdreamer

shengyu-meng commented 1 year ago

I have installed threestudio with WSL2. I hope you find the following article helpful. Translation in Chrome generally works. https://zenn.dev/shinya7y/articles/threestudio-prolificdreamer

I followed your guide and succeed! But sadly WSL2 only support OpenGL early than 4.1, so some main features, such as Fantasia3D / mesh exporter don't work😥.

thuliu-yt16 commented 1 year ago

Hi @shengyu-meng, it is very nice!

I guess for the mesh exporter, you can use the cuda context_type if opengl is uncompatible.

shengyu-meng commented 1 year ago

Hi @shengyu-meng, it is very nice!

I guess for the mesh exporter, you can use the cuda context_type if opengl is uncompatible.

Thanks for your suggestion! So is it any chance to run Fantasia3D without openGL? 🥰

IhnoL commented 11 months ago

I used the docker method inside of WSL2 which seems to work. The exported meshes looked not so great, maybe due to the cuda exporter instead of opengl. I did not test Fantasia3D.

Docker and Nvidia Container Toolkit need to be installed: https://docs.nvidia.com/cuda/wsl-user-guide/index.html

OmidGhotbi commented 7 months ago

It is working with no issue on Windows, I managed to install it directly in Windows as well as using WSL you can use this tutorial for WSL installation https://www.youtube.com/watch?v=jaRr5W80N8E the process is almost the same for Windows directly. i used cmd python 3.10 Pytorch 2.2.0 cuda 12.1 Visual Studio 2019 or 2022 build tools, vc++ runtime should be installed, now you need to install cuda toolkit from the Nvidia website and use the same version of cuda 12.1 now you need to set venv like this "python -m venv .venv" then inside venv go to "cd /d C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build" and run "vcvars64.bat" then get back to threestudio folder and "set DISTUTILS_USE_SDK=1", install Pytorch 2.2.0 for cuda 121"pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121" now install requirements pip install -r requirements.txt and that's all. Good luck.