4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 10:34:29 +08:00
A collaboration friendly studio for NeRFs
Go to file
2022-04-29 16:36:47 +00:00
.github/workflows using test images. including some local data. black on save. disabled warnings for pytest 2022-04-29 16:23:05 +00:00
.vscode using test images. including some local data. black on save. disabled warnings for pytest 2022-04-29 16:23:05 +00:00
configs added general testing, fixed up config, made writer general 2022-04-28 23:21:01 +00:00
data/blender/lego_test using test images. including some local data. black on save. disabled warnings for pytest 2022-04-29 16:23:05 +00:00
environment resizing image 2022-04-22 18:19:39 +00:00
external removing goat references 2022-04-29 16:36:47 +00:00
mattport using test images. including some local data. black on save. disabled warnings for pytest 2022-04-29 16:23:05 +00:00
notebooks using test images. including some local data. black on save. disabled warnings for pytest 2022-04-29 16:23:05 +00:00
scripts using test images. including some local data. black on save. disabled warnings for pytest 2022-04-29 16:23:05 +00:00
tests using test images. including some local data. black on save. disabled warnings for pytest 2022-04-29 16:23:05 +00:00
viewer some more structure 2022-04-02 21:47:39 +00:00
.gitignore removing docker and fixing nfs issue 2022-04-17 16:36:09 +00:00
.gitmodules removing goat references 2022-04-29 16:36:47 +00:00
pyproject.toml Image dataset implemented and ray generation working. (#23) 2022-04-17 09:26:44 -07:00
README.md removing goat references 2022-04-29 16:36:47 +00:00
setup.py

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 .