Spaces:
Runtime error
Runtime error
JeffLiang
commited on
Commit
·
3b51872
1
Parent(s):
01d0cdf
segment_anything only
Browse files
app.py
CHANGED
|
@@ -55,9 +55,10 @@ def inference(class_names, proposal_gen, granularity, input_img):
|
|
| 55 |
|
| 56 |
examples = [['Saturn V, toys, desk, sunflowers, white roses, chrysanthemums, carnations, green dianthus', 'Segment_Anything', 0.8, './resources/demo_samples/sample_01.jpeg'],
|
| 57 |
['red bench, yellow bench, blue bench, brown bench, green bench, blue chair, yellow chair, green chair', 'Segment_Anything', 0.8, './resources/demo_samples/sample_04.png'],
|
| 58 |
-
['Saturn V, toys, blossom', 'MaskFormer', 1.0, './resources/demo_samples/sample_01.jpeg'],
|
| 59 |
-
['Oculus, Ukulele', 'MaskFormer', 1.0, './resources/demo_samples/sample_03.jpeg'],
|
| 60 |
-
['Golden gate, yacht', 'MaskFormer', 1.0, './resources/demo_samples/sample_02.jpeg'],
|
|
|
|
| 61 |
output_labels = ['segmentation map']
|
| 62 |
|
| 63 |
title = 'OVSeg (+ Segment_Anything)'
|
|
|
|
| 55 |
|
| 56 |
examples = [['Saturn V, toys, desk, sunflowers, white roses, chrysanthemums, carnations, green dianthus', 'Segment_Anything', 0.8, './resources/demo_samples/sample_01.jpeg'],
|
| 57 |
['red bench, yellow bench, blue bench, brown bench, green bench, blue chair, yellow chair, green chair', 'Segment_Anything', 0.8, './resources/demo_samples/sample_04.png'],
|
| 58 |
+
# ['Saturn V, toys, blossom', 'MaskFormer', 1.0, './resources/demo_samples/sample_01.jpeg'],
|
| 59 |
+
# ['Oculus, Ukulele', 'MaskFormer', 1.0, './resources/demo_samples/sample_03.jpeg'],
|
| 60 |
+
# ['Golden gate, yacht', 'MaskFormer', 1.0, './resources/demo_samples/sample_02.jpeg'],
|
| 61 |
+
]
|
| 62 |
output_labels = ['segmentation map']
|
| 63 |
|
| 64 |
title = 'OVSeg (+ Segment_Anything)'
|