Comments (11)
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.
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.
When you say main nerfstudio folder, do you mean: \anaconda3\envs\nerfstudio\Lib\site-packages\nerfstudio ?
I installed nerfstudio using pip.
from nerfstudio.
No, it was just the nerfstudio folder where your training data is hosted. So for me it's just user/name/nerfstudio
from nerfstudio.
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.
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.
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.
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.
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.
is this issue resolved please share the solution
from nerfstudio.
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)
- nerfstudio reinstall torch
- Nerfecto Multi gpu support on Windows
- gsplat mcmc windows dataset load error HOT 1
- cant connect to https://viewer.nerf.studio/ HOT 2
- Cannot train train with splatfacto-w HOT 1
- ERROR: Failed to build installable wheels for some pyproject.toml based projects (gsplat) HOT 3
- How can I view the same Eval Image based on Iteration using Wandb?
- AttributeError: module 'gsplat_cuda' has no attribute 'fully_fused_projection_fwd'
- Problem installing Gsplat and tinnycuda-nn could not find ninja HOT 7
- SHEncoding seems wrong for torch implementation HOT 1
- SQLite error: database disk image is malformed
- Issue rendering splatfacto with ns-render, assertion error
- about gsplat aabb
- view gaussian elipsoid
- ns-train complains of NaNs in PLY points 3d file HOT 4
- Camera_path is empty. Generate a camera_path.json to render a Video without using Viewer! HOT 2
- Metashape data processing doesn't use adjusted camera calibration parameters
- Support Gaussian splatting for Turntable captures HOT 6
- R,G,B, sigma values from the nerf
- Documentation for building docker image is outdated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nerfstudio.