Skip to content

code error #34

@wdy1100

Description

@wdy1100

When I run the code for rlbench, there will be one or more errors, but the code can run until meet the error. There is a example:
`*** OpenAI API call took 0.87s ***
########################################
...
composer("move to the center of the button with the magenta base")
composer("close the gripper")
composer("back to default pose")

done`

KeyError Traceback (most recent call last)
nstruction = np.random.choice(descriptions)
voxposer_ui(instruction)
import pdb ; pdb.set_trace()
exec_safe(to_exec, gvars, lvars)

custom_gvars = merge_dicts([
gvars,
{'exec': empty_fn, 'eval': empty_fn}
exec(code_str, custom_gvars, lvars)

File ~/Enbodied_AI/voxposer1/VoxPoser/src/utils.py:141, in Observation.getattr(self, key)
def getattr(self, key):
return self.obs_dict[key]

KeyError: 'color'

Can anyone tell what result in this, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions