Junyi42 commited on
Commit
b3ecda5
·
1 Parent(s): d79eae5

minor, setup init cam pose

Browse files
Files changed (1) hide show
  1. vis_st4rtrack.py +6 -1
vis_st4rtrack.py CHANGED
@@ -26,7 +26,7 @@ def visualize_st4rtrack(
26
  max_frames: int = 32,
27
  share: bool = False,
28
  point_size: float = 0.0015,
29
- downsample_factor: int = 3,
30
  num_traj_points: int = 100,
31
  conf_thre: float = 1.,
32
  traj_end_frame: int = 100,
@@ -40,6 +40,11 @@ def visualize_st4rtrack(
40
  if share:
41
  server.request_share_url()
42
 
 
 
 
 
 
43
  # Configure the GUI panel size and layout
44
  server.gui.configure_theme(
45
  control_layout="collapsible", # Options: "floating", "collapsible", "fixed"
 
26
  max_frames: int = 32,
27
  share: bool = False,
28
  point_size: float = 0.0015,
29
+ downsample_factor: int = 5,
30
  num_traj_points: int = 100,
31
  conf_thre: float = 1.,
32
  traj_end_frame: int = 100,
 
40
  if share:
41
  server.request_share_url()
42
 
43
+ @server.on_client_connect
44
+ def _(client: viser.ClientHandle) -> None:
45
+ client.camera.position = (1e-3, 0.75, -0.1)
46
+ client.camera.look_at = (0, 0, 0)
47
+
48
  # Configure the GUI panel size and layout
49
  server.gui.configure_theme(
50
  control_layout="collapsible", # Options: "floating", "collapsible", "fixed"