mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
modularizing hydra config and setting defaults (#46)
* lint * reconfigured modules in yaml
This commit is contained in:
1 parent
86b1011ae1
commit
a93dace958
10 files changed
+131
-144
No files matched your search
@@ -30,15 +30,15 @@ class StatsTracker:
|
||||
|
||||
def __init__(self, config: DictConfig, is_main_thread: bool):
|
||||
self.config = config
|
||||
if self.config.logging_configs.enable_stats:
|
||||
if self.config.logging.enable_stats:
|
||||
self.is_main_thread = is_main_thread
|
||||
self.max_history = self.config.logging_configs.stats_tracker.max_history
|
||||
self.max_history = self.config.logging.stats_tracker.max_history
|
||||
self.step = 0
|
||||
self.stats_dict = {}
|
||||
self.past_stats = []
|
||||
self.new_key = False
|
||||
self.stats_to_track = set()
|
||||
for name in self.config.logging_configs.stats_tracker.stats_to_track:
|
||||
for name in self.config.logging.stats_tracker.stats_to_track:
|
||||
self.stats_to_track.add(Stats[name])
|
||||
logging.info("Successfully set up StatsTracker")
|
||||
else:
|
||||
@@ -85,7 +85,7 @@ class StatsTracker:
|
||||
|
||||
if name == Stats.ITER_TRAIN_TIME and Stats.ETA in self.stats_to_track:
|
||||
# update ETA if logging iteration train time
|
||||
remain_iter = self.config.max_num_iterations - step
|
||||
remain_iter = self.config.graph.max_num_iterations - step
|
||||
self.stats_dict[Stats.ETA] = remain_iter * self.stats_dict[name]
|
||||
|
||||
@check_print_stats_step
|
||||
|
||||
Reference in new issue
Block a user