Generate stunning interior design variations instantly using Stable Diffusion and a real-time backend pipeline.
Virtual Interior Design is an AI-powered application that takes user style preferences as input and generates 5+ unique interior layout variations per request. Built with Stable Diffusion for image generation and a Flask + FastAPI backend, it enables non-technical users to visualize and compare room designs instantly — reducing manual design effort by approximately 60%.
- 🎨 5+ design variations generated per request with unique lighting and style
- 🪑 Custom inputs — room type, furniture style, and room theme
- ⚡ Real-time backend pipeline — style inputs processed and previews rendered instantly
- 🖼️ Side-by-side comparison interface for faster design decision-making
- 🧠 Stable Diffusion v1.5 integration for photorealistic room generation
- 👤 Designed for non-technical users with a clean, minimal single-page UI
| Layer | Technology |
|---|---|
| AI / Image Generation | Stable Diffusion v1.5 (Hugging Face diffusers) |
| Backend API | FastAPI |
| Web Server | Flask |
| Frontend | HTML, CSS, JavaScript |
| Language | Python 3.9+ |
User selects Room Type + Furniture Style + Room Theme
↓
Flask frontend sends request to FastAPI backend
↓
FastAPI builds unique prompts per variation
↓
Stable Diffusion generates 5+ photorealistic images
↓
Images returned as base64 and rendered in browser
↓
User views and compares designs side by side
virtual-interior-design/
├── app.py # Flask frontend server
├── api/
│ ├── __init__.py
│ └── main.py # FastAPI backend & routes
├── model/
│ ├── __init__.py
│ └── generate.py # Stable Diffusion pipeline
├── static/
│ ├── css/
│ │ └── style.css
│ └── js/
│ └── app.js
├── templates/
│ └── index.html # Single-page UI
├── requirements.txt
├── .gitignore
└── README.md
- Python 3.9+
- GPU recommended (NVIDIA with CUDA) for faster inference
- ~4GB disk space for model download (auto on first run)
# 1. Clone the repository
git clone https://github.com/gurramgagandeep-stack/virtual-interior-design.git
cd virtual-interior-design
# 2. Create a virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Start the FastAPI backend (Terminal 1)
uvicorn api.main:app --reload --port 8000
# 5. Start the Flask frontend (Terminal 2)
python app.py
# 6. Open in your browser
http://localhost:5000
⚠️ On first run, Stable Diffusion v1.5 (~4GB) will be downloaded automatically from Hugging Face.
flask
fastapi
uvicorn
diffusers
transformers
torch
accelerate
Pillow
requests
pydantic
| Metric | Value |
|---|---|
| Design variations per request | 5+ |
| Manual design effort reduced | ~60% |
| Supported room types | 6 |
| Supported furniture styles | 6 |
| Supported room themes | 6 |
Interior design is time-consuming and expensive for non-professionals. This project explores how generative AI can democratize design by giving anyone the ability to visualize their ideal space instantly — no design experience required.
- Upload existing room photo for AI-based redesign
- 3D room rendering support
- Furniture e-commerce integration
- User accounts to save and revisit designs
- Mobile-responsive layout
GD Gagandeep B.E. Computer Science (AI & ML) — RYMEC, Ballari LinkedIn · GitHub
This project is open source and available under the MIT License.