modify the counting way of ckpts (#4317)

* modify the count way of ckpts

* remove config statistics
pull/4339/head
congee 4 years ago committed by GitHub
parent 2b84662786
commit 95a1dbdfab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/stat.py

@ -20,10 +20,12 @@ for f in files:
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 'mmdetection' in x)
for x in re.findall(r'\[model\]\((https?.*)\)', content))
num_ckpts += len(ckpts)
statsmsg = f"""
\t* [{title}]({url}) ({len(ckpts)} ckpts)
"""

Loading…
Cancel
Save