askforalfred / alfred

ALFRED - A Benchmark for Interpreting Grounded Instructions for Everyday Tasks
MIT License
352 stars 77 forks source link

generate_trajectories.py #101

Open Halmoni100 opened 2 years ago

Halmoni100 commented 2 years ago

Hello, I'm trying to run "generate_trajectories.py" per the instructions in the markdown file.

However, I get errors of the following type

if constants.data_dict['pddl_params']['object_sliced']:
KeyError: 'pddl_params'

And also

File "/home/mrincredible/Projects/independent-research/test-alfred/alfred/gen/game_states/task_game_state.py", line 318, in setup_problem
    raise Exception("Couldn't find a valid receptacle object of class '%s'" % objs['receptacle'])
Exception: Couldn't find a valid receptacle object of class X

And some other errors.

I was wondering what could be going on? Thanks!

MohitShridhar commented 2 years ago

@Halmoni100 can you point me to the line where the first error happens?

Exception: Couldn't find a valid receptacle object of class X

This is expected. Some task goals have no valid solutions like "put an apple in a bowl" in a randomly sampled scene with no bowls.

Samuel-Fipps commented 1 year ago

I'm getting the same thing with none of them working with over 1,000 error's 90% of the errors are KeyError: 'pddl_params'

Found the answer: https://github.com/askforalfred/alfred/issues/104