ElectronicBabylonianLiterature / ebl-ai-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ebl-ai-api

Build Status Maintainability

Ebl Ai Api

Server deploying a deep learning model for inference on detecting bounding boxes on cuneiform sign tablets For training please refer to cuneiform-sign-detection repo

Table of contents

Setup

Requirements:

  • sudo apt-get install ffmpeg libsm6 libxext6  -y  
    (may be needed for open-cv python)
  • Python 3.9

python3 -m venv ./.venv

pyre-configuration specifies paths specifically to .venv directory

pip3 install -r requirements

Run

python3 ebl_ai/check_installation.py

to check pytorch, mmcv, mmdet and mmocr installation.

Model

Running the tests

  • Use command black ebl_ai_api to format code.
  • Use command flake8 for linting.
  • Use command pytest to run all tests.
  • Use command pyre check for type-checking.

Running the server

waitress-serve --port=8001 --call ebl.app:get_app

Acknowledgements

About

License:MIT License


Languages

Language:Python 97.3%Language:Dockerfile 2.7%