Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] - add mp3d_example scene dataset config to the tutorials #1847

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@
" \"width\": 720, # Spatial resolution of the observations\n",
" \"height\": 544,\n",
" \"scene\": \"./data/scene_datasets/mp3d_example/17DRP5sb8fy/17DRP5sb8fy.glb\", # Scene path\n",
" \"scene_dataset\": \"./data/scene_datasets/mp3d_example/mp3d.scene_dataset_config.json\", # mp3d scene dataset\n",
" \"default_agent\": 0,\n",
" \"sensor_height\": 1.5, # Height of sensors in meters\n",
" \"sensor_pitch\": -math.pi / 8.0, # sensor pitch (x rotation in rads)\n",
Expand Down
1 change: 1 addition & 0 deletions examples/tutorials/colabs/ECCV_2020_Interactivity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
" \"width\": 720, # Spatial resolution of the observations\n",
" \"height\": 544,\n",
" \"scene\": \"./data/scene_datasets/mp3d_example/17DRP5sb8fy/17DRP5sb8fy.glb\", # Scene path\n",
" \"scene_dataset_config\": \"./data/scene_datasets/mp3d_example/mp3d.scene_dataset_config.json\", # MP3D scene dataset\n",
" \"default_agent\": 0,\n",
" \"sensor_height\": 1.5, # Height of sensors in meters\n",
" \"sensor_pitch\": -math.pi / 8.0, # sensor pitch (x rotation in rads)\n",
Expand Down
3 changes: 3 additions & 0 deletions examples/tutorials/colabs/ECCV_2020_Navigation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@
"# @title Configure Sim Settings\n",
"\n",
"test_scene = \"./data/scene_datasets/mp3d_example/17DRP5sb8fy/17DRP5sb8fy.glb\"\n",
"mp3d_scene_dataset = \"./data/scene_datasets/mp3d_example/mp3d.scene_dataset_config.json\"\n",
"\n",
"rgb_sensor = True # @param {type:\"boolean\"}\n",
"depth_sensor = True # @param {type:\"boolean\"}\n",
Expand All @@ -361,6 +362,7 @@
" \"width\": 256, # Spatial resolution of the observations\n",
" \"height\": 256,\n",
" \"scene\": test_scene, # Scene path\n",
" \"scene_dataset\": mp3d_scene_dataset, # the scene dataset configuration files\n",
" \"default_agent\": 0,\n",
" \"sensor_height\": 1.5, # Height of sensors in meters\n",
" \"color_sensor\": rgb_sensor, # RGB sensor\n",
Expand All @@ -381,6 +383,7 @@
" sim_cfg = habitat_sim.SimulatorConfiguration()\n",
" sim_cfg.gpu_device_id = 0\n",
" sim_cfg.scene_id = settings[\"scene\"]\n",
" sim_cfg.scene_dataset_config_file = settings[\"scene_dataset\"]\n",
" sim_cfg.enable_physics = settings[\"enable_physics\"]\n",
"\n",
" # Note: all sensors must have the same resolution\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ def make_default_settings():
"width": 720, # Spatial resolution of the observations
"height": 544,
"scene": "./data/scene_datasets/mp3d_example/17DRP5sb8fy/17DRP5sb8fy.glb", # Scene path
"scene_dataset": "./data/scene_datasets/mp3d_example/mp3d.scene_dataset_config.json", # mp3d scene dataset
"default_agent": 0,
"sensor_height": 1.5, # Height of sensors in meters
"sensor_pitch": -math.pi / 8.0, # sensor pitch (x rotation in rads)
Expand Down
1 change: 1 addition & 0 deletions examples/tutorials/nb_python/ECCV_2020_Interactivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def make_default_settings():
"width": 720, # Spatial resolution of the observations
"height": 544,
"scene": "./data/scene_datasets/mp3d_example/17DRP5sb8fy/17DRP5sb8fy.glb", # Scene path
"scene_dataset_config": "./data/scene_datasets/mp3d_example/mp3d.scene_dataset_config.json", # MP3D scene dataset
"default_agent": 0,
"sensor_height": 1.5, # Height of sensors in meters
"sensor_pitch": -math.pi / 8.0, # sensor pitch (x rotation in rads)
Expand Down
3 changes: 3 additions & 0 deletions examples/tutorials/nb_python/ECCV_2020_Navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def navigateAndSee(action=""):
# @title Configure Sim Settings

test_scene = "./data/scene_datasets/mp3d_example/17DRP5sb8fy/17DRP5sb8fy.glb"
mp3d_scene_dataset = "./data/scene_datasets/mp3d_example/mp3d.scene_dataset_config.json"

rgb_sensor = True # @param {type:"boolean"}
depth_sensor = True # @param {type:"boolean"}
Expand All @@ -291,6 +292,7 @@ def navigateAndSee(action=""):
"width": 256, # Spatial resolution of the observations
"height": 256,
"scene": test_scene, # Scene path
"scene_dataset": mp3d_scene_dataset, # the scene dataset configuration files
"default_agent": 0,
"sensor_height": 1.5, # Height of sensors in meters
"color_sensor": rgb_sensor, # RGB sensor
Expand All @@ -306,6 +308,7 @@ def make_cfg(settings):
sim_cfg = habitat_sim.SimulatorConfiguration()
sim_cfg.gpu_device_id = 0
sim_cfg.scene_id = settings["scene"]
sim_cfg.scene_dataset_config_file = settings["scene_dataset"]
sim_cfg.enable_physics = settings["enable_physics"]

# Note: all sensors must have the same resolution
Expand Down