Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RunningLeon committed Dec 25, 2023
1 parent 9cb4ae0 commit 0847895
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions .github/scripts/prepare_reg_test.py
Expand Up @@ -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 ',
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 0847895

Please sign in to comment.