orhir commited on
Commit
e602703
·
verified ·
1 Parent(s): 058cc76

Update EdgeCape/models/detectors/EdgeCape.py

Browse files
EdgeCape/models/detectors/EdgeCape.py CHANGED
@@ -76,8 +76,8 @@ class EdgeCape(BasePose):
76
  str_dict = json.loads(input_str)
77
  str_dict["img_s"] = [torch.tensor(str_dict["img_s"], dtype=torch.float32).cuda()]
78
  str_dict["img_q"] = torch.tensor(str_dict["img_q"], dtype=torch.float32).cuda()
79
- str_dict["target_weight_s"] = [torch.tensor(str_dict["target_weight_s"], dtype=torch.float32).cuda()]
80
- str_dict["target_s"] = [torch.tensor(str_dict["target_s"], dtype=torch.float32).cuda()]
81
 
82
  str_dict['img_metas'][0]['sample_joints_3d'][0] = torch.tensor(str_dict['img_metas'][0]['sample_joints_3d'][0])
83
  str_dict['img_metas'][0]['query_joints_3d'] = torch.tensor(str_dict['img_metas'][0]['query_joints_3d'])
 
76
  str_dict = json.loads(input_str)
77
  str_dict["img_s"] = [torch.tensor(str_dict["img_s"], dtype=torch.float32).cuda()]
78
  str_dict["img_q"] = torch.tensor(str_dict["img_q"], dtype=torch.float32).cuda()
79
+ str_dict["target_weight_s"] = torch.tensor(str_dict["target_weight_s"], dtype=torch.float32).cuda()
80
+ str_dict["target_s"] = torch.tensor(str_dict["target_s"], dtype=torch.float32).cuda()
81
 
82
  str_dict['img_metas'][0]['sample_joints_3d'][0] = torch.tensor(str_dict['img_metas'][0]['sample_joints_3d'][0])
83
  str_dict['img_metas'][0]['query_joints_3d'] = torch.tensor(str_dict['img_metas'][0]['query_joints_3d'])