orhir commited on
Commit
4d967c2
·
verified ·
1 Parent(s): 971d532

Update gradio_utils/utils.py

Browse files
Files changed (1) hide show
  1. gradio_utils/utils.py +3 -1
gradio_utils/utils.py CHANGED
@@ -194,12 +194,13 @@ def process(query_img, state,
194
  load_checkpoint(model, checkpoint_path, map_location='cpu')
195
  model.eval()
196
  outputs = estimate(model, data)
197
-
198
  # visualize results
199
  vis_s_weight = target_weight_s[0]
200
  vis_s_image = support_img[0].detach().cpu().numpy().transpose(1, 2, 0)
201
  vis_q_image = q_img[0].detach().cpu().numpy().transpose(1, 2, 0)
202
  support_kp = kp_src_3d
 
203
  out = plot_results(vis_s_image,
204
  vis_q_image,
205
  support_kp,
@@ -211,6 +212,7 @@ def process(query_img, state,
211
  original_skeleton=state['skeleton'],
212
  img_alpha=1.0,
213
  )
 
214
  return out
215
 
216
 
 
194
  load_checkpoint(model, checkpoint_path, map_location='cpu')
195
  model.eval()
196
  outputs = estimate(model, data)
197
+ print("Output Avail!")
198
  # visualize results
199
  vis_s_weight = target_weight_s[0]
200
  vis_s_image = support_img[0].detach().cpu().numpy().transpose(1, 2, 0)
201
  vis_q_image = q_img[0].detach().cpu().numpy().transpose(1, 2, 0)
202
  support_kp = kp_src_3d
203
+ print("Try to Plot")
204
  out = plot_results(vis_s_image,
205
  vis_q_image,
206
  support_kp,
 
212
  original_skeleton=state['skeleton'],
213
  img_alpha=1.0,
214
  )
215
+ print("Plot Success!")
216
  return out
217
 
218