Skip to content
Snippets Groups Projects
Unverified Commit 4824dc0c authored by congee's avatar congee Committed by GitHub
Browse files

remove the papers should not be included and the models without any ckpt (#4393)

parent 9cb5543f
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import os.path as osp
import re
url_prefix = 'https://github.com/open-mmlab/mmdetection/blob/master/'
titles_to_be_excluded = ['Albu Example', 'Mixed Precision Training']
files = sorted(glob.glob('../configs/*/README.md'))
......@@ -19,11 +20,16 @@ for f in files:
title = content.split('\n')[0].replace('# ', '')
titles.append(title)
if title in titles_to_be_excluded:
continue
ckpts = set(x.lower().strip()
for x in re.findall(r'\[model\]\((https?.*)\)', content))
if len(ckpts) == 0:
continue
titles.append(title)
num_ckpts += len(ckpts)
statsmsg = f"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment