mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
added general testing, fixed up config, made writer general
This commit is contained in:
1 parent
e5f436a18d
commit
58f2622f4d
7 files changed
+121
-16
No files matched your search
@@ -22,7 +22,7 @@ def check_stats_enabled(func: Callable) -> Callable:
|
||||
|
||||
def wrapper(self, *args, **kwargs):
|
||||
ret = None
|
||||
if self.config.debug.enable_stats:
|
||||
if self.config.logging_configs.enable_stats:
|
||||
ret = func(self, *args, **kwargs)
|
||||
return ret
|
||||
|
||||
@@ -34,7 +34,7 @@ def check_profiler_enabled(func: Callable) -> Callable:
|
||||
|
||||
def wrapper(self, *args, **kwargs):
|
||||
ret = None
|
||||
if self.config.debug.enable_stats:
|
||||
if self.config.logging_configs.enable_stats:
|
||||
ret = func(self, *args, **kwargs)
|
||||
return ret
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ class Profiler:
|
||||
|
||||
def __init__(self, config: DictConfig, is_main_thread: bool):
|
||||
self.config = config
|
||||
if self.config.debug.enable_profiler:
|
||||
if self.config.logging_configs.enable_profiler:
|
||||
self.is_main_thread = is_main_thread
|
||||
self.profiler_dict = {}
|
||||
|
||||
|
||||
@@ -30,15 +30,15 @@ class StatsTracker:
|
||||
|
||||
def __init__(self, config: DictConfig, is_main_thread: bool):
|
||||
self.config = config
|
||||
if self.config.debug.enable_stats:
|
||||
if self.config.logging_configs.enable_stats:
|
||||
self.is_main_thread = is_main_thread
|
||||
self.max_history = self.config.debug.stats_tracker.max_history
|
||||
self.max_history = self.config.logging_configs.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.debug.stats_tracker.stats_to_track:
|
||||
for name in self.config.logging_configs.stats_tracker.stats_to_track:
|
||||
self.stats_to_track.add(Stats[name])
|
||||
logging.info("Successfully set up StatsTracker")
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user