inference
inference copied to clipboard
TrOCR in Inference
Description
- Adds TrOCR, a transformer based OCR model, to Inference.
- Alters the
DoctrOCRInferenceResponsetoOCRInferenceResponseto 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:
To fix code quality:
pip install -r requirements/requirements.code_analysis.txt
make style
@stellasphere can we try to get this in?
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'
I believe one of the main merge failed to resolve all conflicts
ping