Spaces:
Running
on
T4
Running
on
T4
Tried commenting out model.cpu() part of tutorial count function
Browse files
app.py
CHANGED
@@ -303,7 +303,7 @@ def count(image, text, prompts, state, device):
|
|
303 |
out_label += " " + str(exemplars[0].size()[0]) + " visual exemplars."
|
304 |
else:
|
305 |
out_label = "Nothing specified to detect."
|
306 |
-
model.cpu()
|
307 |
return (gr.Image(output_img, visible=True, label=out_label, show_label=True), gr.Number(label="Predicted Count", visible=True, value=boxes.shape[0]), new_submit_btn, gr.Tab(visible=True), step_3, state)
|
308 |
|
309 |
@spaces.GPU
|
|
|
303 |
out_label += " " + str(exemplars[0].size()[0]) + " visual exemplars."
|
304 |
else:
|
305 |
out_label = "Nothing specified to detect."
|
306 |
+
#model.cpu()
|
307 |
return (gr.Image(output_img, visible=True, label=out_label, show_label=True), gr.Number(label="Predicted Count", visible=True, value=boxes.shape[0]), new_submit_btn, gr.Tab(visible=True), step_3, state)
|
308 |
|
309 |
@spaces.GPU
|