mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +08:00
Eng/better configs (#113)
* update possible config setup * finished porting remaning configs * fix bugs * change mattprot to radiance in config
This commit is contained in:
1 parent
41bbb8abe1
commit
fbcf3cb831
13 files changed
+89
-94
No files matched your search
@@ -1,7 +1,6 @@
|
|||||||
defaults:
|
defaults:
|
||||||
# This makes the logging module logs colorful
|
# This makes the logging module logs colorful
|
||||||
- data: default_data.yaml
|
- data: default_data.yaml
|
||||||
- graph: default_graph.yaml
|
|
||||||
- logging: default_logging.yaml
|
- logging: default_logging.yaml
|
||||||
- override hydra/job_logging: colorlog
|
- override hydra/job_logging: colorlog
|
||||||
- override hydra/hydra_logging: colorlog
|
- override hydra/hydra_logging: colorlog
|
||||||
@@ -15,12 +14,10 @@ hydra:
|
|||||||
# Example "outputs/mnist/classifier/baseline/2021-03-10-141516"
|
# Example "outputs/mnist/classifier/baseline/2021-03-10-141516"
|
||||||
dir: outputs/${experiment_name}/${method_name}/${now:%Y-%m-%d_%H%M%S}
|
dir: outputs/${experiment_name}/${method_name}/${now:%Y-%m-%d_%H%M%S}
|
||||||
|
|
||||||
experiment_name: blender_lego
|
|
||||||
method_name: vanilla_nerf
|
|
||||||
|
|
||||||
# machine options
|
# machine options
|
||||||
machine_config:
|
machine_config:
|
||||||
num_gpus: 1
|
num_gpus: 1
|
||||||
num_machines: 1
|
num_machines: 1
|
||||||
machine_rank: 0
|
machine_rank: 0
|
||||||
dist_url: auto
|
dist_url: auto
|
||||||
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# saving model specifications
|
|
||||||
model_dir: /tmp/radiance_models/
|
|
||||||
steps_per_save: null
|
|
||||||
steps_per_test: 100
|
|
||||||
max_num_iterations: 1000000
|
|
||||||
|
|
||||||
# pretrained loading options
|
|
||||||
resume_train:
|
|
||||||
load_dir: # pretrained model directory
|
|
||||||
load_step: # pretrained model's step number
|
|
||||||
|
|
||||||
network:
|
|
||||||
_target_: radiance.nerf.graph.vanilla_nerf.NeRFGraph
|
|
||||||
near_plane: 2.0
|
|
||||||
far_plane: 6.0
|
|
||||||
num_coarse_samples: 64
|
|
||||||
num_importance_samples: 128
|
|
||||||
|
|
||||||
loss_coefficients: # loss coefficients
|
|
||||||
rgb_loss_coarse: 1.0
|
|
||||||
rgb_loss_fine: 1.0
|
|
||||||
|
|
||||||
# optimizer options for network
|
|
||||||
param_groups:
|
|
||||||
fields:
|
|
||||||
optimizer:
|
|
||||||
_target_: torch.optim.RAdam
|
|
||||||
lr: 0.0005
|
|
||||||
scheduler:
|
|
||||||
_target_: radiance.nerf.optimizers.ExponentialDecaySchedule
|
|
||||||
lr_final: 0.000005
|
|
||||||
max_steps: 1000000
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
defaults:
|
|
||||||
- default_graph.yaml
|
|
||||||
- _self_
|
|
||||||
|
|
||||||
network:
|
|
||||||
_target_: radiance.nerf.graph.instant_ngp.NGPGraph
|
|
||||||
field_implementation: torch # torch, tcnn, ...
|
|
||||||
loss_coefficients: # loss coefficients
|
|
||||||
rgb_loss: 1.0
|
|
||||||
|
|
||||||
# optimizer options for network
|
|
||||||
param_groups:
|
|
||||||
fields:
|
|
||||||
optimizer:
|
|
||||||
lr: 1e-2
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
defaults:
|
|
||||||
- default_graph.yaml
|
|
||||||
- _self_
|
|
||||||
|
|
||||||
network:
|
|
||||||
_target_: radiance.nerf.graph.nerfw.NerfWGraph
|
|
||||||
loss_coefficients: # loss coefficients
|
|
||||||
rgb_loss_coarse: 1.0
|
|
||||||
rgb_loss_fine: 1.0
|
|
||||||
uncertainty_loss: 1.0
|
|
||||||
density_loss: 0.01
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
defaults:
|
|
||||||
- default_graph.yaml
|
|
||||||
- _self_
|
|
||||||
|
|
||||||
network:
|
|
||||||
_target_: radiance.nerf.graph.semantic_nerf.SemanticNerfGraph
|
|
||||||
loss_coefficients: # loss coefficients
|
|
||||||
rgb_loss_coarse: 1.0
|
|
||||||
rgb_loss_fine: 1.0
|
|
||||||
semantic_loss_fine: 0.05
|
|
||||||
@@ -1,7 +1,20 @@
|
|||||||
defaults:
|
defaults:
|
||||||
- default
|
- vanilla_nerf
|
||||||
- override graph: instant_ngp_graph
|
|
||||||
- _self_
|
- _self_
|
||||||
|
|
||||||
method_name: instant_ngp
|
method_name: instant_ngp
|
||||||
data.dataloader.num_rays_per_batch: 4096
|
data.dataloader.num_rays_per_batch: 4096
|
||||||
data.val_num_rays_per_chunk: 16384
|
data.val_num_rays_per_chunk: 16384
|
||||||
|
|
||||||
|
graph:
|
||||||
|
network:
|
||||||
|
_target_: radiance.nerf.graph.instant_ngp.NGPGraph
|
||||||
|
field_implementation: torch # torch, tcnn, ...
|
||||||
|
loss_coefficients: # loss coefficients
|
||||||
|
rgb_loss: 1.0
|
||||||
|
|
||||||
|
# optimizer options for network
|
||||||
|
param_groups:
|
||||||
|
fields:
|
||||||
|
optimizer:
|
||||||
|
lr: 1e-2
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
defaults:
|
defaults:
|
||||||
- default
|
- instant_ngp
|
||||||
- override graph: instant_ngp_graph
|
|
||||||
- _self_
|
- _self_
|
||||||
|
|
||||||
method_name: instant_ngp
|
method_name: instant_ngp
|
||||||
data:
|
data:
|
||||||
dataloader:
|
dataloader:
|
||||||
|
|||||||
+14
-7
@@ -1,14 +1,21 @@
|
|||||||
defaults:
|
defaults:
|
||||||
- default
|
- vanilla_nerf
|
||||||
- override data/dataset: friends_TBBT-big_living_room
|
- override data/dataset: friends_TBBT-big_living_room
|
||||||
- override graph: nerfw_graph
|
|
||||||
- _self_
|
- _self_
|
||||||
|
|
||||||
experiment_name: friends_TBBT-big_living_room
|
experiment_name: friends_TBBT-big_living_room
|
||||||
method_name: nerfw
|
method_name: nerfw
|
||||||
|
|
||||||
network:
|
graph:
|
||||||
near_plane: 0.1
|
network:
|
||||||
far_plane: 10.0
|
_target_: radiance.nerf.graph.nerfw.NerfWGraph
|
||||||
num_coarse_samples: 64
|
near_plane: 0.1
|
||||||
num_importance_samples: 64
|
far_plane: 10.0
|
||||||
|
num_coarse_samples: 64
|
||||||
|
num_importance_samples: 64
|
||||||
|
|
||||||
|
loss_coefficients: # loss coefficients
|
||||||
|
rgb_loss_coarse: 1.0
|
||||||
|
rgb_loss_fine: 1.0
|
||||||
|
uncertainty_loss: 1.0
|
||||||
|
density_loss: 0.01
|
||||||
@@ -1,14 +1,20 @@
|
|||||||
defaults:
|
defaults:
|
||||||
- default
|
- vanilla_nerf
|
||||||
- override data/dataset: friends_TBBT-big_living_room
|
- override data/dataset: friends_TBBT-big_living_room
|
||||||
- override graph: semantic_nerf_graph
|
|
||||||
- _self_
|
- _self_
|
||||||
|
|
||||||
experiment_name: friends_TBBT-big_living_room
|
experiment_name: friends_TBBT-big_living_room
|
||||||
method_name: semantic_nerf
|
method_name: semantic_nerf
|
||||||
|
|
||||||
network:
|
graph:
|
||||||
near_plane: 0.1
|
network:
|
||||||
far_plane: 10.0
|
_target_: radiance.nerf.graph.semantic_nerf.SemanticNerfGraph
|
||||||
num_coarse_samples: 64
|
near_plane: 0.1
|
||||||
num_importance_samples: 64
|
far_plane: 10.0
|
||||||
|
num_coarse_samples: 64
|
||||||
|
num_importance_samples: 64
|
||||||
|
|
||||||
|
loss_coefficients: # loss coefficients
|
||||||
|
rgb_loss_coarse: 1.0
|
||||||
|
rgb_loss_fine: 1.0
|
||||||
|
semantic_loss_fine: 0.05
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
defaults:
|
defaults:
|
||||||
- default
|
- vanilla_nerf
|
||||||
|
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
defaults:
|
||||||
|
- default_setup
|
||||||
|
- _self_
|
||||||
|
|
||||||
|
experiment_name: blender_lego
|
||||||
|
method_name: vanilla_nerf
|
||||||
|
|
||||||
|
graph:
|
||||||
|
# saving model specifications
|
||||||
|
model_dir: /tmp/radiance_models/
|
||||||
|
steps_per_save: null
|
||||||
|
steps_per_test: 100
|
||||||
|
max_num_iterations: 1000000
|
||||||
|
|
||||||
|
# pretrained loading options
|
||||||
|
resume_train:
|
||||||
|
load_dir: # pretrained model directory
|
||||||
|
load_step: # pretrained model's step number
|
||||||
|
|
||||||
|
network:
|
||||||
|
_target_: radiance.nerf.graph.vanilla_nerf.NeRFGraph
|
||||||
|
near_plane: 2.0
|
||||||
|
far_plane: 6.0
|
||||||
|
num_coarse_samples: 64
|
||||||
|
num_importance_samples: 128
|
||||||
|
|
||||||
|
loss_coefficients: # loss coefficients
|
||||||
|
rgb_loss_coarse: 1.0
|
||||||
|
rgb_loss_fine: 1.0
|
||||||
|
|
||||||
|
# optimizer options for network
|
||||||
|
param_groups:
|
||||||
|
fields:
|
||||||
|
optimizer:
|
||||||
|
_target_: torch.optim.RAdam
|
||||||
|
lr: 0.0005
|
||||||
|
scheduler:
|
||||||
|
_target_: radiance.nerf.optimizers.ExponentialDecaySchedule
|
||||||
|
lr_final: 0.000005
|
||||||
|
max_steps: 1000000
|
||||||
@@ -17,7 +17,7 @@ from radiance.nerf.trainer import Trainer
|
|||||||
BENCH = {
|
BENCH = {
|
||||||
"method": "vanilla_nerf",
|
"method": "vanilla_nerf",
|
||||||
"hydra_base_dir": "outputs/",
|
"hydra_base_dir": "outputs/",
|
||||||
"benchmark_date": "05-24-2022",
|
"benchmark_date": "05-26-2022",
|
||||||
"object_list": ["mic", "ficus", "chair", "hotdog", "materials", "drums", "ship", "lego"],
|
"object_list": ["mic", "ficus", "chair", "hotdog", "materials", "drums", "ship", "lego"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ def launch(
|
|||||||
profiler.flush_profiler(config.logging)
|
profiler.flush_profiler(config.logging)
|
||||||
|
|
||||||
|
|
||||||
@hydra.main(config_path="../configs", config_name="default.yaml")
|
@hydra.main(config_path="../configs", config_name="vanilla_nerf.yaml")
|
||||||
def main(config: DictConfig):
|
def main(config: DictConfig):
|
||||||
"""Main function."""
|
"""Main function."""
|
||||||
launch(
|
launch(
|
||||||
|
|||||||
Reference in new issue
Block a user