Skip to main content

AI Trainer

Project description

Documentation

Installation for User

Open anaconda powershell, activate an environment with anaconda, navigate into the trainer repo and execute the following to install trainer using pip, including its dependencies:

pip install ai-trainer

For Online Learning you have to install PyTorch:

conda install pytorch torchvision cudatoolkit=10.1 -c pytorch

AI-Trainer helps with building a data generator and it relies on imgaug for it:

conda install imgaug -c conda-forge

Getting started with training models

Trainer currently supports annotating images and videos. First, create a dataset using

trainer init-ds
cd YOUR_DATASET

Getting started with using trainer in python

For using the annotated data, you can use trainer as a python package. After activating the environment containing the trainer and its dependencies, feel free to inspect some of the tutorials in ./tutorials/.

Development Setup

Execute the user installation, but instead of using pip install ai-trainer, clone the repo locally.

git clone https://github.com/Telcrome/ai-trainer

Both vsc and pycharm are used for development with their configurations provided in .vscode and .idea

Recommended environments

For development we recommend to install the conda environment into a subfolder of the repo. This allows for easier experimentation and the IDE expects it this way.

conda env create --prefix ./envs -f environment.yml
conda activate .\envs\.

Now install a deep learning backend. PyTorch provides well-working conda install commands.

For Tensorflow with GPU:

conda install cudatoolkit=10.0 cudnn=7.6.0=cuda10.0_0
pip install tensorflow-gpu

Testing Development for pip and cli tools

Installing the folder directly using pip does not work due to the large amount of files inside the local development folder, especially because in the local development setup the environment is expected to be a subfolder of the repo.

pip install -e .

Using Docker

Docker and the provided DOCKERFILE support is currently experimental as it proved to slow down the annotation GUI too much. When the transition to a web GUI is completed docker will be supported again.

Contribution

Tutorials inside the repo

  • Do not use jupyter notebooks

Project details


Download files

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

Source Distribution

ai-trainer-0.0.8.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

ai_trainer-0.0.8-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

Details for the file ai-trainer-0.0.8.tar.gz.

File metadata

  • Download URL: ai-trainer-0.0.8.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for ai-trainer-0.0.8.tar.gz
Algorithm Hash digest
SHA256 fc28708738410e6ecc94a1ee370cdb1c25f82772c031ed16b5d49f05d4f58e37
MD5 3b9dca5dedadd70b30619d61bfc3b638
BLAKE2b-256 3de2260f3c786fa6e2e873da5197296bb13d54cb6c370c9ce54c29c3da4c366d

See more details on using hashes here.

File details

Details for the file ai_trainer-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: ai_trainer-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 47.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for ai_trainer-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 29845785ed3c8eb9f5640630fd4401852d34719ef420522f3c7c1ce82d13e671
MD5 7d0f887ab2566643d5ea96397343e7a1
BLAKE2b-256 a1964c81ecba4949087d73c493efa6498a0b921aab417b4c47680119062c53f9

See more details on using hashes here.

Supported by

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