sunnychenxiwang's picture
Upload 1600 files
14c9181 verified

A newer version of the Gradio SDK is available: 5.9.1

Upgrade

Key Information Extraction

This page is a manual preparation guide for datasets not yet supported by [Dataset Preparer](./dataset_preparer.md), which all these scripts will be eventually migrated into.

Overview

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

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

Preparation Steps

WildReceipt

WildReceiptOpenset

  • Step0: have WildReceipt prepared.
  • Step1: Convert annotation files to OpenSet format:
# 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
You can learn more about the key differences between CloseSet and OpenSet annotations in our [tutorial](../tutorials/kie_closeset_openset.md).