updates
Browse files- app.py +1 -9
- requirements.txt +4 -1
app.py
CHANGED
@@ -73,15 +73,7 @@ with gr.Blocks() as demo:
|
|
73 |
tracking_points = gr.State([])
|
74 |
trackings_input_label = gr.State([])
|
75 |
with gr.Column():
|
76 |
-
gr.Markdown("# SAM2 Image
|
77 |
-
gr.Markdown("This is a simple demo for image segmentation with SAM2.")
|
78 |
-
gr.Markdown("""Instructions:
|
79 |
-
|
80 |
-
1. Upload your image
|
81 |
-
2. With 'include' point type selected, Click on the object to mask
|
82 |
-
3. Switch to 'exclude' point type if you want to specify an area to avoid
|
83 |
-
4. Submit !
|
84 |
-
""")
|
85 |
with gr.Row():
|
86 |
with gr.Column():
|
87 |
input_image = gr.Image(
|
|
|
73 |
tracking_points = gr.State([])
|
74 |
trackings_input_label = gr.State([])
|
75 |
with gr.Column():
|
76 |
+
gr.Markdown("# SAM2 Image Segmenter")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
with gr.Row():
|
78 |
with gr.Column():
|
79 |
input_image = gr.Image(
|
requirements.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1 |
opencv-python
|
2 |
git+https://github.com/facebookresearch/sam2.git
|
3 |
-
|
|
|
|
|
|
|
|
1 |
opencv-python
|
2 |
git+https://github.com/facebookresearch/sam2.git
|
3 |
+
torch==2.5.1
|
4 |
+
torchvision==0.20.1
|
5 |
+
torchaudio==2.5.1
|
6 |
+
spaces
|