This component is part of the Starwit Awareness Engine (SAE). See umbrella repo here: https://github.com/starwit/starwit-awareness-engine
- Make sure you have Poetry installed (otherwise see here: https://python-poetry.org/docs/#installing-with-the-official-installer)
- Set environment variable
NVIDIA_TENSORRT_DISABLE_INTERNAL_PIP=True
(otherwisetensorrt-*
installation will fail) - Run
poetry install
See dev readme for build instructions.
In order to detect objects a trained model is necessary. See model development documentation for more details.
The following Github Actions are available:
- PR build: Builds python project for each pull request to main branch.
poetry install
andpoetry run pytest
are executed, to compile and test python code. - Build and publish latest image: Manually executed action. Same like PR build. Additionally puts latest docker image to internal docker registry.
- Create release: Manually executed action. Creates a github release with tag, docker image in internal docker registry, helm chart in chartmuseum by using and incrementing the version in pyproject.toml. Poetry is updating to next version by using "patch, minor and major" keywords. If you want to change to non-incremental version, set version in directly in pyproject.toml and execute create release afterwards.
With dependabot.yml a scheduled version update via Dependabot is configured. Dependabot creates a pull request if newer versions are available and the compilation is checked via PR build.