askforalfred / alfred

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

What is the format of the action masks in the original json file? #127

Closed wzcai99 closed 1 year ago

wzcai99 commented 1 year ago

After downloading the full_dataset, I extract the trajectory JSON files and try to figure out how to restore the original 300x300 image masks for actions. I noticed that in the preprocess.py file, a notation is listed that "The masks need to be decompressed". So could you please tell me how to decompress the action masks? Thank you.

wzcai99 commented 1 year ago

In the original JSON files, the action masks seems to be a (36x2) matrix and contains large values.

MohitShridhar commented 1 year ago

@wzcai99, see this for decompress_mask. Example usage here

The masks in the JSON files are compressed masks.

wzcai99 commented 1 year ago

Thank you very much. I close this issue.