Fixed testing and added graph abstractions (#64)

* abstracted some test logic and actually using test images now

* moved logging from trainer to graph

* fixing dataset path

* refactored instant ngp code to use inheritance

* fixed my run_train

* fixed data path

* fixed data dir
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-05-09 11:54:40 -07:00
1 parent e83ce4f61b
commit 5fb3d14304
26 files changed
+8526 -270

No files matched your search

+4
View File
@@ -17,6 +17,10 @@ network:
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:
+3 -19
View File
@@ -1,21 +1,9 @@
# saving model specifications
model_dir: /tmp/mattport_models/
steps_per_save: null
steps_per_test: 100
max_num_iterations: 1000000
defaults:
- default_graph.yaml
- _self_
# pretrained loading options
resume_train:
load_dir: # pretrained model directory
load_step: # pretrained model's step number
# NOTE(ethan): currently setting to nothing b/c we're still designing the config format...
network:
_target_: mattport.nerf.graph.instant_ngp.NGPGraph
near_plane: 1.0
far_plane: 6.0
num_coarse_samples: 64
num_importance_samples: 64
# optimizer options for network
param_groups:
@@ -23,7 +11,3 @@ param_groups:
optimizer:
type: Adam
lr: 1e-2
scheduler:
type: StepLR
step_size: 30 # Period of learning rate decay.
gamma: 0.1 # Multiplicative factor of learning rate decay. Default: 0.1.
+6
View File
@@ -0,0 +1,6 @@
defaults:
- default_graph.yaml
- _self_
network:
_target_: mattport.nerf.graph.nerfw.NerfWGraph