Code Monkey home page Code Monkey logo

Comments (11)

Jing1Ling avatar Jing1Ling commented on September 26, 2024 1

unfortunately that doesn't work for me either.. it's failing when i pip install ./extensions/cuda

`Processing c:\apps\zipnerf-pytorch\extensions\cuda Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [12 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Apps\zipnerf-pytorch\extensions\cuda\setup.py", line 35, in CUDAExtension( File "C:\Users\micro\anaconda3\envs\zipnerf\lib\site-packages\torch\utils\cpp_extension.py", line 1074, in CUDAExtension library_dirs += library_paths(cuda=True) File "C:\Users\micro\anaconda3\envs\zipnerf\lib\site-packages\torch\utils\cpp_extension.py", line 1208, in library_paths paths.append(_join_cuda_home(lib_dir)) File "C:\Users\micro\anaconda3\envs\zipnerf\lib\site-packages\torch\utils\cpp_extension.py", line 2407, in _join_cuda_home raise OSError('CUDA_HOME environment variable is not set. ' OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.`

@sblat021 'CUDA_HOME environment variable is not set'. It seems that the CUDA environment variables are not set correctly. Does the following command return true when you execute it?
import torch
torch.cuda.is_available()

from nerfstudio.

michaelrubloff avatar michaelrubloff commented on September 26, 2024

I actually know how to fix this! I had this exact issue. I ended up cloning the original pytorch-Zipnerf's repository and that 360config file was in there. I just dropped it into the main nerfstudio folder and it started working.

I also was running into an error where it was looking for the sparse set within COLMAP and I fixed that error by simply just copying the sparse folder from within the COLMAP folder from the dataset I was trying to train and that fixed that issue too

from nerfstudio.

sblat021 avatar sblat021 commented on September 26, 2024

When you say main nerfstudio folder, do you mean: \anaconda3\envs\nerfstudio\Lib\site-packages\nerfstudio ?
I installed nerfstudio using pip.

from nerfstudio.

michaelrubloff avatar michaelrubloff commented on September 26, 2024

No, it was just the nerfstudio folder where your training data is hosted. So for me it's just user/name/nerfstudio

from nerfstudio.

ichsan2895 avatar ichsan2895 commented on September 26, 2024

Seems bug..
I follow this way from zipnerf-pytorch's website, and it works out of box.

pip install nerfstudio==1.0.1

cd zipnerf-pytorch
git clone https://github.com/SuLvXiangXin/zipnerf-pytorch.git
pip install ./extensions/cuda
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.0.0+${CUDA}.html

pip install -e . 
ns-install-cli

Note: I use Nerfstudio v1.0.1 which have not yet merged between zipnerf-pytorch and nerfstudio

from nerfstudio.

sblat021 avatar sblat021 commented on September 26, 2024

unfortunately that doesn't work for me either.. it's failing when i pip install ./extensions/cuda

`Processing c:\apps\zipnerf-pytorch\extensions\cuda
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Apps\zipnerf-pytorch\extensions\cuda\setup.py", line 35, in
CUDAExtension(
File "C:\Users\micro\anaconda3\envs\zipnerf\lib\site-packages\torch\utils\cpp_extension.py", line 1074, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "C:\Users\micro\anaconda3\envs\zipnerf\lib\site-packages\torch\utils\cpp_extension.py", line 1208, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "C:\Users\micro\anaconda3\envs\zipnerf\lib\site-packages\torch\utils\cpp_extension.py", line 2407, in _join_cuda_home
raise OSError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`

from nerfstudio.

yggdrasil-917 avatar yggdrasil-917 commented on September 26, 2024

Anyone gotten this to work recently? I've been having similar issues setting this up on both Windows and Linux. Even zipnerf-pytorch project is failing for me on the same step as mentioned above. Any ideas or insights would be appreciated.

from nerfstudio.

Renbry avatar Renbry commented on September 26, 2024

Now with Nerfstudio v1.0.2 I have a different issue than mentioned -
Run : ns-train zipnerf
It asks if I want to install the package, Yes.

Errors out on several Windows machines with :

ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Users\renbr\anaconda3\envs\nerfstudio\Lib\site-packages\cv2\cv2.pyd'
Consider using the --user option or check the permissions.

Error installing method.

Anyone know what to try next ? it's a fresh install (1hr old!) and happens across all my windows machines.

from nerfstudio.

tosemfdk avatar tosemfdk commented on September 26, 2024

there is another method just make colmap output( sparse data) using nerfstudio's processed data (transform.json) check out here NVlabs/instant-ngp#1080

from nerfstudio.

sumanttyagi avatar sumanttyagi commented on September 26, 2024

is this issue resolved please share the solution

from nerfstudio.

ichsan2895 avatar ichsan2895 commented on September 26, 2024

is this issue resolved please share the solution

Have you try this way? It works with Linux. I never test on Windows

pip install nerfstudio==1.0.3
pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch

git clone https://github.com/SuLvXiangXin/zipnerf-pytorch.git
cd zipnerf-pytorch
pip install ./extensions/cuda
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.0.0+${CUDA}.html

pip install -e . 
ns-install-cli

Then you will able to run this command

ns-train zipnerf nerfstudio-data --data path/to/your/data

from nerfstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.