HeliosZhao commited on
Commit
681faa4
1 Parent(s): 5c068bb

update dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +2 -2
Dockerfile CHANGED
@@ -46,8 +46,8 @@ RUN pip install --no-cache-dir -U torch==2.0.0+cu117 torchvision==0.15.1+cu117 t
46
  RUN pip install --no-cache-dir -U xformers==0.0.17
47
  COPY --chown=1000 requirements.txt /tmp/requirements.txt
48
  RUN pip install --no-cache-dir -U -r /tmp/requirements.txt
49
- RUN pip install -e Make-A-Protagonist/experts/GroundedSAM/segment_anything
50
- RUN pip install -e Make-A-Protagonist/experts/GroundedSAM/GroundingDINO
51
 
52
  COPY --chown=1000 . ${HOME}/app
53
  RUN cd Make-A-Protagonist && patch -p1 < ../patch
 
46
  RUN pip install --no-cache-dir -U xformers==0.0.17
47
  COPY --chown=1000 requirements.txt /tmp/requirements.txt
48
  RUN pip install --no-cache-dir -U -r /tmp/requirements.txt
49
+ # RUN pip install -e Make-A-Protagonist/experts/GroundedSAM/segment_anything
50
+ # RUN pip install -e Make-A-Protagonist/experts/GroundedSAM/GroundingDINO
51
 
52
  COPY --chown=1000 . ${HOME}/app
53
  RUN cd Make-A-Protagonist && patch -p1 < ../patch
app.py CHANGED
@@ -6,8 +6,8 @@ import os
6
  import sys
7
  import warnings
8
 
9
- # os.system("python -m pip install -e Make-A-Protagonist/experts/GroundedSAM/segment_anything")
10
- # os.system("python -m pip install -e Make-A-Protagonist/experts/GroundedSAM/GroundingDINO")
11
  # os.system("pip install --upgrade diffusers[torch]")
12
  warnings.filterwarnings("ignore")
13
 
 
6
  import sys
7
  import warnings
8
 
9
+ os.system("python -m pip install -e Make-A-Protagonist/experts/GroundedSAM/segment_anything")
10
+ os.system("python -m pip install -e Make-A-Protagonist/experts/GroundedSAM/GroundingDINO")
11
  # os.system("pip install --upgrade diffusers[torch]")
12
  warnings.filterwarnings("ignore")
13