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

Notes about compiling the dependencies #5

Closed
doctorpangloss opened this issue Jan 26, 2024 · 3 comments
Closed

Notes about compiling the dependencies #5

doctorpangloss opened this issue Jan 26, 2024 · 3 comments

Comments

@doctorpangloss
Copy link

doctorpangloss commented Jan 26, 2024

These instructions can be adapted to compile your requirements and avoid using miniconda on Windows.

# using git bash for the sake of simplicity
# enable developer mode
# google this: allow os.symlink on windows by adding your username to the local security policy entry for it.
# you will have to restart your computer
# install chocolatey using powershell, then install the prereqs for compilation on Windows
choco install -y visualstudio2022buildtools
choco install -y visualstudio2022-workload-vctools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset --add Microsoft.VisualStudio.Component.VC.Llvm.Clang"
choco install -y cuda

# now clone threestudio
git clone git@github.com:threestudio-project/threestudio.git
cd threestudio/
python -m venv venv
source venv/scripts/activate
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
# include missing dependencies from their repo
pip install ninja wheel mediapipe
pip install -r requirements.txt --no-build-isolation
# you will watch nerfacc and tiny-cuda compile for a while
# download stable_zero123.ckpt from https://huggingface.co/stabilityai/stable-zero123 and put it into ./load/zero123
# run. modify your configs/stable-zero123.yaml data.random_camera.batch_size, trainer.precision and trainer.gradient_accumulation_steps for much better performance
python launch.py --config configs/stable-zero123.yaml --train --gpu 0 data.image_path=./load/images/hamburger_rgba.png
@MrForExample
Copy link
Owner

Thanks friend.
So from what I can tell, this is a windows only solution, and basically using one package manager (Chocolatey) to replace another (Miniconda).
But still, thanks for a different solution, I'll add it into install guide soon since some user may find this solution helpful :)
Cheers 👍

@doctorpangloss
Copy link
Author

doctorpangloss commented Jan 27, 2024

Thanks friend.

So from what I can tell, this is a windows only solution, and basically using one package manager (Chocolatey) to replace another (Miniconda).

But still, thanks for a different solution, I'll add it into install guide soon since some user may find this solution helpful :)

Cheers 👍

lol okay good point. But installing visual studio via its setup is really complicated. This would all work with the embedded Python.

chocolatey is comparable to apt not miniconda. Overall blame Microsoft.

@ZZXYWQ
Copy link

ZZXYWQ commented May 17, 2024

where I build this venv

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

3 participants