nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
9.55k stars 1.3k forks source link

ns command not working #837

Closed WolfGamer2 closed 2 years ago

WolfGamer2 commented 2 years ago

how to run ns command

fuzRodahh commented 2 years ago

i have the same problem

Tobe2d commented 2 years ago

looks like the instructions are mixed with linux

tancik commented 2 years ago

Here are instructions for getting to the windows terminal (where you enter the ns commands) - https://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/#:~:text=Press%20Win%20%2B%20R%20to%20open,PowerShell%20or%20Windows%20Terminal%20instead.

WolfGamer2 commented 2 years ago

I know how to get to cmd. Should i run all commands in linux cmd

fuzRodahh commented 2 years ago

Here are instructions for getting to the windows terminal (where you enter the ns commands) - https://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/#:~:text=Press%20Win%20%2B%20R%20to%20open,PowerShell%20or%20Windows%20Terminal%20instead.

why you showing us how to get cmd??

tancik commented 2 years ago

Hi, sorry I misunderstood the question. Do you mind explaining what you have tried and what errors you are receiving? I haven't used windows in over a decade so I am probably missing some of the subtleties. You should be able to run directly in windows, windows subsystem linux shouldn't be necessary. Maybe @terrancewang can chime in with how he runs training as he as been developing with windows.

WolfGamer2 commented 2 years ago

I can download everything, but when I am running the blender ns commands, errors come that ns is not a valid command. How am I supposed to finish the installation?

On Wed, Oct 26, 2022 at 10:41 PM Matthew Tancik @.***> wrote:

Hi, sorry I misunderstood the question. Do you mind explaining what you have tried and what errors you are receiving? I haven't used windows in over a decade so I am probably missing some of the subtleties. You should be able to run directly in windows, windows subsystem linux shouldn't be necessary. Maybe @terrancewang https://github.com/terrancewang can chime in with how he runs training as he as been developing with windows.

— Reply to this email directly, view it on GitHub https://github.com/nerfstudio-project/nerfstudio/issues/837#issuecomment-1293022086, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAA2XSJ6QQLJ5R43VKWUQTWFIIXPANCNFSM6AAAAAAROPHE24 . You are receiving this because you authored the thread.Message ID: @.***>

tancik commented 2 years ago

Have you installed with pip install nerfstudio?

WolfGamer2 commented 2 years ago

yes

On Thu, Oct 27, 2022 at 7:04 PM Matthew Tancik @.***> wrote:

Have you installed with pip install nerfstudio?

— Reply to this email directly, view it on GitHub https://github.com/nerfstudio-project/nerfstudio/issues/837#issuecomment-1294342731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAA2XWLUH4SQJU73W2RBPDWFMYB7ANCNFSM6AAAAAAROPHE24 . You are receiving this because you authored the thread.Message ID: @.***>

tancik commented 2 years ago

Can you post the output to the following two commands, pip list And ns-train --help

fuzRodahh commented 2 years ago

Can you post the output to the following two commands, pip list And ns-train --help

'ns-train' is not recognized as an internal or external command, operable program or batch file.

tancik commented 2 years ago

What is the output to pip list?

WolfGamer2 commented 2 years ago

[image: image.png]

On Fri, Oct 28, 2022 at 2:27 AM Matthew Tancik @.***> wrote:

What is the output to pip list?

— Reply to this email directly, view it on GitHub https://github.com/nerfstudio-project/nerfstudio/issues/837#issuecomment-1294759204, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAA2XVJH7YY2DNHKLMAOO3WFOMBJANCNFSM6AAAAAAROPHE24 . You are receiving this because you authored the thread.Message ID: @.***>

tancik commented 2 years ago

@WolfGamer2 It doesn't seem like your image was properly linked.

WolfGamer2 commented 2 years ago

Please check now.

On Fri, Oct 28, 2022 at 7:38 PM Matthew Tancik @.***> wrote:

@WolfGamer2 https://github.com/WolfGamer2 It doesn't seem like your image was properly linked.

— Reply to this email directly, view it on GitHub https://github.com/nerfstudio-project/nerfstudio/issues/837#issuecomment-1295696502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAA2XTIQBKONZ4KF5WNJODWFSE3PANCNFSM6AAAAAAROPHE24 . You are receiving this because you were mentioned.Message ID: @.***>

tancik commented 2 years ago

I still only see [image: image.png] Can you copy and paste the text output?

WolfGamer2 commented 2 years ago

Here - Screenshot 2022-10-28 194105

WolfGamer2 commented 2 years ago

no ns command

tancik commented 2 years ago

That list should include nerfstudio. Since it doesn't it means that nerfstudio was not successfully installed. Can you paste the output to pip install nerfstudio.

WolfGamer2 commented 2 years ago

Ok, I will do that.

On Sat, Oct 29, 2022 at 12:18 PM Matthew Tancik @.***> wrote:

That list should include nerfstudio. Since it doesn't it means that nerfstudio was not successfully installed. Can you paste the output to pip install nerfstudio.

— Reply to this email directly, view it on GitHub https://github.com/nerfstudio-project/nerfstudio/issues/837#issuecomment-1295943358, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAA2XUORCKENFADMCRPCXDWFVZ6RANCNFSM6AAAAAAROPHE24 . You are receiving this because you were mentioned.Message ID: @.***>

fuzRodahh commented 2 years ago

That list should include nerfstudio. Since it doesn't it means that nerfstudio was not successfully installed. Can you paste the output to pip install nerfstudio.

im already have nerfstudio, but still cant do ns command

tancik commented 2 years ago

@fuzRodahh Can you run python in the command prompt. Then run import nerfstudio and see if there are any errors.

fuzRodahh commented 2 years ago

i can , and no error

fuzRodahh commented 2 years ago

@fuzRodahh Can you run python in the command prompt. Then run import nerfstudio and see if there are any errors.

i think @Tobe2d was right, it mixed with linux tutorial

tancik commented 2 years ago

Hmm, I'm at a bit of a loss. It seems like this must be an issue with your particular windows setup. Maybe try installing from from source.

pip uninstall nerfstudio
git clone https://github.com/nerfstudio-project/nerfstudio.git
cd nerfstudio
pip install --upgrade pip setuptools
pip install -e .
WolfGamer2 commented 2 years ago

same I can run it and no errors

On Sun, Oct 30, 2022 at 8:25 PM Matthew Tancik @.***> wrote:

@fuzRodahh https://github.com/fuzRodahh Can you run python in the command prompt. Then run import nerfstudio and see if there are any errors.

— Reply to this email directly, view it on GitHub https://github.com/nerfstudio-project/nerfstudio/issues/837#issuecomment-1296489348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAA2XUUNGUCV5J37DQB5U3WF43ZJANCNFSM6AAAAAAROPHE24 . You are receiving this because you were mentioned.Message ID: @.***>

tancik commented 2 years ago

Ok, well if you have the folder downloaded, you can run python scripts/train.py instead of ns-train All the other aliases are listed here https://docs.nerf.studio/en/latest/reference/cli/index.html

terrancewang commented 2 years ago

Hello sorry that the commands aren't working for you :(

I'm working on Windows 10 and usually use Git-Bash instead of powershell, but I just ran through the Quickstart steps on powershell to try to reproduce your error, but I was unable to do so. My best guess is that it has something to do with your setup as well. Hopefully in the meantime you can play with the library by run the scripts directly.

Capture

capture2

WolfGamer2 commented 2 years ago

It is giving me a netifaces error

On Sun, Oct 30, 2022 at 9:22 PM Terrance Wang @.***> wrote:

Hello sorry that the commands aren't working for you :(

I'm working on Windows 10 and usually use Git-Bash instead of powershell, but I just ran through the Quickstart https://github.com/nerfstudio-project/nerfstudio steps on powershell to try to reproduce your error, but I was unable to do so. My best guess is that it has something to do with your setup as well. Hopefully in the meantime you can run the scripts directly.

[image: Capture] https://user-images.githubusercontent.com/19509183/198930557-c30e30d8-a404-46b4-86aa-d8d308a85778.PNG

— Reply to this email directly, view it on GitHub https://github.com/nerfstudio-project/nerfstudio/issues/837#issuecomment-1296522019, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAA2XWUU3RF5SDQGVCOSD3WF5CRXANCNFSM6AAAAAAROPHE24 . You are receiving this because you were mentioned.Message ID: @.***>

tancik commented 2 years ago

@WolfGamer2 can you post the entire error

WolfGamer2 commented 2 years ago

Here - Error

tancik commented 2 years ago

It looks like you need to update Microsoft Visual C++ - https://visualstudio.microsoft.com/visual-cpp-build-tools/

WolfGamer2 commented 2 years ago

Which one should I install - 2 1

tancik commented 2 years ago

I don't think you need any of these extra packages. If it doesn't let you continue without selecting one, try selecting the "Desktop development with C++"

WolfGamer2 commented 2 years ago

Thanks! I got past it but I am getting another driver error. Nvida

WolfGamer2 commented 2 years ago

How do i load images?

tancik commented 2 years ago

@WolfGamer2 Do you have an nvidia GPU? It is required for using nerfstudio. Assuming you do, you will need to install CUDA - https://docs.nvidia.com/cuda/cuda-quick-start-guide/index.html

WolfGamer2 commented 2 years ago

I don't have a NVidia gpu

WolfGamer2 commented 2 years ago

How do I add images to nerfstudio?

tancik commented 2 years ago

Nerfstudio won't work without an nvidia gpu. An alternative is to use colab for compute - https://colab.research.google.com/github/nerfstudio-project/nerfstudio/blob/main/colab/demo.ipynb

WolfGamer2 commented 2 years ago

I do not get how to render video - Render Video Export the camera path from within the viewer, then run this cell. The rendered video should be at renders/output.mp4!

WolfGamer2 commented 2 years ago

How to get camera path.