replicate / cog-sdxl

Stable Diffusion XL training and inference as a cog model
https://replicate.com/stability-ai/sdxl
Apache License 2.0
212 stars 106 forks source link

to deploy the model by pushing it to replicate #51

Open emirhanbilgic opened 8 months ago

emirhanbilgic commented 8 months ago

Some changes have been made for users who want to deploy the trainable model by pushing it to replicate.com.

If these changes are not made, the following error is encountered:

Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory ./sdxl-cache. https://replicate.com/p/qy7ge2tb2mwwc7guoi7mztttpe?input=form

For this reason, the download_weights.py script should be unextended and can be run with cog run ..., also ./sdxl-cache should be removed from dockerignore.