Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
@@ -23,8 +23,19 @@ RUN pip install -q einops pytorch_lightning gradio omegaconf xformers==0.0.20 tr
|
|
23 |
# Install open_clip from GitHub
|
24 |
RUN pip install -q git+https://github.com/mlfoundations/[email protected]
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
# Download checkpoint files using aria2
|
27 |
-
RUN apt-get update && apt-get install -y aria2
|
28 |
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lxq007/DiffBIR/resolve/main/general_full_v1.ckpt -d $HOME/app/models -o general_full_v1.ckpt
|
29 |
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lxq007/DiffBIR/resolve/main/general_swinir_v1.ckpt -d $HOME/app/models -o general_swinir_v1.ckpt
|
30 |
|
|
|
23 |
# Install open_clip from GitHub
|
24 |
RUN pip install -q git+https://github.com/mlfoundations/[email protected]
|
25 |
|
26 |
+
# Install aria2 directly using wget
|
27 |
+
RUN apt-get update && apt-get install -y wget && \
|
28 |
+
wget https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.gz && \
|
29 |
+
tar -xzvf aria2-1.36.0.tar.gz && \
|
30 |
+
cd aria2-1.36.0 && \
|
31 |
+
./configure && \
|
32 |
+
make && \
|
33 |
+
make install && \
|
34 |
+
cd .. && \
|
35 |
+
rm -rf aria2-1.36.0 && \
|
36 |
+
rm aria2-1.36.0.tar.gz
|
37 |
+
|
38 |
# Download checkpoint files using aria2
|
|
|
39 |
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lxq007/DiffBIR/resolve/main/general_full_v1.ckpt -d $HOME/app/models -o general_full_v1.ckpt
|
40 |
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lxq007/DiffBIR/resolve/main/general_swinir_v1.ckpt -d $HOME/app/models -o general_swinir_v1.ckpt
|
41 |
|