Skip to content

Commit 9975c67

Browse files
authored
[Fix] Fix the model statistics in doc for readthedoc #1153
1 parent 520ec8e commit 9975c67

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: docs/en/stat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

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

12-
files = sorted(glob.glob('../configs/*/README.md'))
12+
files = sorted(glob.glob('../../configs/*/README.md'))
1313

1414
stats = []
1515
titles = []
1616
num_ckpts = 0
1717

1818
for f in files:
19-
url = osp.dirname(f.replace('../', url_prefix))
19+
url = osp.dirname(f.replace('../../', url_prefix))
2020

2121
with open(f, 'r') as content_file:
2222
content = content_file.read()

Diff for: docs/zh_cn/stat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

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

12-
files = sorted(glob.glob('../configs/*/README.md'))
12+
files = sorted(glob.glob('../../configs/*/README.md'))
1313

1414
stats = []
1515
titles = []
1616
num_ckpts = 0
1717

1818
for f in files:
19-
url = osp.dirname(f.replace('../', url_prefix))
19+
url = osp.dirname(f.replace('../../', url_prefix))
2020

2121
with open(f, 'r') as content_file:
2222
content = content_file.read()

0 commit comments

Comments
 (0)