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

[Docs] Fix error when building pdf (#1414)

* [Docs] Fix error when building pdf

* fix link
parent 76cfd77b
...@@ -4,7 +4,7 @@ Welcome to MMCV's documentation! ...@@ -4,7 +4,7 @@ Welcome to MMCV's documentation!
You can switch between Chinese and English documents in the lower-left corner of the layout. You can switch between Chinese and English documents in the lower-left corner of the layout.
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: Get Started :caption: Get Started
get_started/introduction.md get_started/introduction.md
...@@ -12,7 +12,7 @@ You can switch between Chinese and English documents in the lower-left corner of ...@@ -12,7 +12,7 @@ You can switch between Chinese and English documents in the lower-left corner of
get_started/build.md get_started/build.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: Understand MMCV :caption: Understand MMCV
understand_mmcv/config.md understand_mmcv/config.md
...@@ -26,7 +26,7 @@ You can switch between Chinese and English documents in the lower-left corner of ...@@ -26,7 +26,7 @@ You can switch between Chinese and English documents in the lower-left corner of
understand_mmcv/utils.md understand_mmcv/utils.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: Deployment :caption: Deployment
deployment/onnx.md deployment/onnx.md
...@@ -36,26 +36,26 @@ You can switch between Chinese and English documents in the lower-left corner of ...@@ -36,26 +36,26 @@ You can switch between Chinese and English documents in the lower-left corner of
deployment/tensorrt_custom_ops.md deployment/tensorrt_custom_ops.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: Compatibility :caption: Compatibility
compatibility.md compatibility.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: FAQ :caption: FAQ
faq.md faq.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: Community :caption: Community
community/contributing.md community/contributing.md
community/pr.md community/pr.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: API Reference :caption: API Reference
api.rst api.rst
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
您可以在页面左下角切换中英文文档。 您可以在页面左下角切换中英文文档。
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: 介绍与安装 :caption: 介绍与安装
get_started/introduction.md get_started/introduction.md
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
get_started/build.md get_started/build.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: 深入理解 MMCV :caption: 深入理解 MMCV
understand_mmcv/config.md understand_mmcv/config.md
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
understand_mmcv/utils.md understand_mmcv/utils.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: 部署 :caption: 部署
deployment/onnx.md deployment/onnx.md
...@@ -36,26 +36,26 @@ ...@@ -36,26 +36,26 @@
deployment/tensorrt_custom_ops.md deployment/tensorrt_custom_ops.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: 兼容性 :caption: 兼容性
compatibility.md compatibility.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: 常见问题 :caption: 常见问题
faq.md faq.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: 社区 :caption: 社区
community/contributing.md community/contributing.md
community/pr.md community/pr.md
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 2
:caption: API 文档 :caption: API 文档
api.rst api.rst
......
...@@ -121,8 +121,8 @@ class Correlation(nn.Module): ...@@ -121,8 +121,8 @@ class Correlation(nn.Module):
where :math:`\star` is the valid 2d sliding window convolution operator, where :math:`\star` is the valid 2d sliding window convolution operator,
and :math:`\mathcal{S}` means shifting the input features (auto-complete and :math:`\mathcal{S}` means shifting the input features (auto-complete
zero marginal), and :math:`dx, dy` are shifting distance, :math:`dx, dy \in zero marginal), and :math:`dx, dy` are shifting distance, :math:`dx, dy \in
[-\text{max_displacement} \times \text{dilation_patch}, [-\text{max\_displacement} \times \text{dilation\_patch},
\text{max_displacement} \times \text{dilation_patch}]`. \text{max\_displacement} \times \text{dilation\_patch}]`.
Args: Args:
kernel_size (int): The size of sliding window i.e. local neighborhood kernel_size (int): The size of sliding window i.e. local neighborhood
......
...@@ -153,9 +153,9 @@ def multi_scale_deformable_attn_pytorch(value, value_spatial_shapes, ...@@ -153,9 +153,9 @@ def multi_scale_deformable_attn_pytorch(value, value_spatial_shapes,
@ATTENTION.register_module() @ATTENTION.register_module()
class MultiScaleDeformableAttention(BaseModule): class MultiScaleDeformableAttention(BaseModule):
"""An attention module used in Deformable-Detr. `Deformable DETR: """An attention module used in Deformable-Detr.
Deformable Transformers for End-to-End Object Detection.
`Deformable DETR: Deformable Transformers for End-to-End Object Detection.
<https://arxiv.org/pdf/2010.04159.pdf>`_. <https://arxiv.org/pdf/2010.04159.pdf>`_.
Args: Args:
......
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