Skip to main content

AutoTrain

Auto training pipeline for object detection models

This pipeline trains object detection model(YOLOv8) using real time inference data. It is for automating the supervised learning, specifically cutting out the manual labelling task and training the model for it to remember the object as per the label we want.

Requirements

  • Python >= 3.8
  • GPU (optional but prefferable)

Package Installation

pip install autotrain-vision

Pip package : autotrain-vision

For more details, refer to the GitHub repository.

Common Installation Errors

Error: Rebuilt the library with Windows, GTK+ 2.x or Carbon support.

Try

sudo apt install libgtk2.0-dev pkg-config
pip install opencv-contrib-python

To use auto train:

from autotrain_vision import AutoTrain
at = AutoTrain(combined_folder="/path/to/local/folder")
at.run()

Arguments:

  • data_folder (str, required): Path to local folder to store the new data
  • prev_data_folder (str): Path to local previous folder containing images and labels folder
  • new_weights (boolean): True if to not use any previous data
  • abs_yaml_file (str): Absolute path to the YAML file for given prev_data_folder
  • draw_bb (boolean): True to draw bounding boxes on previous image dataset
  • image_threshold (int): Number of images to capture for creating new dataset
  • number_aug (int): Number of times to apply augmentations
  • epochs (int): Number of epochs for training
  • map_threshold (float): value<=1 ; Threshold to compare mAP50 score
  • inference (boolean): True to perform the inference on live feed
  • inference_threshold (float): value<=1 ; Threshold for inference confidence score
  • camera_range (int): Range of camera indexes to look for

Output:

  • weights.pt : Weights file for trained model.

Capabilities

  • Creates new annotated data
  • Combines previous annotated data with newly captured
  • Annotates the data with visible bounding boxes, given images and corresponding v8 txt label files
  • Generates new weights (pt) file for given dataset
  • Generates analysis graphs and metrices for validation

To-dos

  • Add multiple objects annotation in single frame
  • RnD on Florence capabilities for giving in text prompt to ZSD model
  • RnD on discarding faulty annotations from procured dataset

Metadata

Release files for autotrain-vision 0.0.3

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

Source distribution (sdist)

Source distribution for autotrain-vision 0.0.3
File Size Uploaded
autotrain_vision-0.0.3.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autotrain-vision 0.0.3
File Interpreter ABI Platform
autotrain_vision-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 24.9 kB

Release files / autotrain_vision-0.0.3.tar.gz

Download URL autotrain_vision-0.0.3.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a3ff354616ba801ede8051de321851e4f091ba2489479f7263b7a2b3088f82f5
BLAKE2b-256 checksum
How to use checksums
7545f147a65b99bcfa8f5254cf0adfb8a171fcf8a731e35d70f4b7de0e12c7fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.10

Release files / autotrain_vision-0.0.3-py3-none-any.whl

Download URL autotrain_vision-0.0.3-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed63554f265784843796f026339cd3173c7db112afa7f21ef2c72dbbe9f46de0
BLAKE2b-256 checksum
How to use checksums
1d41f59035f9fce4d31282c8e5d104afa7c392e0a872f03d56283ae0af801bda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

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