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
+3 -21
View File
@@ -1,23 +1,5 @@
defaults:
# This makes the logging module logs colorful
- data: default_data.yaml
- graph: instant_ngp_graph.yaml
- logging: default_logging.yaml
- override hydra/job_logging: colorlog
- override hydra/hydra_logging: colorlog
hydra:
run:
# Configure output dir of each experiment programmatically from the arguments
# Example "outputs/mnist/classifier/baseline/2021-03-10-141516"
dir: outputs/${experiment_name}/${method_name}/${now:%Y-%m-%d_%H%M%S}
experiment_name: blender_lego
- default
- override graph: instant_ngp_graph
- _self_
method_name: instant_ngp
# machine options
machine_config:
num_gpus: 1
num_machines: 1
machine_rank: 0
dist_url: auto
+4 -3
View File
@@ -1,5 +1,5 @@
defaults:
- default
- default
dry_run: true
@@ -8,7 +8,8 @@ machine_config:
data:
dataset:
data_directory: data/blender/lego_test
dataset_type: blender
data_directory: tests/data/lego_test
downscale_factor: 8
validation_image_indices: [0]
dataloader:
@@ -20,4 +21,4 @@ graph:
hydra:
searchpath:
- file://configs
- file://configs