|
@@ -1268,16 +1268,16 @@ class RoIHeads(nn.Module):
|
|
|
# )
|
|
# )
|
|
|
|
|
|
|
|
print(f'error :both arc_feature_logits and arc_proposals should not be None when not in training mode"')
|
|
print(f'error :both arc_feature_logits and arc_proposals should not be None when not in training mode"')
|
|
|
- return None
|
|
|
|
|
|
|
+ pass
|
|
|
|
|
|
|
|
- if feature_logits is not None:
|
|
|
|
|
|
|
+ if feature_logits is not None and arc_proposals is not None:
|
|
|
|
|
|
|
|
arcs_probs, arcs_scores, arcs_point = arc_inference(feature_logits,arc_proposals, th=0)
|
|
arcs_probs, arcs_scores, arcs_point = arc_inference(feature_logits,arc_proposals, th=0)
|
|
|
for keypoint_prob, kps, kp, r in zip(arcs_probs, arcs_scores, arcs_point, result):
|
|
for keypoint_prob, kps, kp, r in zip(arcs_probs, arcs_scores, arcs_point, result):
|
|
|
# r["arcs"] = keypoint_prob
|
|
# r["arcs"] = keypoint_prob
|
|
|
r["arcs"] = feature_logits
|
|
r["arcs"] = feature_logits
|
|
|
r["arcs_scores"] = kps
|
|
r["arcs_scores"] = kps
|
|
|
- r["arcs_point"] = kp
|
|
|
|
|
|
|
+ r["arcs_point"] = feature_logits
|
|
|
|
|
|
|
|
|
|
|
|
|
# print(f'loss_point:{loss_point}')
|
|
# print(f'loss_point:{loss_point}')
|