An AI creation platform based on Stable Diffusion, supporting both image and video generation. This project integrates multiple advanced AI models and provides a user-friendly web interface for creating high-quality AI-generated images and videos.
- Stable Diffusion XL Base 1.0
- Stable Diffusion 1.5
- Realistic Vision V5.1
- Dreamshaper V8
- Custom prompt support
- Parameter adjustment
- Negative prompt support
- Stable Video Diffusion
- Custom prompt support
- Video parameter adjustment
- Negative prompt support
- Stable Video Diffusion
- Custom initial image support
- Video parameter adjustment
- Motion intensity control
- ControlNet support
- Image inpainting
- Image outpainting
- Prompt-based editing
- Video restoration
- Video style transfer
- Frame interpolation
- Video upscaling
- Multiple high-quality models:
- Stable Diffusion XL
- Stable Diffusion 1.5
- Realistic Vision
- Dreamshaper
- Custom generation parameters
- High-quality output
- Batch generation support
- Based on Stable Video Diffusion
- Image-to-video conversion
- Text-to-video generation
- Adjustable video parameters
- Intuitive web interface
- Real-time preview
- Parameter control
- Example prompts
- MacOS (Apple Silicon)
- Python 3.10+
- 32GB RAM (recommended)
- Disk space: 20GB minimum (for model storage)
- Install Conda (skip if already installed):
# Download Miniforge3 (for Apple Silicon)
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh"
bash Miniforge3-MacOSX-arm64.sh
- Create and activate environment:
# Create Python 3.10 environment
conda create -n diffusers python=3.10
conda activate diffusers
- Install PyTorch (with MPS acceleration):
# Install PyTorch with MPS support
conda install pytorch torchvision torchaudio -c pytorch-nightly
- Clone the project:
git clone https://github.com/samzong/sd-chat.git
cd sd-chat
- Install dependencies:
pip install -r requirements.txt
- Start the service:
python run.py
Initial run will automatically download required models, which may take some time depending on your network connection.
- Access the interface: Open http://localhost:7860 in your browser
sd-chat/
├── run.py # Unified startup script (recommended)
├── api.py # Image generation service
├── video_api.py # Video generation service
├── web_ui.py # Web interface
└── requirements.txt # Project dependencies
Issues and Pull Requests are welcome to help improve the project.