mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 14:45:38 +08:00
profiling
This commit is contained in:
1 parent
ec603634ed
commit
07698dfb71
8 files changed
+19
No files matched your search
@@ -71,6 +71,7 @@ from nerfstudio.data.utils.nerfstudio_collate import nerfstudio_collate
|
||||
from nerfstudio.engine.callbacks import TrainingCallback, TrainingCallbackAttributes
|
||||
from nerfstudio.model_components.ray_generators import RayGenerator
|
||||
from nerfstudio.utils.misc import IterableWrapper
|
||||
from nerfstudio.utils import profiler
|
||||
|
||||
CONSOLE = Console(width=120)
|
||||
|
||||
@@ -510,6 +511,8 @@ class VanillaDataManager(DataManager): # pylint: disable=abstract-method
|
||||
num_workers=self.world_size * 4,
|
||||
)
|
||||
|
||||
@profiler.time_function
|
||||
@profile
|
||||
def next_train(self, step: int) -> Tuple[RayBundle, Dict]:
|
||||
"""Returns the next batch of data from the train dataloader."""
|
||||
self.train_count += 1
|
||||
|
||||
Reference in new issue
Block a user