inference icon indicating copy to clipboard operation
inference copied to clipboard

TrOCR in Inference

Open stellasphere opened this issue 1 year ago • 4 comments

Description

  • Adds TrOCR, a transformer based OCR model, to Inference.
  • Alters the DoctrOCRInferenceResponse to OCRInferenceResponse to have a consistent output format for all OCR related tasks

Type of change

  • [x] New feature (non-breaking change which adds functionality)

How has this change been tested, please provide a testcase or example of how you tested the change?

Locally, on M1

Any specific deployment considerations

Docs

  • [ ] Docs updated? What were the changes:

stellasphere avatar May 31 '24 13:05 stellasphere

To fix code quality:

pip install -r requirements/requirements.code_analysis.txt
make style

probicheaux avatar May 31 '24 19:05 probicheaux

@stellasphere can we try to get this in?

probicheaux avatar Jun 27 '24 05:06 probicheaux

Error in server start - this is probably why tests are failing

File "/app/cpu_http.py", line 2, in <module>
    from inference.core.interfaces.http.http_api import HttpInterface
  File "/app/inference/core/interfaces/http/http_api.py", line 67, in <module>
    from inference.core.entities.responses.paligemma import PaliGemmaInferenceResponse
ModuleNotFoundError: No module named 'inference.core.entities.responses.paligemma'

PawelPeczek-Roboflow avatar Jul 01 '24 15:07 PawelPeczek-Roboflow

I believe one of the main merge failed to resolve all conflicts

PawelPeczek-Roboflow avatar Jul 01 '24 15:07 PawelPeczek-Roboflow

ping

PawelPeczek-Roboflow avatar Aug 14 '24 07:08 PawelPeczek-Roboflow