mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
* basedataset first commit * add base dataset * add dataset * add basedataset * Fix test dataset * Fix mypy and test * Fix mypy and test * remove unused code * Update mmengine/dataset/base_dataset.py Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * Update mmengine/dataset/base_dataset.py Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * add more corner cases in unittest * fix lint * Fix as comment * Fix lint * update unitest * Type hint Dick to dict * rename max_refetch * Fix as comment * Fix typo * Fix as comment * BaseDataset is no more an abstrac Class, change UT and docs * Fix as comment * Fix as comment and refactor type error * Add comment for full init * Fix as comment and modify dataset_wrapper * Fix as comment and modify dataset_wrapper * Fix as comment * Fix as comment * Fix as comment * Fix as comment * Fix as comment * Fix as comment * Fix as comment Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> Co-authored-by: Tao Gong <gongtao950513@gmail.com>
52 lines
1.1 KiB
JSON
52 lines
1.1 KiB
JSON
{
|
|
"metadata":
|
|
{
|
|
"dataset_type": "test_dataset",
|
|
"task_name": "test_task",
|
|
"empty_list": []
|
|
},
|
|
"data_infos":
|
|
[
|
|
{
|
|
"img_path": "test_img.jpg",
|
|
"height": 604,
|
|
"width": 640,
|
|
"instances":
|
|
[
|
|
{
|
|
"bbox": [0, 0, 10, 20],
|
|
"bbox_label": 1,
|
|
"mask": [[0,0],[0,10],[10,20],[20,0]],
|
|
"extra_anns": [1,2,3]
|
|
},
|
|
{
|
|
"bbox": [10, 10, 110, 120],
|
|
"bbox_label": 2,
|
|
"mask": [[10,10],[10,110],[110,120],[120,10]],
|
|
"extra_anns": [4,5,6]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"img_path": "gray.jpg",
|
|
"height": 288,
|
|
"width": 512,
|
|
"instances":
|
|
[
|
|
{
|
|
"bbox": [0, 0, 10, 20],
|
|
"bbox_label": 1,
|
|
"mask": [[0,0],[0,10],[10,20],[20,0]],
|
|
"extra_anns": [1,2,3]
|
|
},
|
|
{
|
|
"bbox": [10, 10, 110, 120],
|
|
"bbox_label": 2,
|
|
"mask": [[10,10],[10,110],[110,120],[120,10]],
|
|
"extra_anns": [4,5,6]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|