Spaces:
Configuration error
Configuration error
A newer version of the Gradio SDK is available:
5.45.0
metadata
title: FaceSpace Studio
emoji: π
colorFrom: red
colorTo: gray
sdk: gradio
sdk_version: 5.35.0
app_file: app.py
pinned: false
π FaceSpace Studio
AI face replacement using the latest models and optimizations
β¨ Features
- π Latest AI Stack: PyTorch 2.7.1 + Gradio 5.35.0 + Diffusers 0.31.0
- π§ Advanced Models: InsightFace Buffalo_L + Stable Diffusion v1.5 + DPM++ Scheduler
- β‘ GPU Optimizations: XFormers + Memory Management
- π¨ Professional Blending: Poisson Seamless Cloning + Alpha Blending
- πΉ Video Processing: FFmpeg + Frame-by-frame replacement
- π Security: Input validation + Memory limits
π¬ Technical Specifications
Core Dependencies
- PyTorch: 2.7.1 (Latest stable)
- Gradio: 5.35.0 (Server-side rendering)
- Diffusers: 0.31.0 (Latest model optimizations)
- Transformers: 4.45.0 (Performance improvements)
- OpenCV: 4.10.0.84 (Latest computer vision)
- InsightFace: 0.7.3 (Face detection)
- XFormers: 0.0.28.post1 (Memory-efficient attention)
AI Pipeline
- Face Detection: InsightFace Buffalo_L
- Enhancement: Stable Diffusion v1.5 with DPM++ scheduler
- Blending: Poisson seamless cloning or alpha blending
- Optimization: GPU acceleration with memory management
π Usage
Image Processing
- Upload target image and reference face
- Adjust enhancement prompt and settings
- Select blend method (Poisson recommended)
- Process with AI optimizations
Video Processing
- Upload video (up to 120 frames supported)
- Provide reference face image
- Configure processing parameters
- Generate enhanced video
βοΈ Advanced Settings
- Transformation Strength: 0.2-1.0 (higher = more dramatic)
- Guidance Scale: 1.0-20.0 (higher = stronger prompt following)
- Quality Steps: 15-50 (more steps = better quality)
- Blend Method: Poisson (seamless) or Alpha (soft)
π‘ Tips for Best Results
- High-Quality Images: Use well-lit, high-resolution photos
- Clear Face Visibility: Front-facing angles work best
- Prompt Engineering: Detailed prompts improve results
- Poisson Blending: Use for seamless integration
π― Recommended Hardware
- CPU: 8+ cores, 16GB+ RAM
- GPU: NVIDIA T4 (16GB VRAM) or better
- Storage: 20GB+ for models and cache
Built with 2025 technology stack
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference