[DOC] Fix typo in MultiLabelDataset docstring (#1483)

* fix doc

* fix ci

* fix ci

* fix ci

* fix ci
pull/1488/head
Ezra-Yu 2023-04-14 13:57:54 +08:00 committed by GitHub
parent 99e48116aa
commit 645e2b4ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -348,12 +348,12 @@ The following is an example of a JSON annotation file (in this example each raw
[
{
'img_path': "xxx/xxx_0.jpg",
'img_label': 0,
'gt_label': 0,
...
},
{
'img_path': "xxx/xxx_1.jpg",
'img_label': 1,
'gt_label': 1,
...
},
...

View File

@ -338,12 +338,12 @@ OpenMMLab 2.0 数据集格式规范规定,标注文件必须为 `json` 或 `ya
[
{
'img_path': "xxx/xxx_0.jpg",
'img_label': 0,
'gt_label': 0,
...
},
{
'img_path': "xxx/xxx_1.jpg",
'img_label': 1,
'gt_label': 1,
...
},
...

View File

@ -13,7 +13,7 @@ class MultiLabelDataset(BaseDataset):
format`.
.. _OpenMMLab 2.0 style annotation format:
https://github.com/open-mmlab/mmengine/blob/main/docs/zh_cn/tutorials/basedataset.md
https://mmengine.readthedocs.io/en/latest/advanced_tutorials/basedataset.html
The annotation format is shown as follows.
@ -28,11 +28,11 @@ class MultiLabelDataset(BaseDataset):
[
{
"img_path": "test_img1.jpg",
'img_label': [0, 1],
'gt_label': [0, 1],
},
{
"img_path": "test_img2.jpg",
'img_label': [2],
'gt_label': [2],
},
]
....

View File

@ -1,3 +1,3 @@
codecov
coverage
interrogate
pytest