Habitat is under active development, and we advise users to restrict themselves to stable releases of Habitat-Lab and Habitat-Sim. The bug you are about to report may already be fixed in the latest version.
Master branch contains 'bleeding edge' code, but we do appreciate bug reports for it!
š Bug
I generated a dataset that is supposed to have multiple types of objects on a table using the following command:
Trying to run an episode via a simple example script leads to the following error:
Traceback (most recent call last):
File "run.py", line 31, in <module>
env.reset()
File "/Users/michaelpiseno/src/habitat-lab/habitat/core/env.py", line 259, in reset
observations=observations,
File "/Users/michaelpiseno/src/habitat-lab/habitat/core/embodied_task.py", line 162, in reset_measures
measure.reset_metric(*args, **kwargs)
File "/Users/michaelpiseno/src/habitat-lab/habitat/tasks/rearrange/sub_tasks/pick_sensors.py", line 72, in reset_metric
**kwargs
File "/Users/michaelpiseno/src/habitat-lab/habitat/tasks/rearrange/rearrange_sensors.py", line 657, in reset_metric
**kwargs
File "/Users/michaelpiseno/src/habitat-lab/habitat/tasks/rearrange/sub_tasks/pick_sensors.py", line 99, in update_metric
dist_to_goal = ee_to_object_distance[task.targ_idx]
KeyError: 0
Steps to Reproduce
Steps to reproduce the behavior:
Generate a dataset using the config file below (note that the "num_samples" is not the default [1, 1] because I am trying to generate multiple objects). This works fine.
Run Habitat using the other config file and the example script below. This gives the KeyError. NOTE: The exact same code/workflow works fine if I just try to set num_samples to [1, 1].
Dataset config:
---
dataset_path: "data/replica_cad/replicaCAD.scene_dataset_config.json"
additional_object_paths:
- "data/objects/ycb/"
scene_sets:
-
name: "default"
included_substrings:
- "v3_sc0_staging_00"
excluded_substrings: []
comment: "The first macro variation from the 105 ReplicaCAD variations."
object_sets:
-
name: "kitchen"
included_substrings:
- "003_cracker_box"
- "005_tomato_soup_can"
- "008_pudding_box"
- "011_banana"
- "013_apple"
- "024_bowl"
- "025_mug"
excluded_substrings: []
receptacle_sets:
-
name: "table"
included_object_substrings:
- "frl_apartment_table_01"
- "frl_apartment_table_02"
- "frl_apartment_table_03"
excluded_object_substrings: []
included_receptacle_substrings:
- ""
excluded_receptacle_substrings: []
comment: "The empty substrings act like wildcards, selecting all receptacles for all objects."
scene_sampler:
type: "subset"
params:
scene_sets: ["default"]
comment: "Samples from ReplicaCAD 105 variations with static furniture."
object_samplers:
-
name: "kitchen_table"
type: "uniform"
params:
object_sets: ["kitchen"]
receptacle_sets: ["table"]
num_samples: [2, 5] # samples num object in the range [min, max)
orientation_sampling: "up"
sample_region_ratio: 0.5
unique: true
object_target_samplers:
-
name: "kitchen_table_targets"
type: "uniform"
params:
object_samplers: ["kitchen_table"]
receptacle_sets: ["table"]
num_samples: [1, 1]
orientation_sampling: "up"
Habitat-Lab and Habitat-Sim versions
Habitat-Lab: v0.2.1
Habitat-Sim: v0.2.1
Habitat is under active development, and we advise users to restrict themselves to stable releases of Habitat-Lab and Habitat-Sim. The bug you are about to report may already be fixed in the latest version.
Master branch contains 'bleeding edge' code, but we do appreciate bug reports for it!
š Bug
I generated a dataset that is supposed to have multiple types of objects on a table using the following command:
Trying to run an episode via a simple example script leads to the following error:
Steps to Reproduce
Steps to reproduce the behavior:
Dataset config:
Habitat config:
script that errors:
Thanks!