Skip to content

Commit

Permalink
fix jittering in markdown in viewer beta
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrj committed Oct 11, 2023
1 parent e694f34 commit 70ade42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nerfstudio/viewer_beta/control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,9 @@ def update_step(self, step):
step: the train step to set the model to
"""
with self.viser_server.atomic(), self.stat_folder:
# TODO change to a .value call instead of remove() and add, this makes it jittery
with self.viser_server.atomic():
self.markdown.remove()
self.markdown = self.viser_server.add_gui_markdown(f"Step: {step}")
self.markdown.content = f"Step: {step}"

def update_output_options(self, new_options: List[str]):
"""
Expand Down

0 comments on commit 70ade42

Please sign in to comment.