Skip to content

Commit

Permalink
[Fix] Fix the model statistics in doc for readthedoc open-mmlab#1153
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjun2016 authored Dec 20, 2021
1 parent 520ec8e commit 9975c67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/en/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

url_prefix = 'https://github.com/open-mmlab/mmsegmentation/blob/master/'

files = sorted(glob.glob('../configs/*/README.md'))
files = sorted(glob.glob('../../configs/*/README.md'))

stats = []
titles = []
num_ckpts = 0

for f in files:
url = osp.dirname(f.replace('../', url_prefix))
url = osp.dirname(f.replace('../../', url_prefix))

with open(f, 'r') as content_file:
content = content_file.read()
Expand Down
4 changes: 2 additions & 2 deletions docs/zh_cn/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

url_prefix = 'https://github.com/open-mmlab/mmsegmentation/blob/master/'

files = sorted(glob.glob('../configs/*/README.md'))
files = sorted(glob.glob('../../configs/*/README.md'))

stats = []
titles = []
num_ckpts = 0

for f in files:
url = osp.dirname(f.replace('../', url_prefix))
url = osp.dirname(f.replace('../../', url_prefix))

with open(f, 'r') as content_file:
content = content_file.read()
Expand Down

0 comments on commit 9975c67

Please sign in to comment.