orhir commited on
Commit
1d883c8
1 Parent(s): 1a55dac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,9 +104,9 @@ def process(query_img,
104
  cfg.model.encoder_config.img_size])
105
  data_cfg['joint_weights'] = None
106
  data_cfg['use_different_joint_weights'] = False
107
- kp_src_3d = torch.concatenate(
108
  (kp_src_tensor, torch.zeros(kp_src_tensor.shape[0], 1)), dim=-1)
109
- kp_src_3d_weight = torch.concatenate(
110
  (torch.ones_like(kp_src_tensor),
111
  torch.zeros(kp_src_tensor.shape[0], 1)), dim=-1)
112
  target_s, target_weight_s = genHeatMap._msra_generate_target(data_cfg,
 
104
  cfg.model.encoder_config.img_size])
105
  data_cfg['joint_weights'] = None
106
  data_cfg['use_different_joint_weights'] = False
107
+ kp_src_3d = torch.cat(
108
  (kp_src_tensor, torch.zeros(kp_src_tensor.shape[0], 1)), dim=-1)
109
+ kp_src_3d_weight = torch.cat(
110
  (torch.ones_like(kp_src_tensor),
111
  torch.zeros(kp_src_tensor.shape[0], 1)), dim=-1)
112
  target_s, target_weight_s = genHeatMap._msra_generate_target(data_cfg,