generated from AutismLLM/banana-controlnet-img2img
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (26 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM nvcr.io/nvidia/pytorch:23.02-py3
WORKDIR /
RUN apt-get update && apt-get install -y git wget
RUN pip3 install --upgrade pip
ADD requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
RUN python3 -m pip install --upgrade tensorrt
ADD app.py .
RUN mkdir -p /deliberate-model/engine
RUN wget -O /deliberate-model/engine/vae.plan https://huggingface.co/FluttyProger/Deliberate-onnx/resolve/main/engine/vae.plan
RUN wget -O /deliberate-model/engine/unet.plan https://huggingface.co/FluttyProger/Deliberate-onnx/resolve/main/engine/unet.plan
RUN wget -O /deliberate-model/engine/clip.plan https://huggingface.co/FluttyProger/Deliberate-onnx/resolve/main/engine/clip.plan
ADD txt2img_pipeline.py .
ADD stable_diffusion_pipeline.py .
ADD utilities.py .
ADD models.py .
ADD text_encoder.py .
ADD lpw.py .
ADD special_tokens_map.json /files/tokenizer/
ADD vocab.json /files/tokenizer/
ADD tokenizer_config.json /files/tokenizer/
ADD merges.txt /files/tokenizer/
ADD scheduler_config.json /files/scheduler/
EXPOSE 8000
ENV CUDA_MODULE_LOADING=LAZY
CMD python3 -u app.py