Instructions to use knoxcs/stable-diffusion-webui-knox with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use knoxcs/stable-diffusion-webui-knox with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("knoxcs/stable-diffusion-webui-knox", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download Dockerfile from knoxcs/stable-diffusion-webui-knox: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/knoxcs/stable-diffusion-webui-knox/resolve/main/Dockerfile
- Command line
-
hf download hf://knoxcs/stable-diffusion-webui-knox/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/knoxcs/stable-diffusion-webui-knox/resolve/main/Dockerfile
464 Bytes
| FROM ubuntu:latest | |
| VOLUME /app/webui | |
| WORKDIR /app/webui | |
| RUN apt-get update | |
| RUN apt-get install -y python3 libgoogle-perftools4 \ | |
| libtcmalloc-minimal4 git python3-pip ffmpeg libsm6 libxext6 \ | |
| && adduser webui-user | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir packaging==21.3 \ | |
| && pip install --no-cache-dir httpx==0.24.1 | |
| EXPOSE 7860 | |
| USER webui-user | |
| RUN git config --global --add safe.directory /app/webui | |
| CMD ["./run.sh"] |