Learning to Act Properly: Predicting and Explaining Affordances from Images


Ching-Yao Chuang1, Jiaman Li1, Antonio Torralba2, Sanja Fidler1
1University of Toronto   2Massachusetts Institute of Technology  

We address the problem of affordance reasoning in diverse scenes that appear in the real world. Affordances relate the agent's actions to their effects when taken on the surrounding objects. In our work, we take the egocentric view of the scene, and aim to reason about action-object affordances that respect both the physical world as well as the social norms imposed by the society. We also aim to teach artificial agents why some actions should not be taken in certain situations, and what would likely happen if these actions would be taken. We collect a new dataset that builds upon ADE20k, referred to as ADE-Affordance, which contains annotations enabling such rich visual reasoning. We propose a model that exploits Graph Neural Networks to propagate contextual information from the scene in order to perform detailed affordance reasoning about each object. Our model is showcased through various ablation studies, pointing to successes and challenges in this complex task.

 Download Paper

ADE-Affordance Dataset

we collected a new dataset which we refer to as the ADE-Affordance dataset. We build our annotations on top of the ADE20k. Our dataset contains images from a wide variety of scene types, ranging from indoor scenes such as airport terminal or living room, to outdoor scenes such as street scene or zoo. It covers altogether 900 scenes, and is a good representative of the diverse world we live in. Furthermore, ADE-Affordance has been densely annotated with object instance masks and corresponding affordance, forming likely one of the most comprehensive datasets to date.

In particular, the affordance between an action and a object includes the following information:

  1. Relationship: categorize the relationship between an object and an action
  2. Explanation: explain the reason why the action cannot be taken
  3. Consequence: foresee the (negative) consequence if action was to be taken

 Download Dataset !

Each folder contains affordance annotation separated by scene category (same scene categories than the ADE20K). The original image and segmentations can be downloaded here. For each image, the relationships for each object action pair are stored in .txt files. Explanations and consequences are stored in .json files.

Note that the object id in our dataset is exactly the same as in ADE20K dataset. We can directly combine the object class or instance segmentation map in ADE20K dataset for further model training. We also provide a list of file pathes in "file_path" directory which can link the image id we selected for ADE-Affordance to the original path in ADE20K dataset

Spatial Gated Graph Neural Network

Reasoning about the affordances thus requires both, understanding the semantic classes of all objects in the scene, as well as their spatial relations. We propose to model these dependencies via a graph. The nodes in our graph indicate objects in the image, while the edges encode the spatial relations between adjacent objects. We adopt the GGNN framework to predict and explain affordances. We refer to our method as Spatial GGNN since our graph captures spatial relations between objects to encode context.

Qualitative Results

Relationship Prediction for different models. Columns 2-6 use GT segmentation, while the last row also predicts segmentation.
Explanation and Consequence Generation. Ground-truth segmentation is used in this experiment.

Citation

Bibilographic information for this work:

C.-Y. Chuang, J. Li, A. Torralba, and S. Fidler. "Learning to Act Properly: Predicting and Explaining Affordances from Images." arXiv, 2017. [PDF]


  @article{cychuang2017learning,
    title={Learning to Act Properly: Predicting and Explaining Affordances from Images},
    author={Chuang, Ching-Yao and Li, Jiaman and Torralba, Antonio and Fidler, Sanja},
    journal={arXiv preprint arXiv:1712.07576},
    year={2017}
  }

Last Update: Dec 5th, 2017
Web Page Template: this