/sg2im-api

Flask microservice that accepts scene graphs and sends back a generated image using sg2im.

Primary LanguagePython

Flask Microservice for Sg2im

This is a backend microservice that interfaces with the sg2im-demo. It accepts a scene graph in JSON over a POST request and returns a photorealistic image that is generated by the model.

Local Deployment

First time running the project? Please do the following:

git clone https://github.com/jtloong/sg2im-api
cd sg2im-api
python3 -m venv env

From then on, if you want to launch the service on your computer just run bash run.sh

The API will then be launched on http://127.0.0.1:5000/generate