Spaces:
Running
on
L4
Running
on
L4
flamehaze1115
commited on
Commit
•
315832a
1
Parent(s):
7e91687
Update gradio_app.py
Browse files- gradio_app.py +1 -1
gradio_app.py
CHANGED
@@ -66,7 +66,7 @@ def sam_segment(predictor, input_image, *bbox_coords):
|
|
66 |
|
67 |
start_time = time.time()
|
68 |
|
69 |
-
outputs = predictor(
|
70 |
|
71 |
print(f"SAM Time: {time.time() - start_time:.3f}s")
|
72 |
out_image = np.zeros((image.shape[0], image.shape[1], 4), dtype=np.uint8)
|
|
|
66 |
|
67 |
start_time = time.time()
|
68 |
|
69 |
+
outputs = predictor(input_image, points_per_batch = 256)
|
70 |
|
71 |
print(f"SAM Time: {time.time() - start_time:.3f}s")
|
72 |
out_image = np.zeros((image.shape[0], image.shape[1], 4), dtype=np.uint8)
|