mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 11:24:00 +08:00
6b17ad51c60ab8a4100649038a32487532b012f0
…
MattPort
Setup the environment
# Clone the repo
git clone --recurse-submodules git@github.com:ethanweber/mattport.git
# Create the python environment
conda create --name mattport python=3.8.13
conda activate mattport
pip install -r environment/requirements.txt
# Install mattport as a library
python setup.py develop
# Running the test cases
pytest tests
Getting the data
Download the original NeRF dataset and put it in the following format.
- data/
- blender/
- fern/
- lego/
Training a model
# Run with the default config
python scripts/run_train.py
# Run with config changes
python scripts/run_train.py machine_config.num_gpus=1
Setting up Jupyter
python -m jupyter lab build
bash environments/run_jupyter.sh
Tooling
We use autoenv to make setting up the environment and environment variables easier. This will run the .envrc file upon entering the /path/to/mattport folder. It will also remove the set environment parameters upon leaving.
# Install direnv.
sudo apt install direnv
# Add the following line to the bottom of your ~/.bashrc file.
eval "$(direnv hook bash)"
# Populate your .envrc with commands you want to run. Then, run the following to allow updates.
cd /path/to/mattport
direnv allow .
Description
A collaboration friendly studio for NeRFs
Readme
Apache-2.0
295 MiB
0 Stars
4 Watchers
0 Forks
Languages
Python
91.2%
JavaScript
6.8%
TypeScript
0.8%
Shell
0.4%
SCSS
0.4%
Other
0.4%