diff --git a/.github/scripts/prepare_reg_test.py b/.github/scripts/prepare_reg_test.py index f42aa890e8..b2d8b0295c 100644 --- a/.github/scripts/prepare_reg_test.py +++ b/.github/scripts/prepare_reg_test.py @@ -74,16 +74,15 @@ def prepare_codebases(codebases): full_name = REPO_NAMES[codebase] target_dir = os.path.join(MMDEPLOY_DIR, '..', full_name) branch = 'main' - if codebase in ['mmrotate', 'mmdet3d']: - branch = 'dev-1.x' - if not osp.exists(target_dir): - run_cmd([ - 'git clone --depth 1 ', f'-b {branch} ' - f'https://github.com/open-mmlab/{full_name}.git ' - f'{target_dir} ' - ]) - else: - run_cmd([f'cd {target_dir} &&', f'git pull origin {branch}']) + if codebase == 'mmrotate': + branch = 'v1.0.0rc1' + if osp.exists(target_dir): + shutil.rmtree(target_dir) + run_cmd([ + 'git clone --depth 1 ', f'-b {branch} ' + f'https://github.com/open-mmlab/{full_name}.git ' + f'{target_dir} ' + ]) run_cmd([ 'python -m mim install ', f'-r {target_dir}/requirements/mminstall.txt ', diff --git a/requirements/codebases.txt b/requirements/codebases.txt index 378b166aa7..6ea09408c6 100644 --- a/requirements/codebases.txt +++ b/requirements/codebases.txt @@ -1,6 +1,6 @@ mmagic==1.0.0 mmdet==3.0.0 -mmdet3d==1.1.0 +mmdet3d==1.3.0 mmocr==1.0.0 mmpose==1.0.0 mmpretrain==1.0.0