Skip to main content

Automate the manual labelling and training for supervised models, YOLOv8

Project description

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

To use auto train:

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

Arguments:

  • combined_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

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

autotrain_vision-0.0.2.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autotrain_vision-0.0.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file autotrain_vision-0.0.2.tar.gz.

File metadata

  • Download URL: autotrain_vision-0.0.2.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.10

File hashes

Hashes for autotrain_vision-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b53e7b8ed6d0a2f89ff8ffb491ed5e61b9a39d67925a15cf22eaf12c7a0e3499
MD5 c6b7bd6836919e8a7b38ff657b754e60
BLAKE2b-256 bb840fd7e573fb6e27f641e5f14c8122f4f55a19b1f738d3aa4ca83c72a42fa7

See more details on using hashes here.

File details

Details for the file autotrain_vision-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for autotrain_vision-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 30e2892d87ccbabb5d8cb31fb52a979ad07a4a549a22d848d74a3baf63b9418b
MD5 c0f7574f22baffa3d74af5725c4b1d0d
BLAKE2b-256 4b9dcc24b6e224dbb4522747460897f15b79ddcca2dd090313392c110748433c

See more details on using hashes here.

Supported by

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