During this stage, the invoice dataset was prepared in a format suitable for model training, including the required text, bounding-box coordinates, document images, and corresponding labels. The model was then fine-tuned on the invoice dataset to learn how different fields and entities are positioned and represented within invoices.