Skip to main content

Wadas Inference Runtime

Project description

WADAS Runtime

Description

WADAS Runtime is a library designed to facilitate inference using OpenVINO for the Wild Animals Detection and Alert System (WADAS) project. It provides tools and utilities to streamline the decryption and execution of AI models.

Usage

To use the WADAS Runtime library, follow these steps:

  1. Install the library locally:

    pip install wadas_runtime
    
  2. Import the library in your Python project:

    import wadas_runtime as wadas
    
  3. Load and compile the model. The library will decrypt the model in real time

    import wadas_runtime as wadas
    
    xml, bin = # Path to the model XML and encrypted binary file
    compiled_model = wadas.load_and_compile_model(xml, bin, "GPU")
    

Developer Guide

It is suggested to install the package locally by using pip install -e .[dev]. OpenSSL is required to build the package and needs to be installed separately.

Git hooks

All developers should install the git hooks that are tracked in the .githooks directory. We use the pre-commit framework for hook management. The recommended way of installing it is using pip:

pre-commit install

If you want to manually run all pre-commit hooks on a repository, run pre-commit run --all-files. To run individual hooks use pre-commit run <hook_id>.

Uninstalling the hooks can be done using

pre-commit uninstall

Testing the library

Python test uses pytest library. Type

cd test && pytest

to run the full test suite.

Generate Python packets

To create packets run the following commands

python -m build --sdist
cibuildwheel --platform windows --output-dir dist

Publishing packets

Then check on the built sdist and wheel that are properly formatted (all files should return a green PASSED)

twine check dist/*

Upload the packets to testpypi

twine upload --repository testpypi dist/*

To upload them to the real index (verify first with testpypi)

twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

wadas_runtime-0.1.0-cp313-cp313-win_amd64.whl (66.1 kB view details)

Uploaded CPython 3.13Windows x86-64

wadas_runtime-0.1.0-cp312-cp312-win_amd64.whl (66.1 kB view details)

Uploaded CPython 3.12Windows x86-64

wadas_runtime-0.1.0-cp311-cp311-win_amd64.whl (65.9 kB view details)

Uploaded CPython 3.11Windows x86-64

wadas_runtime-0.1.0-cp310-cp310-win_amd64.whl (64.5 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file wadas_runtime-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3079c93ae237cfc3fd7356d80bb0891e978fec945c676eeb7444831fa15a0b32
MD5 fce6e1c0ce23a3c10455432b4785478f
BLAKE2b-256 c0d938747f3420d471386d1bc576cf4b5fe36bd5bb95db1a8a17886a3c8b6545

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 906fbc5139ce34346675296db7e89cdf23ba93af5fb8420812e4a37e084b0092
MD5 0fff1ae127125c9e15c6ce3d41bfa804
BLAKE2b-256 625636df9f9dc8e7745b2a707859b87a73358caef339e553d0799c776d1d1fd0

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ecc4af1274e23ed11cfaed7a2e28c4a935344c0fd193537c0352b546702d11a0
MD5 73f25ee9f1975deed7dca233e2f19a39
BLAKE2b-256 17fcd65030f3e57e3f263be02d952d33c7546a7b9d73b66db89c4de83a7d3e89

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f3595c668233df16c66298e8b4c338fc4b6a622d0d47f19a02dd20dff83d1e2e
MD5 cfe028bd15ca9b7995218ec7c7cd5339
BLAKE2b-256 0afd88e9f9cf259956cb4c1641d188f0ed2a86a27ae5db9d553dedfc6d782590

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page