Files
nerfstudio/configs/graph_instant_ngp.yaml
T
Ethan WeberandJake Austin 0b042be956 Pipeline v2 (#258)
* Model class done, pipeline class still needs more visualization stuffs

* Renaming the BaseDataContainer to DataloaderOutputs and adding documentation

* Pushing more documentation, removing some trivial functions

* Updating dict typing

* Removing config dicts for collider

* Passing tests

* Pushing shell new dataloader

* Saving work, need to fix NGP model's get_loss_dict and Pipeline

* V1 of the ngp pipeline should be done. Need train script and debugging

* Updating with latest instant-ngp code

* Syntax updates from latest ngp graph code

* Linter, removing unneeded code in new NGP graph code

* Style

* Should be good now. Linter is happy and the code is verbatum current instant-ngp

* Everything done except novel view testing code

* Fixing some nitpicks

* Debugging dataloader

* merged master

* WOP. integrating pipeline with configs and notebook demo

* removing model folder

* a lot of name changing from Graph to Model

* in progress... changing trainer to use pipeline... broken right now

* pipeline code runs

* switched to val dataset

* makes run_eval.py work

* updated configs for pipeline change

* fixing test_run_train script

* fixing black and linting

* fix docs

* small updates to trainer

Co-authored-by: Jake Austin <jake-austin@berkeley.edu>
2022-08-10 14:59:45 -07:00

58 lines
1.7 KiB
YAML

defaults:
- graph_default
- _self_
method_name: instant_ngp
viewer:
enable: true
num_rays_per_chunk: 16384
pipeline:
dataloader:
train_dataset:
_target_: nerfactory.dataloaders.datasets.Blender
data_directory: data/blender/lego
alpha_color: white
downscale_factor: 1
train_num_rays_per_batch: 8192
eval_dataset:
_target_: nerfactory.dataloaders.datasets.Blender
data_directory: data/blender/lego
alpha_color: white
downscale_factor: 1
eval_num_rays_per_chunk: 8192
model:
_target_: nerfactory.models.instant_ngp.NGPModel
enable_density_field: true
enable_collider: false
field_implementation: tcnn # torch, tcnn, ...
loss_coefficients: # loss coefficients
rgb_loss: 1.0
density_field_config:
# Please see the docstr for DensityGrid on how to set those arguments.
_target_: nerfactory.fields.density_fields.density_grid.DensityGrid
center: 0.0 # simply set it as the center of the scene bbox
base_scale: 3.0 # simply set it as the scale of the scene bbox
num_cascades: 1 # if using more than 1 cascade, the `base_scale` can be smaller than scene scale.
resolution: 128
update_every_num_iters: 16
# optimizer options for network
optimizers:
fields:
optimizer:
lr: 3e-3
eps: 1e-15 # NGP prefers small eps
# Note: If you want slightly faster coverange, you can use the following optimizer instead, which
# requires to install apex following https://github.com/NVIDIA/apex#linux
# optimizer:
# _target_: apex.optimizers.FusedAdam
# lr: 3e-3
# eps: 1e-15
scheduler: null
trainer:
mixed_precision: true # Stabilizes training when using tcnn