mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
Summary: This large diff rewrites a significant portion of Implicitron's config hierarchy. The new hierarchy, and some of the default implementation classes, are as follows: ``` Experiment data_source: ImplicitronDataSource dataset_map_provider data_loader_map_provider model_factory: ImplicitronModelFactory model: GenericModel optimizer_factory: ImplicitronOptimizerFactory training_loop: ImplicitronTrainingLoop evaluator: ImplicitronEvaluator ``` 1) Experiment (used to be ExperimentConfig) is now a top-level Configurable and contains as members mainly (mostly new) high-level factory Configurables. 2) Experiment's job is to run factories, do some accelerate setup and then pass the results to the main training loop. 3) ImplicitronOptimizerFactory and ImplicitronModelFactory are new high-level factories that create the optimizer, scheduler, model, and stats objects. 4) TrainingLoop is a new configurable that runs the main training loop and the inner train-validate step. 5) Evaluator is a new configurable that TrainingLoop uses to run validation/test steps. 6) GenericModel is not the only model choice anymore. Instead, ImplicitronModelBase (by default instantiated with GenericModel) is a member of Experiment and can be easily replaced by a custom implementation by the user. All the new Configurables are children of ReplaceableBase, and can be easily replaced with custom implementations. In addition, I added support for the exponential LR schedule, updated the config files and the test, as well as added a config file that reproduces NERF results and a test to run the repro experiment. Reviewed By: bottler Differential Revision: D37723227 fbshipit-source-id: b36bee880d6aa53efdd2abfaae4489d8ab1e8a27
38 lines
894 B
YAML
38 lines
894 B
YAML
defaults:
|
|
- repro_base.yaml
|
|
- _self_
|
|
data_source_ImplicitronDataSource_args:
|
|
data_loader_map_provider_SequenceDataLoaderMapProvider_args:
|
|
batch_size: 10
|
|
dataset_length_train: 1000
|
|
dataset_length_val: 1
|
|
num_workers: 8
|
|
train_conditioning_type: SAME
|
|
val_conditioning_type: SAME
|
|
test_conditioning_type: SAME
|
|
images_per_seq_options:
|
|
- 2
|
|
- 3
|
|
- 4
|
|
- 5
|
|
- 6
|
|
- 7
|
|
- 8
|
|
- 9
|
|
- 10
|
|
dataset_map_provider_JsonIndexDatasetMapProvider_args:
|
|
assert_single_seq: false
|
|
task_str: multisequence
|
|
n_frames_per_sequence: -1
|
|
test_on_train: true
|
|
test_restrict_sequence_id: 0
|
|
optimizer_factory_ImplicitronOptimizerFactory_args:
|
|
multistep_lr_milestones:
|
|
- 1000
|
|
training_loop_ImplicitronTrainingLoop_args:
|
|
max_epochs: 3000
|
|
evaluator_ImplicitronEvaluator_args:
|
|
camera_difficulty_bin_breaks:
|
|
- 0.666667
|
|
- 0.833334
|