From 1681afb0407898c0ec140b19dfba37fce36eb40d Mon Sep 17 00:00:00 2001 From: Tau Date: Tue, 4 Jul 2023 16:59:01 +0800 Subject: [PATCH] [Fix] Fix new config with read_base (#2512) --- .../rtmpose/coco/rtmpose_m_8xb256-420e_coco-256x192.py | 4 +++- .../rtmpose/coco/rtmpose_s_8xb256_420e_aic_coco_256x192.py | 4 +++- .../coco/td-hm_hrnet-w48_udp-8xb32-210e_coco-256x192.py | 4 +++- .../yolox_pose/configs/py_yolox_pose_s_8xb32_300e_coco.py | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_m_8xb256-420e_coco-256x192.py b/mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_m_8xb256-420e_coco-256x192.py index 759750110c..af102ec20e 100644 --- a/mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_m_8xb256-420e_coco-256x192.py +++ b/mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_m_8xb256-420e_coco-256x192.py @@ -1,5 +1,7 @@ # Copyright (c) OpenMMLab. All rights reserved. -if '_base_': +from mmengine.config import read_base + +with read_base(): from mmpose.configs._base_.default_runtime import * from albumentations.augmentations import Blur, CoarseDropout, MedianBlur diff --git a/mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_s_8xb256_420e_aic_coco_256x192.py b/mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_s_8xb256_420e_aic_coco_256x192.py index f49c7a2e23..6fc5ec0abe 100644 --- a/mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_s_8xb256_420e_aic_coco_256x192.py +++ b/mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_s_8xb256_420e_aic_coco_256x192.py @@ -1,5 +1,7 @@ # Copyright (c) OpenMMLab. All rights reserved. -if '_base_': +from mmengine.config import read_base + +with read_base(): from mmpose.configs._base_.default_runtime import * from albumentations.augmentations import Blur, CoarseDropout, MedianBlur diff --git a/mmpose/configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_hrnet-w48_udp-8xb32-210e_coco-256x192.py b/mmpose/configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_hrnet-w48_udp-8xb32-210e_coco-256x192.py index 9c73e1551a..1ecf3a704e 100644 --- a/mmpose/configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_hrnet-w48_udp-8xb32-210e_coco-256x192.py +++ b/mmpose/configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_hrnet-w48_udp-8xb32-210e_coco-256x192.py @@ -1,5 +1,7 @@ # Copyright (c) OpenMMLab. All rights reserved. -if '_base_': +from mmengine.config import read_base + +with read_base(): from mmpose.configs._base_.default_runtime import * from mmengine.dataset import DefaultSampler diff --git a/projects/yolox_pose/configs/py_yolox_pose_s_8xb32_300e_coco.py b/projects/yolox_pose/configs/py_yolox_pose_s_8xb32_300e_coco.py index 2ff6f31463..9a75e35e8d 100644 --- a/projects/yolox_pose/configs/py_yolox_pose_s_8xb32_300e_coco.py +++ b/projects/yolox_pose/configs/py_yolox_pose_s_8xb32_300e_coco.py @@ -1,4 +1,6 @@ -if '_base_': +from mmengine.config import read_base + +with read_base(): from ._base_.py_default_runtime import * from datasets import (CocoDataset, FilterDetPoseAnnotations, PackDetPoseInputs,