Code Monkey home page Code Monkey logo

layout-gnn's Introduction

Learn Layout metric using a Neural Render

The main idea of this is to combine the two approaches used in [1], [2].

Basically, the idea was that a similarity distance between UI layout must encode graph similarity and rendering similarity. To achieve this, the idea is to encode the UI layout as a graph (tree) and train a GNN in order to find a latent space where these two similarities are “merged”.

In order to train the GNN, we would use a loss that consists of:

  • A triplet loss between 3 UI, the positive pair and the negative pair, is found using Tree/Graph edit distance. (This part allows the GNN to learn graph structural information)
  • A reconstruction loss that from the GNN embedding tries to render the UI. For this, we could use the L2 loss and FID loss between the images. This term allows the GNN to learn that some features influence more the final UI than others.

To achieve this, we will need 2 models:

  • One GNN that embeds a UI graph.
  • One Neural Render that from a GNN embedding renders the resultant UI.

In order to train all this, we will use the RICO dataset.

Research Steps

  • Dataset Creation

    • Defining the core representation and normalize the data.
    • Split the dataset.
    • Create the triplets using a pre defined metric.
  • Model Training

    • Defining which models we want to use and implement the code.
    • Implement the training script that uses multiple losses.
      • Use pre-trained vectors as target / as triplet metric.
  • Analysis

    • Ablation study of different models.
    • Ablation study of use of different representations.
    • Ablation study of use of different losses.

layout-gnn's People

Contributors

menezesandre avatar ssamdav avatar

Watchers

 avatar Sofia Aparicio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.