<div align="center">
<h1>
ETA: Extensible Toolkit for Analytics
</h1>
**An open and extensible computer vision, machine learning and video analytics
infrastructure.**
[](https://pypi.org/project/voxel51-eta)
[](https://pypi.org/project/voxel51-eta)
[](https://github.com/pre-commit/pre-commit)
[](LICENSE)
[](https://twitter.com/voxel51)
<img src="https://user-images.githubusercontent.com/25985824/78944107-2d766c80-7a8b-11ea-8863-fcb4897eecb5.png" alt="eta-infrastructure.png" width="75%"/>
</div>
## Requirements
ETA is very portable:
- Installable on Mac or Linux
- Supports Python 3.6 or later
- Supports TensorFlow 1.X and 2.X
- Supports OpenCV 2.4+ and OpenCV 3.0+
- Supports CPU-only and GPU-enabled installations
- Supports CUDA 8, 9 and 10 for GPU installations
## Installation
You can install the latest release of ETA via `pip`:
```shell
pip install voxel51-eta
```
This will perform a [lite installation of ETA](#lite-installation). If you use
an ETA feature that requires additional dependencies (e.g., `ffmpeg` or
`tensorflow`), you will be prompted to install the relevant packages.
## Docker Installation
If you prefer to operate via Docker, see the
[Docker Build Guide](https://github.com/voxel51/eta/blob/develop/docs/docker_build_guide.md)
for simple instructions for building a Docker image with an ETA environment
installed.
## Installation from source
#### Step 0: Setup your Python environment
It is assumed that you already have
[Python installed](https://www.python.org/downloads) on your machine.
> **IMPORTANT:** ETA assumes that the version of Python that you intend to use
> is accessible via `python` and `pip` on your path. In particular, for Python
> 3 users, this means that you may need to alias `python3` and `pip3` to
> `python` and `pip`, respectively.
We strongly recommend that you install ETA
[in a virtual environment](https://github.com/voxel51/eta/blob/develop/docs/virtualenv_guide.md)
to maintain a clean workspace.
#### Step 1: Clone the repository
```shell
git clone https://github.com/voxel51/eta
cd eta
```
#### Step 2: Run the install script
```shell
bash install.bash
```
Note that the install script supports flags that control things like (on macOS)
whether `port` or `brew` is used to install packages. Run
`bash install.bash -h` for more information.
For Linux installs, the script inspects your system to see if CUDA is installed
via the `lspci` command. If CUDA is available, TensorFlow is installed with GPU
support.
The table below lists the version of TensorFlow that will be installed by the
installer, as recommended by the
[tested build configurations](https://www.tensorflow.org/install/source#tested_build_configurations):
| CUDA Version Found | TensorFlow Version Installed |
| ------------------ | ---------------------------- |
| CUDA 8 | `tensorflow-gpu~=1.4` |
| CUDA 9 | `tensorflow-gpu~=1.12` |
| CUDA 10 | `tensorflow-gpu~=1.15` |
| Other CUDA | `tensorflow-gpu~=1.15` |
| No CUDA | `tensorflow~=1.15` |
> Note that ETA also supports TensorFlow 2.X. The only problems you may face
> when using ETA with TensorFlow 2 are when trying to run inference with
> [ETA models](https://github.com/voxel51/eta/blob/develop/eta/models/manifest.json)
> that only support TensorFlow 1. A notable case here are TF-slim models. In
> such cases, you should see an informative error message alerting you of the
> requirement mismatch.
### Lite installation
Some ETA users are only interested in using the core ETA library defined in the
`eta.core` package. In such cases, you can perform a lite installation using
the `-l` flag of the install script:
```shell
bash install.bash -l
```
Lite installation omits submodules and other large dependencies that are not
required in order for the core library to function. If you use an ETA feature
that requires additional dependencies (e.g., `ffmpeg` or `tensorflow`), you
will be prompted to install the relevant packages.
### Developer installation
If you are interested in contributing to ETA or generating its documentation
from source, you should perform a developer installation using the `-d` flag of
the install script:
```shell
bash install.bash -d
```
## Setting up your execution environment
When the root `eta` package is imported, it tries to read the `eta/config.json`
file to configure various package-level constants. Many advanced ETA features
such as pipeline building, model management, etc. require a properly configured
environment to function.
To setup your environment, create a copy the example configuration file:
```shell
cp config-example.json eta/config.json
```
If desired, you can edit your config file to customize the various paths,
change default constants, add environment variables, customize your default
`PYTHONPATH`, and so on. You can also add additional paths to the
`module_dirs`, `pipeline_dirs`, and `models_dirs` sections to expose custom
modules, pipelines, and models to your system.
Note that, when the config file is loaded, any `{{eta}}` patterns in directory
paths are replaced with the absolute path to the `eta/` directory on your
machine.
The default config includes the `modules/`, `pipelines/`, and `models/`
directories on your module, pipeline, and models search paths, respectively.
These directories contain the necessary information to run the standard
analytics exposed by the ETA library. In addition, the relative paths
`./modules/`, `./pipelines/`, and `./models/` are added to their respective
paths to support the typical directory structure that we adopt for our custom
projects.
### CLI
Installing ETA automatically installs `eta`, a command-line interface (CLI) for
interacting with the ETA Library. This utility provides access to many useful
features of ETA, including building and running pipelines, downloading models,
and interacting with remote storage.
To explore the CLI, type `eta --help`, and see the
[CLI Guide](https://github.com/voxel51/eta/blob/develop/docs/cli_guide.md) for
complete information.
## Quickstart
Get your feet wet with ETA by running some of examples in the
[examples folder](https://github.com/voxel51/eta/tree/develop/eta/examples).
Also, see the [docs folder](https://github.com/voxel51/eta/tree/develop/docs)
for more documentation about the various components of the ETA library.
## Organization
The ETA package is organized as described below. For more information about the
design and function of the various ETA components, read the documentation in
the [docs folder](https://github.com/voxel51/eta/tree/develop/docs).
| Directory | Description |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `eta/classifiers` | wrappers for performing inference with common classifiers |
| `eta/core` | the core ETA library, which includes utilities for working with images, videos, embeddings, and much more |
| `eta/detectors` | wrappers for performing inference with common detectors |
| `eta/docs` | documentation about the ETA library |
| `eta/examples` | examples of using the ETA library |
| `eta/models` | library of ML models. The `manifest.json` file in this folder enumerates the models, which are downloaded to this folder as needed. See the [Models developer's guide](https://github.com/voxel51/eta/blob/develop/docs/models_dev_guide.md) for more information about ETA's model registry |
| `eta/modules` | library of video processing/analytics modules. See the [Module developer's guide](https://github.com/voxel51/eta/blob/develop/docs/modules_dev_guide.md) for more information about ETA modules |
| `eta/pipelines` | library of video processing/analytics pipelines. See the [Pipeline developer's guide](https://github.com/voxel51/eta/blob/develop/docs/pipelines_dev_guide.md) for more information about ETA pipelines |
| `eta/resources` | resources such as media, templates, etc |
| `eta/segmenters` | wrappers for performing inference with common semantic segmenters |
| `eta/tensorflow` | third-party TensorFlow repositories that ETA builds upon |
## Generating Documentation
This project uses
[Sphinx-Napoleon](https://pypi.python.org/pypi/sphinxcontrib-napoleon) to
generate its documentation from source.
To generate the documentation, you must install the developer dependencies by
running the `install.bash` script with the `-d` flag.
Then you can generate the docs by running:
```shell
bash sphinx/generate_docs.bash
```
To view the documentation, open the `sphinx/build/html/index.html` file in your
browser.
## Uninstallation
```shell
pip uninstall voxel51-eta
```
## Acknowledgements
This project was gratefully supported by the
[NIST Public Safety Innovation Accelerator Program](https://www.nist.gov/news-events/news/2017/06/nist-awards-385-million-accelerate-public-safety-communications).
## Citation
If you use ETA in your research, feel free to cite the project (but only if you
love it 😊):
```bibtex
@article{moore2017eta,
title={ETA: Extensible Toolkit for Analytics},
author={Moore, B. E. and Corso, J. J.},
journal={GitHub. Note: https://github.com/voxel51/eta},
year={2017}
}
```
Raw data
{
"_id": null,
"home_page": "https://github.com/voxel51/eta",
"name": "voxel51-eta",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Voxel51, Inc.",
"author_email": "info@voxel51.com",
"download_url": "https://files.pythonhosted.org/packages/e1/82/56444fe75ae531a8fabd5f078cbfe0c269d3247ea95e19e58529437eb94f/voxel51_eta-0.13.0.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n\n<h1>\n ETA: Extensible Toolkit for Analytics\n</h1>\n\n**An open and extensible computer vision, machine learning and video analytics\ninfrastructure.**\n\n[](https://pypi.org/project/voxel51-eta)\n[](https://pypi.org/project/voxel51-eta)\n[](https://github.com/pre-commit/pre-commit)\n[](LICENSE)\n[](https://twitter.com/voxel51)\n\n<img src=\"https://user-images.githubusercontent.com/25985824/78944107-2d766c80-7a8b-11ea-8863-fcb4897eecb5.png\" alt=\"eta-infrastructure.png\" width=\"75%\"/>\n\n</div>\n\n## Requirements\n\nETA is very portable:\n\n- Installable on Mac or Linux\n- Supports Python 3.6 or later\n- Supports TensorFlow 1.X and 2.X\n- Supports OpenCV 2.4+ and OpenCV 3.0+\n- Supports CPU-only and GPU-enabled installations\n- Supports CUDA 8, 9 and 10 for GPU installations\n\n## Installation\n\nYou can install the latest release of ETA via `pip`:\n\n```shell\npip install voxel51-eta\n```\n\nThis will perform a [lite installation of ETA](#lite-installation). If you use\nan ETA feature that requires additional dependencies (e.g., `ffmpeg` or\n`tensorflow`), you will be prompted to install the relevant packages.\n\n## Docker Installation\n\nIf you prefer to operate via Docker, see the\n[Docker Build Guide](https://github.com/voxel51/eta/blob/develop/docs/docker_build_guide.md)\nfor simple instructions for building a Docker image with an ETA environment\ninstalled.\n\n## Installation from source\n\n#### Step 0: Setup your Python environment\n\nIt is assumed that you already have\n[Python installed](https://www.python.org/downloads) on your machine.\n\n> **IMPORTANT:** ETA assumes that the version of Python that you intend to use\n> is accessible via `python` and `pip` on your path. In particular, for Python\n> 3 users, this means that you may need to alias `python3` and `pip3` to\n> `python` and `pip`, respectively.\n\nWe strongly recommend that you install ETA\n[in a virtual environment](https://github.com/voxel51/eta/blob/develop/docs/virtualenv_guide.md)\nto maintain a clean workspace.\n\n#### Step 1: Clone the repository\n\n```shell\ngit clone https://github.com/voxel51/eta\ncd eta\n```\n\n#### Step 2: Run the install script\n\n```shell\nbash install.bash\n```\n\nNote that the install script supports flags that control things like (on macOS)\nwhether `port` or `brew` is used to install packages. Run\n`bash install.bash -h` for more information.\n\nFor Linux installs, the script inspects your system to see if CUDA is installed\nvia the `lspci` command. If CUDA is available, TensorFlow is installed with GPU\nsupport.\n\nThe table below lists the version of TensorFlow that will be installed by the\ninstaller, as recommended by the\n[tested build configurations](https://www.tensorflow.org/install/source#tested_build_configurations):\n\n| CUDA Version Found | TensorFlow Version Installed |\n| ------------------ | ---------------------------- |\n| CUDA 8 | `tensorflow-gpu~=1.4` |\n| CUDA 9 | `tensorflow-gpu~=1.12` |\n| CUDA 10 | `tensorflow-gpu~=1.15` |\n| Other CUDA | `tensorflow-gpu~=1.15` |\n| No CUDA | `tensorflow~=1.15` |\n\n> Note that ETA also supports TensorFlow 2.X. The only problems you may face\n> when using ETA with TensorFlow 2 are when trying to run inference with\n> [ETA models](https://github.com/voxel51/eta/blob/develop/eta/models/manifest.json)\n> that only support TensorFlow 1. A notable case here are TF-slim models. In\n> such cases, you should see an informative error message alerting you of the\n> requirement mismatch.\n\n### Lite installation\n\nSome ETA users are only interested in using the core ETA library defined in the\n`eta.core` package. In such cases, you can perform a lite installation using\nthe `-l` flag of the install script:\n\n```shell\nbash install.bash -l\n```\n\nLite installation omits submodules and other large dependencies that are not\nrequired in order for the core library to function. If you use an ETA feature\nthat requires additional dependencies (e.g., `ffmpeg` or `tensorflow`), you\nwill be prompted to install the relevant packages.\n\n### Developer installation\n\nIf you are interested in contributing to ETA or generating its documentation\nfrom source, you should perform a developer installation using the `-d` flag of\nthe install script:\n\n```shell\nbash install.bash -d\n```\n\n## Setting up your execution environment\n\nWhen the root `eta` package is imported, it tries to read the `eta/config.json`\nfile to configure various package-level constants. Many advanced ETA features\nsuch as pipeline building, model management, etc. require a properly configured\nenvironment to function.\n\nTo setup your environment, create a copy the example configuration file:\n\n```shell\ncp config-example.json eta/config.json\n```\n\nIf desired, you can edit your config file to customize the various paths,\nchange default constants, add environment variables, customize your default\n`PYTHONPATH`, and so on. You can also add additional paths to the\n`module_dirs`, `pipeline_dirs`, and `models_dirs` sections to expose custom\nmodules, pipelines, and models to your system.\n\nNote that, when the config file is loaded, any `{{eta}}` patterns in directory\npaths are replaced with the absolute path to the `eta/` directory on your\nmachine.\n\nThe default config includes the `modules/`, `pipelines/`, and `models/`\ndirectories on your module, pipeline, and models search paths, respectively.\nThese directories contain the necessary information to run the standard\nanalytics exposed by the ETA library. In addition, the relative paths\n`./modules/`, `./pipelines/`, and `./models/` are added to their respective\npaths to support the typical directory structure that we adopt for our custom\nprojects.\n\n### CLI\n\nInstalling ETA automatically installs `eta`, a command-line interface (CLI) for\ninteracting with the ETA Library. This utility provides access to many useful\nfeatures of ETA, including building and running pipelines, downloading models,\nand interacting with remote storage.\n\nTo explore the CLI, type `eta --help`, and see the\n[CLI Guide](https://github.com/voxel51/eta/blob/develop/docs/cli_guide.md) for\ncomplete information.\n\n## Quickstart\n\nGet your feet wet with ETA by running some of examples in the\n[examples folder](https://github.com/voxel51/eta/tree/develop/eta/examples).\n\nAlso, see the [docs folder](https://github.com/voxel51/eta/tree/develop/docs)\nfor more documentation about the various components of the ETA library.\n\n## Organization\n\nThe ETA package is organized as described below. For more information about the\ndesign and function of the various ETA components, read the documentation in\nthe [docs folder](https://github.com/voxel51/eta/tree/develop/docs).\n\n| Directory | Description |\n| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `eta/classifiers` | wrappers for performing inference with common classifiers |\n| `eta/core` | the core ETA library, which includes utilities for working with images, videos, embeddings, and much more |\n| `eta/detectors` | wrappers for performing inference with common detectors |\n| `eta/docs` | documentation about the ETA library |\n| `eta/examples` | examples of using the ETA library |\n| `eta/models` | library of ML models. The `manifest.json` file in this folder enumerates the models, which are downloaded to this folder as needed. See the [Models developer's guide](https://github.com/voxel51/eta/blob/develop/docs/models_dev_guide.md) for more information about ETA's model registry |\n| `eta/modules` | library of video processing/analytics modules. See the [Module developer's guide](https://github.com/voxel51/eta/blob/develop/docs/modules_dev_guide.md) for more information about ETA modules |\n| `eta/pipelines` | library of video processing/analytics pipelines. See the [Pipeline developer's guide](https://github.com/voxel51/eta/blob/develop/docs/pipelines_dev_guide.md) for more information about ETA pipelines |\n| `eta/resources` | resources such as media, templates, etc |\n| `eta/segmenters` | wrappers for performing inference with common semantic segmenters |\n| `eta/tensorflow` | third-party TensorFlow repositories that ETA builds upon |\n\n## Generating Documentation\n\nThis project uses\n[Sphinx-Napoleon](https://pypi.python.org/pypi/sphinxcontrib-napoleon) to\ngenerate its documentation from source.\n\nTo generate the documentation, you must install the developer dependencies by\nrunning the `install.bash` script with the `-d` flag.\n\nThen you can generate the docs by running:\n\n```shell\nbash sphinx/generate_docs.bash\n```\n\nTo view the documentation, open the `sphinx/build/html/index.html` file in your\nbrowser.\n\n## Uninstallation\n\n```shell\npip uninstall voxel51-eta\n```\n\n## Acknowledgements\n\nThis project was gratefully supported by the\n[NIST Public Safety Innovation Accelerator Program](https://www.nist.gov/news-events/news/2017/06/nist-awards-385-million-accelerate-public-safety-communications).\n\n## Citation\n\nIf you use ETA in your research, feel free to cite the project (but only if you\nlove it \ud83d\ude0a):\n\n```bibtex\n@article{moore2017eta,\n title={ETA: Extensible Toolkit for Analytics},\n author={Moore, B. E. and Corso, J. J.},\n journal={GitHub. Note: https://github.com/voxel51/eta},\n year={2017}\n}\n```\n",
"bugtrack_url": null,
"license": "Apache",
"summary": "Extensible Toolkit for Analytics",
"version": "0.13.0",
"project_urls": {
"Homepage": "https://github.com/voxel51/eta"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ff47dd6d223462c16b246cbbf2c82b979f5202fac2138957f7133c2dae03ba95",
"md5": "436f4ef45cf7b2dd5961148d82fb3970",
"sha256": "fbe5bbf6786678cfc96588854d56604bff2d82118fedba6cd0e7a66a8a7ed7d4"
},
"downloads": -1,
"filename": "voxel51_eta-0.13.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "436f4ef45cf7b2dd5961148d82fb3970",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.6",
"size": 943072,
"upload_time": "2024-09-16T15:27:33",
"upload_time_iso_8601": "2024-09-16T15:27:33.296626Z",
"url": "https://files.pythonhosted.org/packages/ff/47/dd6d223462c16b246cbbf2c82b979f5202fac2138957f7133c2dae03ba95/voxel51_eta-0.13.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e18256444fe75ae531a8fabd5f078cbfe0c269d3247ea95e19e58529437eb94f",
"md5": "7527dcac4ff74a2a4323018b9199ff5e",
"sha256": "a815d714b6ec6df91e9f16b830aa290ea36a4a9328397dc72e98d3b21b2169bb"
},
"downloads": -1,
"filename": "voxel51_eta-0.13.0.tar.gz",
"has_sig": false,
"md5_digest": "7527dcac4ff74a2a4323018b9199ff5e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 910553,
"upload_time": "2024-09-16T15:27:35",
"upload_time_iso_8601": "2024-09-16T15:27:35.164719Z",
"url": "https://files.pythonhosted.org/packages/e1/82/56444fe75ae531a8fabd5f078cbfe0c269d3247ea95e19e58529437eb94f/voxel51_eta-0.13.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-16 15:27:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "voxel51",
"github_project": "eta",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "voxel51-eta"
}