sg2im is a research codebase that learns to synthesize images from scene graphs—structured descriptions of objects and their relationships. Instead of conditioning on free-form text alone, it leverages graph structure to control layout and interactions, generating scenes that respect constraints like “person left of dog” or “cup on table.” The pipeline typically predicts object layouts (bounding boxes and masks) from the graph, then renders a realistic image conditioned on those layouts. This separation lets the model reason about geometry and composition before committing to texture and color, improving spatial fidelity. The repository includes training code, datasets, and evaluation scripts so researchers can reproduce baselines and extend components such as the graph encoder or image generator. In practice, sg2im demonstrates how structured semantics can guide generative models to produce controllable, compositional imagery.

Features

  • Graph encoder that maps objects and relations to spatial layouts
  • Layout-to-image generator for realistic rendering from structure
  • Support for constraints like left-of, on-top-of, and inside relationships
  • Modular components for swapping encoders, decoders, and losses
  • Training and evaluation scripts for reproducible experiments
  • Useful baselines for controllable, compositional image synthesis

Project Samples

Project Activity

See All Activity >

Categories

AI Models

License

Apache License V2.0

Follow SG2Im

SG2Im Web Site

Other Useful Business Software
Award-winning proxy networks, AI-powered web scrapers, and business-ready datasets for download.
 Icon
Award-winning proxy networks, AI-powered web scrapers, and business-ready datasets for download.


How the world collects public web data

Bright Data is a leading data collection platform, enabling businesses to collect crucial structured and unstructured data from millions of websites through our proprietary technology. Our proxy networks give you access to sophisticated target sites using precise geo-targeting. You can also use our tools to unblock tough target sites, accomplish SERP-specific data collection tasks, manage and optimize your proxy performance as well as automating all of your data collection needs.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SG2Im!

Additional Project Details

Programming Language

Python

Related Categories

Python AI Models

Registered

2025-10-10