Files
nerfstudio/docs/developer_guides/viewer/local_viewer.md
T
omahs 4c966b9bd4 Fix typos (#2655)
* fix typo

* fix typo

* fix typos

* fix typo
2023-12-08 11:27:05 +00:00

1.4 KiB

Local Server

If you are unable to connect to https://viewer.nerf.studio, want to use Safari, or want to develop the viewer codebase, you can launch your own local viewer.

Installing Dependencies

cd nerfstudio/viewer/app

Install npm (to install yarn) and yarn

sudo apt-get install npm
npm install --global yarn

Install nvm and set the node version Install nvm with instructions.

nvm install 17.8.0

Now running node --version in the shell should print "v17.8.0". Install package.json dependencies and start the client viewer app:

yarn install

Launch the web client

From the nerfstudio/viewer/app folder, run:

yarn start

The local webserver runs on port 4000 by default, so when ns-train is running, you can connect to the viewer locally at http://localhost:4000/?websocket_url=ws://localhost:7007

FAQ

Engine node incompatible

While running yarn install, you run into: The engine "node" is incompatible with this module.

Solution:

Install nvm with instructions at instructions.

nvm install 17.8.0

If you cannot install nvm, try ignoring the engines

yarn install --ignore-engines