Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Well done Microsoft, where should I get refund of Windows OS #8

Closed
nitinmukesh opened this issue Dec 6, 2024 · 20 comments
Closed

Well done Microsoft, where should I get refund of Windows OS #8

nitinmukesh opened this issue Dec 6, 2024 · 20 comments

Comments

@nitinmukesh
Copy link

Prerequisites
Linux is recommended for running the code. The code is not tested on other platforms.

Well done. And we stupid Windows users are paying money to Microsoft for Windows OS. We should rather switch to Linux.

@andrew-downey
Copy link

This is a research paper, not consumer software. It's cutting edge and pushing the limits of what we as humanity can achieve. You are not being helpful.

@YuDeng
Copy link
Contributor

YuDeng commented Dec 6, 2024

Prerequisites
Linux is recommended for running the code. The code is not tested on other platforms.

Well done. And we stupid Windows users are paying money to Microsoft for Windows OS. We should rather switch to Linux.

Hi, thanks for your interest in this project.

This repository was initiated from a research prototype. Some of its dependencies are built only for Linux and is not designed to be compatible with various platforms. Currently, we may not be able to devote much effort to make it compatible with the Windows platform, but we will continue to look for solutions. For now, you can try using the Hugging Face demo provided in the repo for testing. We apologize for this inconvenience.

@dr-vij
Copy link

dr-vij commented Dec 6, 2024

Fantastic work!

@iiiytn1k
Copy link

iiiytn1k commented Dec 6, 2024

Just launched this project natively on Windows (without using WSL) with CUDA 12.4, pytorch 2.5.1 and flash_attn 2.7.1. It works perfectly without any issues.
With RTX 4090 i got sampling ~10.5 it/s for stage 1 and ~8 it/s for stage 2. VRAM usage ~16 Gb.

@PsiClone99
Copy link

@iiiytn1k Can U please share us the steps/ or what dependencies u installed?

@sdbds
Copy link

sdbds commented Dec 6, 2024

I spent 2 hours compiling all the libraries needed on Windows and writing the automatic installation code, and tested it on the 4090.
#10

@nitinmukesh
Copy link
Author

This is a research paper, not consumer software. It's cutting edge and pushing the limits of what we as humanity can achieve. You are not being helpful.

Doesn't matter if it's a research paper or consumer software. Microsoft supported projects MUST work on Windows and that should be their GOAL.

@iiiytn1k
Copy link

iiiytn1k commented Dec 6, 2024

@PsiClone99

git clone --recurse-submodules https://github.com/microsoft/TRELLIS.git
cd TRELLIS
conda create -n trellis python=3.10
conda activate trellis 

pip install torch==2.5.1 torchvision --index-url=https://download.pytorch.org/whl/cu124
pip install xformers==0.0.28.post3 --index-url=https://download.pytorch.org/whl/cu124
pip install pillow imageio imageio-ffmpeg tqdm easydict opencv-python-headless scipy ninja rembg onnxruntime trimesh xatlas pyvista pymeshfix igraph transformers
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
pip install https://github.com/bdashore3/flash-attention/releases/download/v2.7.1.post1/flash_attn-2.7.1.post1+cu124torch2.5.1cxx11abiFALSE-cp310-cp310-win_amd64.whl
pip install kaolin -f https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.5.1_cu124.html

git clone https://github.com/NVlabs/nvdiffrast.git ./tmp/extensions/nvdiffrast
pip install ./tmp/extensions/nvdiffrast

git clone --recurse-submodules https://github.com/JeffreyXiang/diffoctreerast.git ./tmp/extensions/diffoctreerast
pip install ./tmp/extensions/diffoctreerast

git clone https://github.com/autonomousvision/mip-splatting.git ./tmp/extensions/mip-splatting
pip install ./tmp/extensions/mip-splatting/submodules/diff-gaussian-rasterization/

xcopy /E /H .\extensions\vox2seq\ .\tmp\extensions\vox2seq\
pip install ./tmp/extensions/vox2seq

pip install spconv-cu120
pip install gradio==4.44.1 gradio_litmodel3d==0.0.1

set ATTN_BACKEND=flash-attn
set SPCONV_ALGO=native
python ./app.py

@Cubey42
Copy link

Cubey42 commented Dec 6, 2024

@PsiClone99

git clone --recurse-submodules https://github.com/microsoft/TRELLIS.git
cd TRELLIS
conda create -n trellis python=3.10
conda activate trellis 

pip install torch==2.5.1 torchvision --index-url=https://download.pytorch.org/whl/cu124
pip install xformers==0.0.28.post3 --index-url=https://download.pytorch.org/whl/cu124
pip install pillow imageio imageio-ffmpeg tqdm easydict opencv-python-headless scipy ninja rembg onnxruntime trimesh xatlas pyvista pymeshfix igraph transformers
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
pip install https://github.com/bdashore3/flash-attention/releases/download/v2.7.1.post1/flash_attn-2.7.1.post1+cu124torch2.5.1cxx11abiFALSE-cp310-cp310-win_amd64.whl
pip install kaolin -f https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.5.1_cu124.html

git clone https://github.com/NVlabs/nvdiffrast.git ./tmp/extensions/nvdiffrast
pip install ./tmp/extensions/nvdiffrast

git clone --recurse-submodules https://github.com/JeffreyXiang/diffoctreerast.git ./tmp/extensions/diffoctreerast
pip install ./tmp/extensions/diffoctreerast

git clone https://github.com/autonomousvision/mip-splatting.git ./tmp/extensions/mip-splatting
pip install ./tmp/extensions/mip-splatting/submodules/diff-gaussian-rasterization/

cp -r ./extensions/vox2seq ./tmp/extensions/vox2seq
pip install ./tmp/extensions/vox2seq

pip install spconv-cu120
pip install gradio==4.44.1 gradio_litmodel3d==0.0.1

set ATTN_BACKEND=flash-attn
set SPCONV_ALGO=native
python ./app.py

other than the cp -r command which I just did manually, but worked, thank you.

@BorisP-dot-Dev
Copy link

This is a research paper, not consumer software. It's cutting edge and pushing the limits of what we as humanity can achieve. You are not being helpful.

Doesn't matter if it's a research paper or consumer software. Microsoft supported projects MUST work on Windows and that should be their GOAL.

I agree here. I don't even want to touch this garbage (I mean Linux), and under the only stable Windows 11 IoT LTSC even these scripts above DO NOT work. Horrible experience.

@astralmedia
Copy link

This is a research paper, not consumer software. It's cutting edge and pushing the limits of what we as humanity can achieve. You are not being helpful.

Doesn't matter if it's a research paper or consumer software. Microsoft supported projects MUST work on Windows and that should be their GOAL.

This sort of entitled rudeness does not belong on an open source repo that someone is giving away for free.

@BorisP-dot-Dev
Copy link

BorisP-dot-Dev commented Dec 9, 2024

This is a research paper, not consumer software. It's cutting edge and pushing the limits of what we as humanity can achieve. You are not being helpful.

Doesn't matter if it's a research paper or consumer software. Microsoft supported projects MUST work on Windows and that should be their GOAL.

This sort of entitled rudeness does not belong on an open source repo that someone is giving away for free.

I agree with this, it was very rude to ask Microsoft to make a patch-fix for Windows, because the poor developer in the amount of 1 piece tried for so long to make it for everyone on Linux for free.
P.S. open source and free are slightly different things, sometimes they can be used together, but not in this case.
P.P.S. patch-fix has already been made by 1 developer in 2 days of his free time. What was the problem in making it for the staff of developers of this project.. I have no idea.

@astralmedia
Copy link

This is a research paper, not consumer software. It's cutting edge and pushing the limits of what we as humanity can achieve. You are not being helpful.

Doesn't matter if it's a research paper or consumer software. Microsoft supported projects MUST work on Windows and that should be their GOAL.

This sort of entitled rudeness does not belong on an open source repo that someone is giving away for free.

I agree with this, it was very rude to ask Microsoft to make a patch-fix for Windows, because the poor developer in the amount of 1 piece tried for so long to make it for everyone on Linux for free. P.S. open source and free are slightly different things, sometimes they can be used together, but not in this case. P.P.S. patch-fix has already been made by 1 developer in 2 days of his free time. What was the problem in making it for the staff of developers of this project.. I have no idea.

Your problems go beyond not knowing how to build wheels on windows

@BorisP-dot-Dev
Copy link

BorisP-dot-Dev commented Dec 9, 2024

Your problems go beyond not knowing how to build wheels on windows

No linux no problem :)

@astralmedia
Copy link

Your problems go beyond not knowing how to build wheels on windows

No linux no problem :)

done blowing up the trellis issues, but if you ask nicely for help instead of being rude and assuming, you will have much better luck getting the help you need. No one wants to help after being insulted.

@BorisP-dot-Dev
Copy link

No one wants to help after being insulted.
Your problems go beyond

I'm fine, fortunately there are still hard workers who can do it quickly and without this "compile everything from scratch in an hour to run it once".

@nitinmukesh
Copy link
Author

nitinmukesh commented Dec 9, 2024

It's funny to see these stupid comments.
The original comment was meant for Microsoft not for developers, read carefully. No disrespect was meant for developers but Microsoft organization. They are using money earned by selling Windows and they are not supporting their own OS for AI.
This is not the first project which was meant for Linux ( one of them is deepspeed). people were asking for Windows support for years and after some made harsh comments they finally started supporting Windows (Windows wheels are now available officially)

Before commenting understand the message and meant for whom. The message is meant for Microsoft so they start caring for the users who are paying them for Windows OS and the least they could do is start supporting their projects on Windows.

@gyrichjames
Copy link

gyrichjames commented Dec 19, 2024

@iiiytn1k and any others who can help.

Hello,

I'm relatively new to all of this but I was able to get Trellis for Windows installed and sort of working using the instructions at #8 (comment)

I can load Trellis in Powershell by running 'C:\Windows\System32\trellis\python ./app.py', and then I go to 127.0.0.1:7860 to access the web interface.

The problem I'm having is, any time I generate, it throws an error saying the following in Powershell:

ModuleNotFoundError: No module named 'diff_gaussian_rasterization'

Can anyone please advise in layman's terms what I need to do to resolve?

It does seem that the gaussian splatting was supposed to be installed at this step:

"git clone https://github.com/autonomousvision/mip-splatting.git ./tmp/extensions/mip-splatting
pip install ./tmp/extensions/mip-splatting/submodules/diff-gaussian-rasterization/"

So I tried to redo that step in Powershell, the 'git clone' line said "fatal: destination path './tmp/extensions/mip-splatting' already exists and is not an empty directory."

The pip install line threw the following error:

PS C:\WINDOWS\system32> pip install ./tmp/extensions/mip-splatting/submodules/diff-gaussian-rasterization/
Processing c:\windows\system32\tmp\extensions\mip-splatting\submodules\diff-gaussian-rasterization
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for diff-gaussian-rasterization, since package 'wheel' is not installed.
Installing collected packages: diff-gaussian-rasterization
Running setup.py install for diff-gaussian-rasterization ... error
error: subprocess-exited-with-error

× Running setup.py install for diff-gaussian-rasterization did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
running install
C:\Users\gyric\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\diff_gaussian_rasterization
copying diff_gaussian_rasterization_init_.py -> build\lib.win-amd64-cpython-310\diff_gaussian_rasterization
running build_ext
C:\Users\gyric\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\cpp_extension.py:382: 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}')
building 'diff_gaussian_rasterization._C' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> diff-gaussian-rasterization

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Thanks for any help.

@MrMxyzptlk
Copy link

@PsiClone99

git clone --recurse-submodules https://github.com/microsoft/TRELLIS.git
cd TRELLIS
conda create -n trellis python=3.10
conda activate trellis 

pip install torch==2.5.1 torchvision --index-url=https://download.pytorch.org/whl/cu124
pip install xformers==0.0.28.post3 --index-url=https://download.pytorch.org/whl/cu124
pip install pillow imageio imageio-ffmpeg tqdm easydict opencv-python-headless scipy ninja rembg onnxruntime trimesh xatlas pyvista pymeshfix igraph transformers
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
pip install https://github.com/bdashore3/flash-attention/releases/download/v2.7.1.post1/flash_attn-2.7.1.post1+cu124torch2.5.1cxx11abiFALSE-cp310-cp310-win_amd64.whl
pip install kaolin -f https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.5.1_cu124.html

git clone https://github.com/NVlabs/nvdiffrast.git ./tmp/extensions/nvdiffrast
pip install ./tmp/extensions/nvdiffrast

git clone --recurse-submodules https://github.com/JeffreyXiang/diffoctreerast.git ./tmp/extensions/diffoctreerast
pip install ./tmp/extensions/diffoctreerast

git clone https://github.com/autonomousvision/mip-splatting.git ./tmp/extensions/mip-splatting
pip install ./tmp/extensions/mip-splatting/submodules/diff-gaussian-rasterization/

xcopy /E /H .\extensions\vox2seq\ .\tmp\extensions\vox2seq\
pip install ./tmp/extensions/vox2seq

pip install spconv-cu120
pip install gradio==4.44.1 gradio_litmodel3d==0.0.1

set ATTN_BACKEND=flash-attn
set SPCONV_ALGO=native
python ./app.py

This worked perfectly for me as well; thank you.

@Archviz360
Copy link

i got this error

ERROR: Could not find a version that satisfies the requirement torch==2.5.1 (from versions: 2.6.0+cu124)

[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: No matching distribution found for torch==2.5.1

C:\Users\dacia\Desktop\AI photo\Trellis 3d\TRELLIS>pip install xformers==0.0.28.post3 --index-url=https://download.pytorch.org/whl/cu124
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://download.pytorch.org/whl/cu124
ERROR: Could not find a version that satisfies the requirement xformers==0.0.28.post3 (from versions: none)

[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: No matching distribution found for xformers==0.0.28.post3

C:\Users\dacia\Desktop\AI photo\Trellis 3d\TRELLIS>pip install pillow imageio imageio-ffmpeg tqdm easydict opencv-python-headless scipy ninja rembg onnxruntime trimesh xatlas pyvista pymeshfix igraph transformers
Defaulting to user installation because normal site-packages is not writeable
Collecting pillow
Downloading pillow-11.1.0-cp313-cp313-win_amd64.whl.metadata (9.3 kB)
Collecting imageio
Downloading imageio-2.37.0-py3-none-any.whl.metadata (5.2 kB)
Collecting imageio-ffmpeg
Using cached imageio_ffmpeg-0.6.0-py3-none-win_amd64.whl.metadata (1.5 kB)
Collecting tqdm
Using cached tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)
Collecting easydict
Using cached easydict-1.13-py3-none-any.whl.metadata (4.2 kB)
Collecting opencv-python-headless
Downloading opencv_python_headless-4.11.0.86-cp37-abi3-win_amd64.whl.metadata (20 kB)
Collecting scipy
Downloading scipy-1.15.1-cp313-cp313-win_amd64.whl.metadata (60 kB)
Collecting ninja
Downloading ninja-1.11.1.3-py3-none-win_amd64.whl.metadata (5.3 kB)
ERROR: Ignored the following versions that require a different python version: 1.10.0 Requires-Python <3.12,>=3.8; 1.10.0rc1 Requires-Python <3.12,>=3.8; 1.10.0rc2 Requires-Python <3.12,>=3.8; 1.10.1 Requires-Python <3.12,>=3.8; 1.11.0 Requires-Python <3.13,>=3.9; 1.11.0rc1 Requires-Python <3.13,>=3.9; 1.11.0rc2 Requires-Python <3.13,>=3.9; 1.11.1 Requires-Python <3.13,>=3.9; 1.11.2 Requires-Python <3.13,>=3.9; 1.11.3 Requires-Python <3.13,>=3.9; 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 1.9.0 Requires-Python >=3.8,<3.12; 1.9.0rc1 Requires-Python >=3.8,<3.12; 1.9.0rc2 Requires-Python >=3.8,<3.12; 1.9.0rc3 Requires-Python >=3.8,<3.12; 1.9.1 Requires-Python >=3.8,<3.12; 2.0.28 Requires-Python >3.7, <3.11; 2.0.29 Requires-Python >3.7, <3.11; 2.0.30 Requires-Python >3.7, <3.11; 2.0.31 Requires-Python >3.7, <3.11; 2.0.32 Requires-Python >3.7, <3.11; 2.0.33 Requires-Python >3.7, <3.11; 2.0.34 Requires-Python >3.7, <3.11; 2.0.35 Requires-Python >3.7, <3.11; 2.0.36 Requires-Python >3.7, <3.11; 2.0.37 Requires-Python >3.7, <3.11; 2.0.38 Requires-Python >3.7, <3.11; 2.0.39 Requires-Python >3.7, <3.11; 2.0.40 Requires-Python >3.7, <3.11; 2.0.41 Requires-Python >=3.8, <3.12; 2.0.43 Requires-Python >=3.8, <3.12; 2.0.44 Requires-Python >=3.8, <3.12; 2.0.45 Requires-Python >=3.8, <3.12; 2.0.46 Requires-Python >=3.8, <3.12; 2.0.47 Requires-Python >=3.8, <3.12; 2.0.48 Requires-Python >=3.8, <3.12; 2.0.49 Requires-Python >=3.8, <3.12; 2.0.50 Requires-Python >=3.8, <3.12; 2.0.51 Requires-Python >=3.8, <3.12; 2.0.52 Requires-Python >=3.8, <3.12; 2.0.53 Requires-Python >=3.8, <3.12; 2.0.54 Requires-Python >=3.8, <3.12; 2.0.55 Requires-Python >=3.8, <3.13; 2.0.56 Requires-Python >=3.8, <3.13; 2.0.57 Requires-Python <3.13,>=3.8; 2.0.58 Requires-Python <3.13,>=3.8; 2.0.59 Requires-Python <3.13,>=3.8; 2.0.60 Requires-Python <3.13,>=3.8; 2.0.61 Requires-Python <3.13,>=3.8
ERROR: Could not find a version that satisfies the requirement rembg (from versions: none)

[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: No matching distribution found for rembg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests