microsoft / OCR-Form-Tools

A set of tools to use in Microsoft Azure Form Recognizer and OCR services.
MIT License
515 stars 174 forks source link

FOTT slow when there are a lot of tags. #1017

Open jds3d opened 2 years ago

jds3d commented 2 years ago

Describe the bug FOTT is very slow (20s per click) to show in the app after a lot of elements have been tagged. The clicks can be queued up, so if I can select a dozen at a time it will take 4 minutes for the app to unfreeze. But if I have to drag the image and the table I'm mapping to, I can't do them all at once. Tagging a file should take 15 minutes, but instead it takes hours. And I have done 13 of these files.

To Reproduce Steps to reproduce the behavior:

  1. Create a model with 10+ (may need fewer) images) with ~100 elements in a table.
  2. Tag a bunch of them and at the end of tagging more cells it becomes unbearably slow.

Expected behavior I expect a click to take <0.2s, not 1s, and definitely not >20s per click, as it is taking.

Screenshots N/A

Desktop (please complete the following information):

Additional context I cannot use a later version of FOTT because this one has the hotfix for eliminating the timeout when training a model.