Instructions to use skyadmin/cog-webui-sd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use skyadmin/cog-webui-sd with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("skyadmin/cog-webui-sd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| import sys | |
| # this will break any attempt to import xformers which will prevent stability diffusion repo from trying to use it | |
| if "--xformers" not in "".join(sys.argv): | |
| sys.modules["xformers"] = None | |