From 9975c674c74f59f4772b602647aa4fc2d6d0b2ed Mon Sep 17 00:00:00 2001 From: Junjun2016 Date: Mon, 20 Dec 2021 23:52:53 +0800 Subject: [PATCH] [Fix] Fix the model statistics in doc for readthedoc #1153 --- docs/en/stat.py | 4 ++-- docs/zh_cn/stat.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/stat.py b/docs/en/stat.py index eef00af..1398a70 100755 --- a/docs/en/stat.py +++ b/docs/en/stat.py @@ -9,14 +9,14 @@ import numpy as np 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() diff --git a/docs/zh_cn/stat.py b/docs/zh_cn/stat.py index 955bee8..b3a1d73 100755 --- a/docs/zh_cn/stat.py +++ b/docs/zh_cn/stat.py @@ -9,14 +9,14 @@ import numpy as np 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()