Skip to main content

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 .

Uploading to PyPi by hand

python setup.py sdist bdist_wheel
twine upload dist/* # The asterisk is important

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

Docs

Currently, Read the Docs is used for CI of the docs. Before submitting changes, test the make command in the environment:

conda env create -f environment.yml
conda activate trainer_env
make html

If this throws warnings or errors, Read the Docs won`t publish them.

Tutorials inside the repo

  • Do not use jupyter notebooks
  • Should be testable without preparing data by hand where possible.

Metadata

Release files for ai-trainer 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-trainer 0.0.10
File Size Uploaded
ai-trainer-0.0.10.tar.gz 40.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-trainer 0.0.10
File Interpreter ABI Platform
ai_trainer-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 92.3 kB

Release files / ai-trainer-0.0.10.tar.gz

Download URL ai-trainer-0.0.10.tar.gz
Size 40.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f7618f8e84bb06c51d0efe1ea6f937d60cddbc1b224d71790376abd71aa0c176
BLAKE2b-256 checksum
How to use checksums
7b12d284f606e3a5a614c640b58044664d5de4556ce348a61ecd5dd00631b6db
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ai_trainer-0.0.10-py3-none-any.whl

Download URL ai_trainer-0.0.10-py3-none-any.whl
Size 52.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c757e24037dcad0fa84f13b8c9e9209eef9842693d2ba81af624d1d785f0fa02
BLAKE2b-256 checksum
How to use checksums
6a9ae12c571c2b25f2f229f494c4c47a5db07733ea58be031b212ca4ec50365a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.8

2 release files

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page