Skip to content

Commit

Permalink
detector metainfo override pose_estimator metainfo (open-mmlab#1813)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis authored and ly015 committed Feb 21, 2023
1 parent d92fe6d commit fe3c7c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmpose/apis/webcam/nodes/model_nodes/pose_estimator_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def process(self, input_msgs):
object['keypoints'] = pred_instances.keypoints[0]
object['keypoint_scores'] = pred_instances.keypoint_scores[0]

dataset_meta = object.get('dataset_meta', dict())
dataset_meta.update(self.model.dataset_meta)
dataset_meta = self.model.dataset_meta.copy()
dataset_meta.update(object.get('dataset_meta', dict()))
object['dataset_meta'] = dataset_meta
object['pose_model_cfg'] = self.model.cfg

Expand Down

0 comments on commit fe3c7c0

Please # to comment.