Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Titlecase in stats #360

Merged
merged 1 commit into from Dec 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/stat.py
Expand Up @@ -3,6 +3,8 @@
import glob
import re

import titlecase

files = sorted(glob.glob('*_models.md'))

stats = []
Expand All @@ -23,9 +25,10 @@
for x in re.findall(r'https.*configs/.*\.py', content))

# count ckpts
ckpts = set(x.lower().strip()
for x in re.findall(r'https://download.*\.pth', content)
if 'mmpose' in x)
ckpts = set(
titlecase.titlecase(x.lower().strip())
for x in re.findall(r'https://download.*\.pth', content)
if 'mmpose' in x)

statsmsg = f"""
## [{title}]({f})
Expand Down
1 change: 1 addition & 0 deletions requirements/readthedocs.txt
Expand Up @@ -4,6 +4,7 @@ numpy==1.19.2
poseval@git+https://github.com/svenkreiss/poseval.git
scipy
smplx
titlecase
torch
torchvision
xtcocotools>=1.6
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -17,6 +17,6 @@ line_length = 79
multi_line_output = 0
known_standard_library = pkg_resources,setuptools
known_first_party = mmpose
known_third_party = cv2,json_tricks,matplotlib,mmcv,mmdet,munkres,numpy,poseval,pytest,scipy,seaborn,smplx,torch,torchvision,xtcocotools
known_third_party = cv2,json_tricks,matplotlib,mmcv,mmdet,munkres,numpy,poseval,pytest,scipy,seaborn,smplx,titlecase,torch,torchvision,xtcocotools
no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY