- Python 3.10+
- Node.js 18+
- Docker & Docker Compose (optional)
- 8GB+ RAM (16GB recommended)
- CUDA GPU (optional, for faster inference)
cd artistry-backend
docker-compose up --buildThis starts all 6 services:
- ✅ Gateway (http://localhost:8000)
- ✅ Detect (http://localhost:8001)
- ✅ Segment (http://localhost:8002)
- ✅ Advise (http://localhost:8003)
- ✅ Generate (http://localhost:8004)
- ✅ Commerce (http://localhost:8005)
cd frontend
npm install
npm run devAccess: http://localhost:5173/enhanced-workflow
Each service runs independently:
cd artistry-backend/detect
pip install -r requirements.txt
uvicorn app.main:app --port 8001 --reloadcd artistry-backend/segment
pip install -r requirements.txt
uvicorn app.main:app --port 8002 --reloadcd artistry-backend/advise
pip install -r requirements.txt
uvicorn app.main:app --port 8003 --reloadNote: First run will download LLaVA model (~13GB). This may take time.
cd artistry-backend/generate
pip install -r requirements.txt
uvicorn app.main:app --port 8004 --reloadNote: First run will download Stable Diffusion models (~5GB).
cd artistry-backend/commerce
pip install -r requirements.txt
uvicorn app.main:app --port 8005 --reloadcd artistry-backend/gateway
pip install -r requirements.txt
uvicorn app.main:app --port 8000 --reloadcd frontend
npm install
npm run devcurl -X POST http://localhost:8001/detect/ \
-H "Content-Type: application/json" \
-d '{"image_b64": "YOUR_BASE64_IMAGE"}'curl http://localhost:8005/commerce/products/bedcurl http://localhost:8000/health
curl http://localhost:8001/health
curl http://localhost:8002/health
curl http://localhost:8003/health
curl http://localhost:8004/health
curl http://localhost:8005/health- Visit: http://localhost:5173/enhanced-workflow
- Upload a room image
- Select budget (Low/Medium/High)
- Enter design preferences
- Select items to replace
- Click "Generate Design"
- View results + shopping recommendations
# MongoDB (optional)
MONGO_URI=mongodb://localhost:27017
# Service URLs (for Docker)
DETECT_URL=http://detect:8001
SEGMENT_URL=http://segment:8002
ADVISE_URL=http://advise:8003
GENERATE_URL=http://generate:8004
COMMERCE_URL=http://commerce:8005
# Service URLs (for local development)
# DETECT_URL=http://localhost:8001
# SEGMENT_URL=http://localhost:8002
# ADVISE_URL=http://localhost:8003
# GENERATE_URL=http://localhost:8004
# COMMERCE_URL=http://localhost:8005VITE_API_BASE=http://localhost:8000Solution:
# Check if ports are in use
netstat -ano | findstr :8000
netstat -ano | findstr :8001
# Kill conflicting processes or change portsSolution:
# Check internet connection
# Ensure sufficient disk space (20GB+ free)
# Try manual download:
cd artistry-backend/advise/app
# Download LLaVA model manually from HuggingFaceSolution:
- Use Docker with memory limits
- Reduce batch sizes in generation
- Close other applications
- Use CPU-only mode (slower but less memory)
Solution:
# Check CORS settings in backend services
# Verify VITE_API_BASE in .env
# Check if gateway is running on port 8000-
Reduce inference steps:
- Detection: Use YOLOv8n (nano) - already set
- Generation: Reduce to 20 steps (default: 30)
-
Use smaller models:
- Already using optimized variants (YOLOv8n, MobileSAM)
-
Enable attention slicing:
- Already enabled in Generate service
-
Enable CUDA:
- Models automatically detect and use GPU
- Verify:
torch.cuda.is_available()returnsTrue
-
Use FP16:
- Already enabled for GPU inference
-
Increase batch sizes (if multi-image processing)
-
Budget Comparison:
- Same room, different budgets
- See material quality differences
-
Style Exploration:
- "Modern minimalist"
- "Cozy bohemian"
- "Luxury hotel"
- "Scandinavian bright"
-
Partial Redesign:
- Replace only specific items
- Keep furniture, change colors
-
Shopping Integration:
- Browse matched products
- Compare vendors
- Track prices
- Save/Load designs
- User accounts
- Design history
- Social sharing
- Real product API integration
- AR preview (mobile)
Full API documentation available at:
- Gateway: http://localhost:8000/docs
- Detect: http://localhost:8001/docs
- Segment: http://localhost:8002/docs
- Advise: http://localhost:8003/docs
- Generate: http://localhost:8004/docs
- Commerce: http://localhost:8005/docs
Issues? Open a GitHub issue with:
- Error logs
- System specs (CPU/GPU, RAM)
- Steps to reproduce
Questions? Check ENHANCED_ARCHITECTURE.md for detailed documentation.
Happy Designing! 🎨✨