Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
  1. Start docker 启动命令可参考: README.md

  2. Prepare model

# download stable-diffusion-xl from huggingface
git clone https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
  1. Prepare dataset
  1. 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
  1. Convert scripts to musa
  1. Train
  1. Inference
python sd_inference.py \
    --model_path ./stable-diffusion-xl-base-1.0 \
    --batch_size 2