Skip to content

Commit bb4889e

Browse files
committed
fix fabric camera delay issue
1 parent 0dd0050 commit bb4889e

File tree

2 files changed

+38
-37
lines changed

2 files changed

+38
-37
lines changed

scripts/eval/configs/h1_internvla_n1_async_cfg.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,61 +14,61 @@
1414
model_name='internvla_n1',
1515
ckpt_path='',
1616
model_settings={
17-
'env_num': 1, 'sim_num': 1,
17+
'env_num': 1,
18+
'sim_num': 1,
1819
'model_path': "checkpoints/InternVLA-N1",
19-
'camera_intrinsic': [
20-
[585.0, 0.0, 320.0], [0.0, 585.0, 240.0], [0.0, 0.0, 1.0]
21-
],
22-
23-
'width': 640, 'height': 480, 'hfov': 79,
24-
'resize_w': 384, 'resize_h': 384,
20+
'camera_intrinsic': [[585.0, 0.0, 320.0], [0.0, 585.0, 240.0], [0.0, 0.0, 1.0]],
21+
'width': 640,
22+
'height': 480,
23+
'hfov': 79,
24+
'resize_w': 384,
25+
'resize_h': 384,
2526
'max_new_tokens': 1024,
2627
'num_frames': 32,
2728
'num_history': 8,
2829
'num_future_steps': 4,
29-
3030
'device': 'cuda:1',
3131
'predict_step_nums': 32,
32-
'continuous_traj': True,
33-
34-
'infer_mode': 'partial_async', # You can choose "sync" or "partial_async", but for this model, "partial_async" is better.
32+
'continuous_traj': True,
33+
'infer_mode': 'partial_async', # You can choose "sync" or "partial_async", but for this model, "partial_async" is better.
3534
# debug
36-
'vis_debug': True, # If vis_debug=True, you can get visualization results
37-
'vis_debug_path': './logs/test/vis_debug'
35+
'vis_debug': True, # If vis_debug=True, you can get visualization results
36+
'vis_debug_path': './logs/test/vis_debug',
3837
},
3938
),
4039
env=EnvCfg(
4140
env_type='vln_multi',
4241
env_settings={
43-
'use_fabric': False, # Please set use_fabric=False due to the render delay;
42+
'rendering_interval': 0, # You can set rendering_interval=0 to avoid the render delay.
43+
'use_fabric': True,
4444
'headless': True,
4545
},
4646
),
4747
task=TaskCfg(
4848
task_name='test',
4949
task_settings={
5050
'env_num': 1,
51-
'use_distributed': False, # If the others setting in task_settings, please set use_distributed = False.
51+
'use_distributed': False, # If the others setting in task_settings, please set use_distributed = False.
5252
'proc_num': 1,
53-
# 'max_step': 1000, #If use flash mode,default 1000; descrete mode, set 50000
53+
# 'max_step': 1000, #If use flash mode,default 1000; descrete mode, set 50000
5454
},
5555
scene=SceneCfg(
5656
scene_type='mp3d',
5757
scene_data_dir='data/scene_data/mp3d_pe',
5858
),
5959
robot_name='h1',
60-
robot_flash=True, # If robot_flash is True, the mode is flash (set world_pose directly); else you choose physical mode.
60+
robot_flash=True, # If robot_flash is True, the mode is flash (set world_pose directly); else you choose physical mode.
6161
robot_usd_path='data/Embodiments/vln-pe/h1/h1_internvla.usd',
62-
camera_resolution=[640, 480], # (W,H)
62+
camera_resolution=[640, 480], # (W,H)
6363
camera_prim_path='torso_link/h1_1_25_down_30',
64-
one_step_stand_still = True, #For dual-system, please keep this param True.
64+
one_step_stand_still=True, # For dual-system, please keep this param True.
6565
),
6666
dataset=EvalDatasetCfg(
6767
dataset_type="mp3d",
6868
dataset_settings={
6969
'base_data_dir': 'data/vln_pe/raw_data/r2r',
7070
'split_data_types': ['val_seen', 'val_unseen'], # 'val_seen'
71-
'filter_stairs': False, # For iros challenge, this is False; For results in the paper, this is True.
71+
'filter_stairs': False, # For iros challenge, this is False; For results in the paper, this is True.
7272
# 'selected_scans': ['zsNo4HB9uLZ'],
7373
# 'selected_scans': ['8194nk5LbLH', 'pLe4wQe7qrG'],
7474
},

scripts/eval/configs/h1_internvla_n1_cfg.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,58 +14,59 @@
1414
model_name='internvla_n1',
1515
ckpt_path='',
1616
model_settings={
17-
'env_num': 1, 'sim_num': 1,
17+
'env_num': 1,
18+
'sim_num': 1,
1819
'model_path': "checkpoints/InternVLA-N1-Preview",
19-
'camera_intrinsic': [
20-
[585.0, 0.0, 320.0], [0.0, 585.0, 240.0], [0.0, 0.0, 1.0]
21-
],
22-
23-
'width': 640, 'height': 480, 'hfov': 79,
24-
'resize_w': 384, 'resize_h': 384,
20+
'camera_intrinsic': [[585.0, 0.0, 320.0], [0.0, 585.0, 240.0], [0.0, 0.0, 1.0]],
21+
'width': 640,
22+
'height': 480,
23+
'hfov': 79,
24+
'resize_w': 384,
25+
'resize_h': 384,
2526
'max_new_tokens': 1024,
2627
'num_frames': 32,
2728
'num_history': 8,
2829
'num_future_steps': 4,
29-
3030
'device': 'cuda:1',
3131
'predict_step_nums': 32,
32-
'continuous_traj': True,
32+
'continuous_traj': True,
3333
# debug
34-
'vis_debug': True, # If vis_debug=True, you can get visualization results
35-
'vis_debug_path': './logs/test/vis_debug'
34+
'vis_debug': True, # If vis_debug=True, you can get visualization results
35+
'vis_debug_path': './logs/test/vis_debug',
3636
},
3737
),
3838
env=EnvCfg(
3939
env_type='vln_multi',
4040
env_settings={
41-
'use_fabric': False, # Please set use_fabric=False due to the render delay;
41+
'rendering_interval': 0, # You can set rendering_interval=0 to avoid the render delay.
42+
'use_fabric': True,
4243
'headless': True,
4344
},
4445
),
4546
task=TaskCfg(
4647
task_name='test',
4748
task_settings={
4849
'env_num': 1,
49-
'use_distributed': False, # If the others setting in task_settings, please set use_distributed = False.
50+
'use_distributed': False, # If the others setting in task_settings, please set use_distributed = False.
5051
'proc_num': 1,
5152
},
5253
scene=SceneCfg(
5354
scene_type='mp3d',
5455
scene_data_dir='data/scene_data/mp3d_pe',
5556
),
5657
robot_name='h1',
57-
robot_flash=True, # If robot_flash is True, the mode is flash (set world_pose directly); else you choose physical mode.
58+
robot_flash=True, # If robot_flash is True, the mode is flash (set world_pose directly); else you choose physical mode.
5859
robot_usd_path='data/Embodiments/vln-pe/h1/h1_internvla.usd',
59-
camera_resolution=[640, 480], # (W,H)
60+
camera_resolution=[640, 480], # (W,H)
6061
camera_prim_path='torso_link/h1_1_25_down_30',
61-
one_step_stand_still = True, #For dual-system, please keep this param True.
62+
one_step_stand_still=True, # For dual-system, please keep this param True.
6263
),
6364
dataset=EvalDatasetCfg(
6465
dataset_type="mp3d",
6566
dataset_settings={
6667
'base_data_dir': 'data/vln_pe/raw_data/r2r',
6768
'split_data_types': ['val_unseen'], # 'val_seen'
68-
'filter_stairs': False,
69+
'filter_stairs': False,
6970
# 'selected_scans': ['zsNo4HB9uLZ'],
7071
# 'selected_scans': ['8194nk5LbLH', 'pLe4wQe7qrG'],
7172
},

0 commit comments

Comments
 (0)