Skip to content
Snippets Groups Projects

Training workflow

There are a several steps to follow when training a DAN model.

1. Extract data

The data must be extracted and formatted for training. To extract the data, DAN uses an Arkindex export database in SQLite format. You will need to:

  1. Structure the data into folders (train / val / test) in Arkindex.
  2. Export the project in SQLite format.
  3. Extract the data with the extract command.

At the end, you should have a tree structure like this:

output/
├── charset.pkl
├── labels.json
├── images
│   ├── train
│   ├── val
│   └── test

2. Train

To train a DAN model, please refer to the documentation of the training command.

3. Predict

Once the training is complete, you can apply a trained DAN model on an image using the predict command and the inference_parameters.yml file, located in {training.output_folder}/results.