-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Mac Installation Instructions? #2438
Comments
For mac, just run |
I have a M2 Mac on Ventura 13.4.1. I could not install nerfstudio using
Any ideas how to solve this? Thanks. |
Maybe this is helpful? https://stackoverflow.com/questions/30445428/cant-install-pyav-on-mac-pkg-config-is-required |
I'm actually getting another error when I try to use custom data.
Is there a workaround for this issue? Edit to add: my Mac is also M2 on Ventura 13.4. I've previously had no success using NeRFStudio Google Colab, and don't have access to a PC, so I'm really hoping to get some clarity on how to run it on my Mac. Thank you so much! |
For reference, I had the same
No clue where to go from here. @LuyuanPeng did you ever find a solution? Any help would be appreciated. |
Yes, I managed to get it work by commenting out sections where |
Now I can get it to install, and using the training command from #2436 I got past a That command is: But then I got this error: Implementing the change to trainer.py from #2436 fixed that. But now I get this error, not sure what to do:
Ok I actually managed to get past that by adding Edit: never mind, I spoke too soon. It seemed to be working, then froze after 31 steps with just |
Hi, would it be possible to run with the env variables TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 set and post the output? |
Today I could get it to run for a few dozen steps until it crashed. Here is the output: output.log The exact command I ran: For some reason the progress wasn't showing when I outputted it to a file (by calling with with
|
@jkulhanek Oh and I forgot to mention, once it crashes, the nerfstudio viewer then says "Renderer Disconnected" and there is no more output to the console, but there remains a |
Hello, just to chime in and bump this thread. I reached now exactly the same error and don't know how to continue as well.
I successfully installed PyTorch with Metal support and TensorFlow with Metal Plugin (MPS). Testing scripts work.
Cheers! |
@audiocommander I finally got it working by following the instructions on this page to install from source: https://docs.nerf.studio/quickstart/installation.html (skipping cuda, tinycudann, and installing the non "+cu118" versions of pytorch/torchvision). So:
|
Yeah, that didn't work here on an M3 running Sonoma. :( First, instructions above assume one has "conda" installed. I don't. I installed Miniconda. Some dependencies needed Python 3.9, so the "3.8" did not work. I ended up using 3.11 (which I already have installed) instead. Then Then I went down a rabbit hole based on this thread of trying to compile Open3D locally. That then led to variations of this error. Finally gave up. Somewhere along the way (can't remember when) I had to brew install a FORTRAN(?!!?) compiler. Sheesh. Haven't seen that language in 20-30 years. |
I think we can make open3d a soft dependency. It is only needed for export. |
@jonahclarsen this worked for me! w/ a M3. |
@jonahclarsen the installation worked for me as well, I used the versions from https://github.com/nerfstudio-project/nerfstudio/blob/main/docs/quickstart/installation.md#dependencies for a more recent setup. I had to install Open3D which was not found when using python 3.12, but on 3.11 was installed no problems. Also, had to downgrade Numpy to <2.0.0. I think that was it. I could now train the model without errors, but unfortunately the output seems to not work. The viewer shows the camera angles, but there is no model rescontruction, just a blurry background after 2000 iterations. Doing more is painful because the support for MPS is still very lacking, but the same number of iterations provides an acceptable model using OpenSplat, so I am not sure what is the problem. |
@jonahclarsen 's solution didn't work for me on M1. I got (again) the numpy 2 error so changed it to
but I am now getting hit with the cuda error:
Fairly annoying :( will try to spend more time on it |
So, it turns out that the install actually works. It's just that the commands (in particular
it runs (but takes ages on my M1 for the poster) I'll do MRs to improve the documentation and the default parameters. |
Hi! I saw on this link that NeRFStudio is now compatible with MacBooks which have M1/M2 chips. I'm wondering if the instructions for installation are the same as the PC ones, or whether there's a separate set of instructions for Mac installation available somewhere else. Additionally, are there Docker images for Mac?
Thank you so much!
The text was updated successfully, but these errors were encountered: