praeclarumjj3 commited on
Commit
7f81961
1 Parent(s): 5b22f91
Files changed (3) hide show
  1. Dockerfile +3 -0
  2. deform_setup.sh +2 -2
  3. gradio_app.py +2 -2
Dockerfile CHANGED
@@ -45,6 +45,9 @@ RUN ln -s $WORKDIR/oneformer/modeling/pixel_decoder/ops/ $WORKDIR/ && ls && cd o
45
 
46
  RUN sh deform_setup.sh
47
 
 
 
 
48
  USER user
49
 
50
  EXPOSE 7860
 
45
 
46
  RUN sh deform_setup.sh
47
 
48
+ USER user
49
+ RUN sh deform_setup.sh
50
+
51
  USER user
52
 
53
  EXPOSE 7860
deform_setup.sh CHANGED
@@ -1,9 +1,9 @@
1
  #!/usr/bin/env bash
2
- # nvidia-smi
3
  # ln -s ./oneformer/modeling/pixel_decoder/ops/ ./
4
  # ls
5
  # cd ops/ && bash make.sh && cd ..
6
-
7
  echo '----------------------------------------------------------------'
8
  echo '----------------------------------------------------------------'
9
  pip3 freeze | grep MultiScaleDeformableAttention
 
1
  #!/usr/bin/env bash
2
+
3
  # ln -s ./oneformer/modeling/pixel_decoder/ops/ ./
4
  # ls
5
  # cd ops/ && bash make.sh && cd ..
6
+ nvidia-smi
7
  echo '----------------------------------------------------------------'
8
  echo '----------------------------------------------------------------'
9
  pip3 freeze | grep MultiScaleDeformableAttention
gradio_app.py CHANGED
@@ -1,7 +1,7 @@
1
  import subprocess
2
  import torch
3
- # if torch.cuda.is_available():
4
- # subprocess.run('sh deform_setup.sh', shell=True)
5
 
6
  print("Installed the dependencies!")
7
 
 
1
  import subprocess
2
  import torch
3
+ if torch.cuda.is_available():
4
+ subprocess.run('sh deform_setup.sh', shell=True)
5
 
6
  print("Installed the dependencies!")
7