Skip to content

Commit

Permalink
Add disable_video flag for simple_trainer
Browse files Browse the repository at this point in the history
  • Loading branch information
MotivaCG committed Feb 13, 2025
1 parent 0880d2b commit c95fcff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/simple_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ class Config:
save_ply: bool = False
# Steps to save the model as ply
ply_steps: List[int] = field(default_factory=lambda: [7_000, 30_000])
# Whether to disable video generation during training and evaluation
disable_video: bool = False

# Initialization strategy
init_type: str = "sfm"
Expand Down Expand Up @@ -932,6 +934,8 @@ def eval(self, step: int, stage: str = "val"):
@torch.no_grad()
def render_traj(self, step: int):
"""Entry for trajectory rendering."""
if self.cfg.disable_video:
return
print("Running trajectory rendering...")
cfg = self.cfg
device = self.device
Expand Down

0 comments on commit c95fcff

Please sign in to comment.