Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
108 |
(kp_src_tensor, torch.zeros(kp_src_tensor.shape[0], 1)), dim=-1)
|
109 |
-
kp_src_3d_weight = torch.
|
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,
|