[DOC] Fix typo in MultiLabelDataset docstring (#1483)
* fix doc * fix ci * fix ci * fix ci * fix cipull/1488/head
parent
99e48116aa
commit
645e2b4ed4
|
@ -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_path': "xxx/xxx_0.jpg",
|
||||||
'img_label': 0,
|
'gt_label': 0,
|
||||||
...
|
...
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'img_path': "xxx/xxx_1.jpg",
|
'img_path': "xxx/xxx_1.jpg",
|
||||||
'img_label': 1,
|
'gt_label': 1,
|
||||||
...
|
...
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
|
|
|
@ -338,12 +338,12 @@ OpenMMLab 2.0 数据集格式规范规定,标注文件必须为 `json` 或 `ya
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
'img_path': "xxx/xxx_0.jpg",
|
'img_path': "xxx/xxx_0.jpg",
|
||||||
'img_label': 0,
|
'gt_label': 0,
|
||||||
...
|
...
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'img_path': "xxx/xxx_1.jpg",
|
'img_path': "xxx/xxx_1.jpg",
|
||||||
'img_label': 1,
|
'gt_label': 1,
|
||||||
...
|
...
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
|
|
|
@ -13,7 +13,7 @@ class MultiLabelDataset(BaseDataset):
|
||||||
format`.
|
format`.
|
||||||
|
|
||||||
.. _OpenMMLab 2.0 style annotation 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.
|
The annotation format is shown as follows.
|
||||||
|
|
||||||
|
@ -28,11 +28,11 @@ class MultiLabelDataset(BaseDataset):
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"img_path": "test_img1.jpg",
|
"img_path": "test_img1.jpg",
|
||||||
'img_label': [0, 1],
|
'gt_label': [0, 1],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"img_path": "test_img2.jpg",
|
"img_path": "test_img2.jpg",
|
||||||
'img_label': [2],
|
'gt_label': [2],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
....
|
....
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
codecov
|
coverage
|
||||||
interrogate
|
interrogate
|
||||||
pytest
|
pytest
|
||||||
|
|
Loading…
Reference in New Issue