From fe3c7c03448116f42a06388538db471b46048311 Mon Sep 17 00:00:00 2001 From: Peng Lu Date: Fri, 18 Nov 2022 14:13:15 +0800 Subject: [PATCH] detector metainfo override pose_estimator metainfo (#1813) --- mmpose/apis/webcam/nodes/model_nodes/pose_estimator_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmpose/apis/webcam/nodes/model_nodes/pose_estimator_node.py b/mmpose/apis/webcam/nodes/model_nodes/pose_estimator_node.py index fb2a87124c..20fe66b7a1 100644 --- a/mmpose/apis/webcam/nodes/model_nodes/pose_estimator_node.py +++ b/mmpose/apis/webcam/nodes/model_nodes/pose_estimator_node.py @@ -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