maps-as-data / MapReader

A computer vision pipeline for exploring and analyzing images at scale
https://mapreader.readthedocs.io/en/latest/
Other
80 stars 11 forks source link

Add MapTextRunner to MapReader #474

Closed rwood-97 closed 1 month ago

rwood-97 commented 1 month ago

Summary

This PR adds a new framework for running text spotting to MapReader.

The MapTextPipeline comes from the ICDAR map text competition. It is based on DeepSolo with a fine-tuned the David Rumsey map collection (from ICDAR). Our fork is here: https://github.com/rwood-97/MapTextPipeline/tree/main Original is here: https://github.com/yyyyyxie/MapTextPipeline

Model weights are linked in README.

Describe your changes

Adds a runner for the MapTextPipeline. This is now the one we should recommend people to use.

Checklist before assigning a reviewer (update as needed)

Reviewer checklist

Please add anything you want reviewers to specifically focus/comment on.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 7.53425% with 135 lines in your changes missing coverage. Please review.

Project coverage is 61.64%. Comparing base (49ac0f1) to head (f7f6701).

Files Patch % Lines
mapreader/spot_text/maptext_runner.py 6.79% 96 Missing :warning:
mapreader/spot_text/runner_base.py 0.00% 31 Missing :warning:
mapreader/spot_text/deepsolo_runner.py 0.00% 4 Missing :warning:
mapreader/spot_text/dptext_detr_runner.py 0.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #474 +/- ## ========================================== - Coverage 62.77% 61.64% -1.13% ========================================== Files 41 42 +1 Lines 6807 6949 +142 ========================================== + Hits 4273 4284 +11 - Misses 2534 2665 +131 ``` | [Flag](https://app.codecov.io/gh/Living-with-machines/MapReader/pull/474/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Living-with-machines) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/Living-with-machines/MapReader/pull/474/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Living-with-machines) | `61.64% <7.53%> (-1.13%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Living-with-machines#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.