[Docs] Fix error when cv2 is mocked (#1152)

pull/1155/head
Zaida Zhou 2021-06-28 17:31:36 +08:00 committed by GitHub
parent 797ef57e15
commit 76d9bf1efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -54,9 +54,7 @@ extensions = [
'sphinx_markdown_tables'
] # yapf: disable
autodoc_mock_imports = [
'cv2', 'mmcv._ext', 'mmcv.utils.ext_loader', 'torchvision'
]
autodoc_mock_imports = ['mmcv._ext', 'mmcv.utils.ext_loader', 'torchvision']
autosectionlabel_prefix_document = True
# Add any paths that contain templates here, relative to this directory.

View File

@ -1,3 +1,4 @@
m2r
opencv-python
sphinx_markdown_tables
torch