```bash
git clone https://github.com/huggingface/diffusers
cd diffusers
pip install .
```  
Navigate to the example folder with the training script and install the required dependencies:  
```bash
cd examples/custom_diffusion
pip install -r requirements.txt
pip install clip-retrieval
```  
<Tip>