Skip to main content

Simplify YOLO model training and data splitting for object detection tasks.

Project description

ObjectTrainer

ObjectTrainer is a Python package designed to simplify the process of training YOLO (You Only Look Once) models for object detection tasks. With ObjectTrainer, users can easily train YOLO models using custom datasets and split their data into training, validation, and testing sets. The package provides classes for both model training and data splitting, allowing users to efficiently manage their training pipeline. Additionally, ObjectTrainer includes functionality for saving the best-performing model weights, making it easy to deploy trained models for inference tasks.

Features

  • Train YOLO models with custom datasets

  • Split datasets into training, validation, and testing sets

  • Save best-performing model weights for deployment

Installation

You can install ObjectTrainer using pip:

pip install ObjectTrainer

Usage

Training a YOLO Model

from ObjectTrainer import YOLO_trainer



# Initialize YOLO Trainer with absolute data.yaml folder path and absolute destination folder path for best weights

trainer = YOLO_trainer(Data_yaml_fold_path='path/to/data.yaml', Best_Weight_dest='path/to/destination', epochs=50)



# Run the full training process

trainer.run_full_training()

Splitting Data

from ObjectTrainer import data_splitter



# Initialize Data Splitter with absolute data folder path, destination folder path, and number of classes

splitter = data_splitter(data_folder='path/to/data', dest_fold='path/to/destination', no_classes=3)



# Run the full data splitting process

splitter.run_full_split()

License

Model Trainer is licensed under the MIT License. See the LICENSE file for details.

Support

For support, please open an issue on our GitHub repository.




This Markdown-formatted README includes the updated usage instructions with the new single-method calls for training and data splitting, making it easy for users to follow and implement.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

ObjectTrainer-0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

ObjectTrainer-0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file ObjectTrainer-0.1.tar.gz.

File metadata

  • Download URL: ObjectTrainer-0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for ObjectTrainer-0.1.tar.gz
Algorithm Hash digest
SHA256 19bbdce2e53febf0da9b8c66d98dddd7276e36edc40075dcc6dfc0293e70c17c
MD5 dab42a72476cec637cc3164ffa3ea8ad
BLAKE2b-256 76dca352c260d99ccb7521065a61c0414a6653cad41e9bf9cee750492c889de5

See more details on using hashes here.

File details

Details for the file ObjectTrainer-0.1-py3-none-any.whl.

File metadata

  • Download URL: ObjectTrainer-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for ObjectTrainer-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a0069aadf7f0d65a6ce40688fa80381673ca8b12707774e03165baefac72167
MD5 d5a165a54e724323fcb494de22d648d8
BLAKE2b-256 c415388310a0bbd21919b63cdf133761aea2c091b405e2c0cd8486c1c720f784

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