haritsahm
commited on
Commit
·
24b1db2
1
Parent(s):
d0b945d
Replace original sam with medsam
Browse files- Dockerfile +1 -1
- app.py +1 -1
- checkpoint/{sam_vit_b_01ec64.pth → medsam_vit_b.pth} +2 -2
Dockerfile
CHANGED
@@ -18,7 +18,7 @@ RUN python3.10 -m pip install --no-cache-dir --upgrade pip && \
|
|
18 |
|
19 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install ffmpeg libsm6 libxext6 -y && rm -rf /var/lib/apt/lists
|
20 |
|
21 |
-
RUN python3.10 -m pip install --no-cache-dir git+https://github.com/
|
22 |
|
23 |
WORKDIR /code
|
24 |
|
|
|
18 |
|
19 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install ffmpeg libsm6 libxext6 -y && rm -rf /var/lib/apt/lists
|
20 |
|
21 |
+
RUN python3.10 -m pip install --no-cache-dir git+https://github.com/bowang-lab/MedSAM.git
|
22 |
|
23 |
WORKDIR /code
|
24 |
|
app.py
CHANGED
@@ -10,7 +10,7 @@ from PIL import Image
|
|
10 |
from streamlit_drawable_canvas import st_canvas
|
11 |
from utils import utils
|
12 |
|
13 |
-
PREDICTOR_MODEL, AUTOMASK_MODEL = utils.get_model('checkpoint/
|
14 |
|
15 |
|
16 |
def process_box(predictor_model, show_mask, radius_width):
|
|
|
10 |
from streamlit_drawable_canvas import st_canvas
|
11 |
from utils import utils
|
12 |
|
13 |
+
PREDICTOR_MODEL, AUTOMASK_MODEL = utils.get_model('checkpoint/medsam_vit_b.pth')
|
14 |
|
15 |
|
16 |
def process_box(predictor_model, show_mask, radius_width):
|
checkpoint/{sam_vit_b_01ec64.pth → medsam_vit_b.pth}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb845f3f42f585634ead00fad7728f44ddbe369a1e8c55b0df3cce5f6e1c1977
|
3 |
+
size 375045993
|