Skip to content

Commit 1a5b204

Browse files
committed
docs: update document
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
1 parent 497ea07 commit 1a5b204

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/tutorials/cli/t4sanity.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,33 @@ $ t4sanity <DATA_ROOT> -iw
8585
| dataset2 | 1 | WARNING | Category token is empty for surface ann: 0c15d9c143fb2723c16ac7e0c735b0a8 |
8686
+-----------+---------+---------+------------------------------------------------------------------------------------------------+
8787
```
88+
89+
### Dump Results as JSON
90+
91+
To dump results into JSON, use the `-o; --output` option:
92+
93+
```shell
94+
$ t4sanity <DATA_ROOT> -o results.json
95+
96+
>>>Sanity checking...: 2it [00:00, 21.54it/s]
97+
...
98+
```
99+
100+
Then a JSON file named `results.json` will be generated:
101+
102+
```json
103+
[
104+
{
105+
"dataset_id": "dataset1",
106+
"version": 2,
107+
"status": "ERROR",
108+
"message": "bbox must be (xmin, ymin, xmax, ymax) and xmin <= xmax && ymin <= ymax: (1532, 198, 1440, 265)"
109+
},
110+
{
111+
"dataset_id": "dataset2",
112+
"version": 1,
113+
"status": "WARNING",
114+
"message": "Category token is empty for surface ann: 0c15d9c143fb2723c16ac7e0c735b0a8"
115+
}
116+
]
117+
```

0 commit comments

Comments
 (0)