-
Start docker 启动命令可参考: README.md
-
Prepare model
# download stable-diffusion-xl from huggingface
git clone https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
- Prepare dataset
- Prepare scripts
# Ubuntu system
apt update
apt install -y libgl1-mesa-glx
pip install einops toml imagesize opencv-python voluptuous transformers==4.36.1 diffusers
- Convert scripts to musa
- Train
- Inference
python sd_inference.py \
--model_path ./stable-diffusion-xl-base-1.0 \
--batch_size 2