Unverified Commit 9679ce8c authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

[Docs] Remove the _static in docs_zh_CN (#1277)

* [Docs] Remove _static in docs_zh_CN

* fix html_static_path

* fix shpinx warning
parent 8d2d7812
...@@ -5,3 +5,4 @@ Community ...@@ -5,3 +5,4 @@ Community
:maxdepth: 2 :maxdepth: 2
community/contributing.md community/contributing.md
community/pr.md
../docs/_static
\ No newline at end of file
...@@ -5,3 +5,4 @@ ...@@ -5,3 +5,4 @@
:maxdepth: 2 :maxdepth: 2
community/contributing.md community/contributing.md
community/pr.md
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
1. 获取最新的代码库 1. 获取最新的代码库
+ 当你第一次提 PR 时 + 当你第一次提 PR 时
- 复刻 OpenMMLab 原代码库,点击 GitHub 页面右上角的 **Fork** 按钮即可 - 复刻 OpenMMLab 原代码库,点击 GitHub 页面右上角的 **Fork** 按钮即可
![avatar](../_static/community/1.png) ![avatar](../../docs/_static/community/1.png)
- 克隆复刻的代码库到本地 - 克隆复刻的代码库到本地
```bash ```bash
...@@ -58,13 +58,13 @@ ...@@ -58,13 +58,13 @@
``` ```
+ 创建一个`拉取请求` + 创建一个`拉取请求`
![avatar](../_static/community/2.png) ![avatar](../../docs/_static/community/2.png)
+ 修改`拉取请求`信息模板,描述修改原因和修改内容。还可以在 PR 描述中,手动关联到相关的`议题` (issue),(更多细节,请参考[官方文档](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue))。 + 修改`拉取请求`信息模板,描述修改原因和修改内容。还可以在 PR 描述中,手动关联到相关的`议题` (issue),(更多细节,请参考[官方文档](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue))。
5. 讨论并评审你的代码 5. 讨论并评审你的代码
+ 创建`拉取请求`时,可以关联给相关人员进行评审 + 创建`拉取请求`时,可以关联给相关人员进行评审
![avatar](../_static/community/3.png) ![avatar](../../docs/_static/community/3.png)
+ 根据评审人员的意见修改代码,并推送修改 + 根据评审人员的意见修改代码,并推送修改
......
...@@ -102,7 +102,7 @@ html_theme = 'sphinx_rtd_theme' ...@@ -102,7 +102,7 @@ html_theme = 'sphinx_rtd_theme'
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, # relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css". # so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] html_static_path = ['../docs/_static']
# Custom sidebar templates, must be a dictionary that maps document names # Custom sidebar templates, must be a dictionary that maps document names
# to template names. # to template names.
......
...@@ -252,7 +252,7 @@ flow = mmcv.flowread('compressed.jpg', quantize=True, concat_axis=1) ...@@ -252,7 +252,7 @@ flow = mmcv.flowread('compressed.jpg', quantize=True, concat_axis=1)
mmcv.flowshow(flow) mmcv.flowshow(flow)
``` ```
![progress](../_static/flow_visualization.png) ![progress](../../docs/_static/flow_visualization.png)
3. 流变换 3. 流变换
...@@ -264,12 +264,12 @@ warpped_img2 = mmcv.flow_warp(img1, flow) ...@@ -264,12 +264,12 @@ warpped_img2 = mmcv.flow_warp(img1, flow)
img1 (左) and img2 (右) img1 (左) and img2 (右)
![raw images](../_static/flow_raw_images.png) ![raw images](../../docs/_static/flow_raw_images.png)
光流 (img2 -> img1) 光流 (img2 -> img1)
![optical flow](../_static/flow_img2toimg1.png) ![optical flow](../../docs/_static/flow_img2toimg1.png)
变换后的图像和真实图像的差异 变换后的图像和真实图像的差异
![warpped image](../_static/flow_warp_diff.png) ![warpped image](../../docs/_static/flow_warp_diff.png)
...@@ -240,7 +240,7 @@ def auto_contrast(img, cutoff=0): ...@@ -240,7 +240,7 @@ def auto_contrast(img, cutoff=0):
This function maximize (normalize) image contrast by first removing cutoff This function maximize (normalize) image contrast by first removing cutoff
percent of the lightest and darkest pixels from the histogram and remapping percent of the lightest and darkest pixels from the histogram and remapping
the image so that the darkest pixel becomes black (0), and the lightest the image so that the darkest pixel becomes black (0), and the lightest
becomes white (255). becomes white (255).
Args: Args:
......
...@@ -38,7 +38,7 @@ class EvalHook(Hook): ...@@ -38,7 +38,7 @@ class EvalHook(Hook):
on the test dataset. e.g., ``bbox_mAP``, ``segm_mAP`` for bbox on the test dataset. e.g., ``bbox_mAP``, ``segm_mAP`` for bbox
detection and instance segmentation. ``AR@100`` for proposal detection and instance segmentation. ``AR@100`` for proposal
recall. If ``save_best`` is ``auto``, the first key of the returned recall. If ``save_best`` is ``auto``, the first key of the returned
``OrderedDict`` result will be used. Default: None. ``OrderedDict`` result will be used. Default: None.
rule (str | None, optional): Comparison rule for best score. If set to rule (str | None, optional): Comparison rule for best score. If set to
None, it will infer a reasonable rule. Keys such as 'acc', 'top' None, it will infer a reasonable rule. Keys such as 'acc', 'top'
.etc will be inferred by 'greater' rule. Keys contain 'loss' will .etc will be inferred by 'greater' rule. Keys contain 'loss' will
...@@ -361,7 +361,7 @@ class DistEvalHook(EvalHook): ...@@ -361,7 +361,7 @@ class DistEvalHook(EvalHook):
on the test dataset. e.g., ``bbox_mAP``, ``segm_mAP`` for bbox on the test dataset. e.g., ``bbox_mAP``, ``segm_mAP`` for bbox
detection and instance segmentation. ``AR@100`` for proposal detection and instance segmentation. ``AR@100`` for proposal
recall. If ``save_best`` is ``auto``, the first key of the returned recall. If ``save_best`` is ``auto``, the first key of the returned
``OrderedDict`` result will be used. Default: None. ``OrderedDict`` result will be used. Default: None.
rule (str | None, optional): Comparison rule for best score. If set to rule (str | None, optional): Comparison rule for best score. If set to
None, it will infer a reasonable rule. Keys such as 'acc', 'top' None, it will infer a reasonable rule. Keys such as 'acc', 'top'
.etc will be inferred by 'greater' rule. Keys contain 'loss' will .etc will be inferred by 'greater' rule. Keys contain 'loss' will
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment