Giter VIP home page Giter VIP logo

sg2im-demo's Introduction

Sg2im Web Demo

This is my attempt at making a web based demo of Google's sg2im, an end-to-end neural network model that converts a scene graph into a human recognizable image. My hope is to use their pretrained model to allow users to generate images themselves.

This web app will be built with React.js and Flask. My hope is that users can input potential objects (ie. sky, grass, shape) and their orders of relation so that they can create realistic images from the pre-trained model on the fly. This repo will contain the code for running the React.js frontend, this other repo contains the Flask service for serving the generated photos.

From their paper this is a visual example of how it works:

alt text

Things to do

  1. Use React components to save users objects and orders of relation (Done)
    • Function to save objects inputed from user to global scene graph ✔️
    • Function to add new objection relation rule components ✔️
    • Save object relations to global scene graph state ✔️
    • Create function to give users unique ID
  2. Write a Flask endpoint to receive scene graphs from React front end & write Ajax function to pass info (In Progress)
    • Rewrite some of the sg2im Python functions for better handling to generate image ✔️
    • Create Flask endpoint to receive JSON data via HTTP requests ✔️
    • Write GET request to retrieve image from API based on user ID
    • Add Zappa tooling to deploy serverless to AWS Lambda

Local demo instructions

To deploy the frontend, open a terminal and do the following:

git clone https://github.com/jtloong/sg2im-demo.git
cd sg2im-demo
npm start

If you want to have the full application, you'll need to clone the Flask API here and follow the demo instructions there.

Relevant links for the project

sg2im-demo's People

Contributors

jtloong avatar

Watchers

James Cloos avatar  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.