fffiloni commited on
Commit
02b684c
·
1 Parent(s): d5afe14

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use an official Python runtime as a parent image
2
- FROM python:3.8
3
 
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
@@ -17,6 +17,9 @@ WORKDIR $HOME/app
17
  # Clone your repository or add your code to the container
18
  RUN git clone -b dev https://github.com/camenduru/DiffBIR $HOME/app
19
 
 
 
 
20
  # Install Python dependencies
21
  RUN pip install -q einops pytorch_lightning gradio omegaconf xformers==0.0.20 transformers lpips opencv-python
22
 
@@ -47,4 +50,4 @@ RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co
47
  # EXPOSE 80
48
 
49
  # Define the command to run your application
50
- CMD ["python", "gradio_diffbir.py", "--ckpt", "$HOME/app/models/general_full_v1.ckpt", "--config", "$HOME/app/DiffBIR/configs/model/cldm.yaml", "--reload_swinir", "--swinir_ckpt", "$HOME/app/models/general_swinir_v1.ckpt"]
 
1
  # Use an official Python runtime as a parent image
2
+ FROM python:3.9
3
 
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
 
17
  # Clone your repository or add your code to the container
18
  RUN git clone -b dev https://github.com/camenduru/DiffBIR $HOME/app
19
 
20
+ # Install PyTorch and torchvision with a specific CUDA toolkit version
21
+ RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 -f https://download.pytorch.org/whl/torch_stable.html
22
+
23
  # Install Python dependencies
24
  RUN pip install -q einops pytorch_lightning gradio omegaconf xformers==0.0.20 transformers lpips opencv-python
25
 
 
50
  # EXPOSE 80
51
 
52
  # Define the command to run your application
53
+ CMD ["python", "gradio_diffbir.py", "--ckpt", "$HOME/app/models/general_full_v1.ckpt", "--config", "$HOME/app/configs/model/cldm.yaml", "--reload_swinir", "--swinir_ckpt", "$HOME/app/models/general_swinir_v1.ckpt"]