mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-15 12:23:46 +08:00
Avoid zero duration crash (#2193)
Avoid zero duration divide-by-zero crash when processing too quickly.
This commit is contained in:
1 parent
b86a4251a9
commit
82b3f70f87
1 file changed
+1
-1
@@ -266,7 +266,7 @@ class Trainer:
|
||||
name=EventName.TRAIN_RAYS_PER_SEC,
|
||||
duration=self.world_size
|
||||
* self.pipeline.datamanager.get_train_rays_per_batch()
|
||||
/ train_t.duration,
|
||||
/ max(0.001, train_t.duration),
|
||||
step=step,
|
||||
avg_over_steps=True,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user