The AIde label interface (without the AI backend) requires the following libraries:
- bottle>=0.12
- psycopg2>=2.8.2
- tqdm>=4.32.1
- bcrypt>=3.1.6
- netifaces>=0.10.9
- gunicorn>=19.9.0
The AI backend core further relies on:
- celery[librabbitmq,redis,auth,msgpack]>=4.3.0
Finally, the built-in models require:
- numpy>=1.16.4
- pytorch>=1.1.0
- torchvision>=0.3.0
It is highly recommended to install PyTorch with GPU support (see the official website).
The following installation routine had been tested on Ubuntu 16.04. AIde will likely run on different OS as well, with instructions requiring corresponding adaptations.
Run the following code snippets on all machines that run one of the services for AIde (LabelUI, AIController, AIWorker, etc.). It is strongly recommended to run AIde in a self-contained Python environment, such as Conda (recommended and used below) or Virtualenv.
# specify the root folder where you wish to install AIde
targetDir=/path/to/desired/source/folder
# create environment (requires conda or miniconda)
conda create -y -n aide python=3.7
conda activate aide
# download AIde source code
sudo apt-get update && sudo apt-get install -y git
cd $targetDir
git clone git+https://github.com/microsoft/aerial_wildlife_detection.git
# install basic requirements
sudo apt-get install -y libpq-dev python-dev
pip install -U -r requirements.txt
# at this point you may want to install the additonal packages listed above, if required
Every instance running one of the services for AIde gets its required properties from a *.ini file. It is highly recommended to prepare a .ini file at the start of each project and to have a copy of the same file on all machines. Important: NEVER, EVER make the configuration file accessible to the outside web.
- Create a *.ini file for your project. See the provided file under
config/settings.ini
for an example. To view all possible parameters, see here. - Copy the *.ini file to each server instance.
- On each instance, set the
AIDE_CONFIG_PATH
environment variable to point to your *.ini file:
# temporarily:
export AIDE_CONFIG_PATH=/path/to/settings.ini
# permanently (requires re-login):
echo "export AIDE_CONFIG_PATH=path/to/settings.ini" | tee ~/.profile
See here
If you only want to use AIde as a labeling platform (i.e, without any AI model in the background), you can skip this step. Otherwise see here.
Importing images (and labels) into a running database is explained here.
See here