English/中文
This is a Cog model for Replicate which works great for me.
To use it locally or before pushing your own fork you first have to download the weights by running the following command: cog run scripts/download_weights.py
.
-
Clone the repository using either of the following commands:
git clone https://github.com/HyiKi/cog-sdxl-template/tree/main
gh repo clone HyiKi/cog-sdxl-template
-
Install the required dependencies by running the command:
pip install -r requirements.txt
. -
Set the values for
SDXL_MODEL_CACHE
andlora_model_path
according to your requirements. -
Download the weights by running the command:
cog run scripts/download_weights.py
. -
Follow the instructions provided in the Push a model to Replicate guide to push your model to Replicate.