HeliosZhao commited on
Commit
afe31ff
1 Parent(s): 6ca7ae2

update groundedsam

Browse files
Dockerfile CHANGED
@@ -46,6 +46,9 @@ 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
 
 
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
+ COPY --chown=1000 checkpoints/*.whl /tmp/
50
+ RUN pip install --no-cache-dir -U /tmp/groundingdino-0.1.0-cp310-cp310-linux_x86_64.whl
51
+ RUN pip install --no-cache-dir -U /tmp/segment_anything-1.0-py3-none-any.whl
52
  # RUN pip install -e Make-A-Protagonist/experts/GroundedSAM/segment_anything
53
  # RUN pip install -e Make-A-Protagonist/experts/GroundedSAM/GroundingDINO
54
 
app.py CHANGED
@@ -5,9 +5,11 @@ from __future__ import annotations
5
  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
 
 
5
  import os
6
  import sys
7
  import warnings
8
+ # os.system("cd Make-A-Protagonist/experts/GroundedSAM")
9
+ # os.system("python -m pip install -e segment_anything")
10
+ # os.system("python -m pip install -e GroundingDINO")
11
+ # os.system("cd ../../..")
12
+ # os.system("python -m pip install -e Make-A-Protagonist/experts/GroundedSAM/GroundingDINO")
13
  # os.system("pip install --upgrade diffusers[torch]")
14
  warnings.filterwarnings("ignore")
15
 
checkpoints/groundingdino-0.1.0-cp310-cp310-linux_x86_64.whl ADDED
Binary file (288 kB). View file
 
checkpoints/segment_anything-1.0-py3-none-any.whl ADDED
Binary file (1.96 kB). View file
 
requirements.txt CHANGED
@@ -15,7 +15,7 @@ tensorboard
15
  # torch==1.13.1
16
  # torchvision==0.14.1
17
  transformers==4.27.4
18
- triton
19
  # xformers==0.0.17
20
  ipdb
21
  opencv-python
 
15
  # torch==1.13.1
16
  # torchvision==0.14.1
17
  transformers==4.27.4
18
+ # triton
19
  # xformers==0.0.17
20
  ipdb
21
  opencv-python