Before running the scripts, make sure to install the library's training dependencies:
To make sure you can successfully run the latest versions of the example scripts, we highly recommend installing from source and keeping the install up to date as we update the example scripts frequently and install some example-specific requirements. To do this, execute the following steps in a new virtual environment:
- Create a virtual environment (with Python 3.9):
conda create -n t2icombench python=3.9
conda activate t2icombench
- Install diffusers from source:
git clone https://github.com/huggingface/diffusers
cd diffusers
pip install .
- Install other provided requirements:
pip install -r requirements.txt
- Install 🤗Accelerate
accelerate config
- Install other dependencies required from the necessary repositories, including MiniGPT4, blip, UniDET(https://github.com/xingyizhou/UniDet), CLIP.
We recommend you refer to the original T2I-Combench repo for more details on the installation process.