Skip to content

Template suitable for deploying replicate's txt2img and img2img(部署replicate的python模版,适用于文生图、图生图的场景)

Notifications You must be signed in to change notification settings

HyiKi/cog-sdxl-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cog SDXL Template

English/中文

Introduction

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.

GUIDE

  1. 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
  2. Install the required dependencies by running the command: pip install -r requirements.txt.

  3. Set the values for SDXL_MODEL_CACHE and lora_model_path according to your requirements.

  4. Download the weights by running the command: cog run scripts/download_weights.py.

  5. Follow the instructions provided in the Push a model to Replicate guide to push your model to Replicate.

About

Template suitable for deploying replicate's txt2img and img2img(部署replicate的python模版,适用于文生图、图生图的场景)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages