Enflame Stable Diffusion in gradio
How to run Stable Diffusion Model on Enflame GPU
1.0 Creating a Container Instance
- Login to OpenCSG Compute Platform
- Create an enfalme instance
- Select image
出图Stable Diffusion xx
2.1 Quick Start
2.1.1 download onnx model
git clone --depth 1 https://www.opencsg.com//models/xzgan/stable-diffusion-xl-base-1.0_onnx.git
2.1.2 download sdxl gradio
git clone https://www.opencsg.com//codes/xzgan/stable-diffusion-gradio-gcu.git
2.1.3 move model
cp -rf stable-diffusion-xl-base-1.0_onnx/1024x1024 stable-diffusion-gradio-gcu/model/
2.1.4 startup
cd stable-diffusion-gradio-gcu
pip install -r requirements.txt
nohup python main.py > output.log 2>&1 &
wait for service completion, then access to my instances-> my service to access service.