File size: 1,101 Bytes
2366e36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Key Information Extraction

## Overview

The structure of the key information extraction dataset directory is organized as follows.

```text
└── wildreceipt
  β”œβ”€β”€ class_list.txt
  β”œβ”€β”€ dict.txt
  β”œβ”€β”€ image_files
  β”œβ”€β”€ openset_train.txt
  β”œβ”€β”€ openset_test.txt
  β”œβ”€β”€ test.txt
  └── train.txt
```

## Preparation Steps

### WildReceipt

- Just download and extract [wildreceipt.tar](https://download.openmmlab.com/mmocr/data/wildreceipt.tar).

### WildReceiptOpenset

- Step0: have [WildReceipt](#WildReceipt) prepared.
- Step1: Convert annotation files to OpenSet format:
```bash
# You may find more available arguments by running
# python tools/data/kie/closeset_to_openset.py -h
python tools/data/kie/closeset_to_openset.py data/wildreceipt/train.txt data/wildreceipt/openset_train.txt
python tools/data/kie/closeset_to_openset.py data/wildreceipt/test.txt data/wildreceipt/openset_test.txt
```
:::{note}
You can learn more about the key differences between CloseSet and OpenSet annotations in our [tutorial](../tutorials/kie_closeset_openset.md).
:::