Skip to content

Commit

Permalink
remove the models with 0 ckpt (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
congee524 authored Jan 10, 2021
1 parent d006848 commit a79f464
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
content = content_file.read()

title = content.split('\n')[0].replace('#', '')
titles.append(title)
ckpts = set(x.lower().strip()
for x in re.findall(r'https?://download.*\.pth', content)
if 'mmdetection3d' in x)
if len(ckpts) == 0:
continue

titles.append(title)
num_ckpts += len(ckpts)
statsmsg = f"""
\t* [{title}]({url}) ({len(ckpts)} ckpts)
Expand All @@ -33,7 +36,7 @@
modelzoo = f"""
\n## Model Zoo Statistics
* Number of papers: {len(titles)}
* Number of papers: {len(set(titles))}
* Number of checkpoints: {num_ckpts}
{msglist}
"""
Expand Down

0 comments on commit a79f464

Please sign in to comment.