nikigoli commited on
Commit
b812b2c
·
verified ·
1 Parent(s): 20bd81e

Tried commenting out model.cpu() part of tutorial count function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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