Skip to content

LightCyan01/yolo26-trainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOLO26 Fine-Tuner

A terminal-based interactive tool for fine-tuning and running inference with YOLO26 models on custom datasets. Navigate training, validation, prediction, and hyperparameter configuration entirely through keyboard-driven menus — no config files needed.

Features

  • Train — configure epochs, batch size, optimizer, LR scheduler, and more through interactive menus
  • Validate — run validation with a custom trained or official model; all settings optional (model remembers training config)
  • Predict — run inference on a webcam or video file
  • Hyperparameter tuning — manual overrides or automatic tuning via model.tune()
  • Augmentation settings — full control over mosaic, mixup, flips, HSV shifts, and more
  • Dataset support — any dataset with a YOLO-format .yaml file; point the menu at it and go

Requirements

  • Python 3.14+
  • CUDA-capable GPU (recommended)
  • uv package manager

Setup

git clone https://github.com/LightCyan01/yolo26-trainer.git
cd yolo26-trainer
uv sync

Official model weights (YOLO26) are downloaded automatically by Ultralytics on first use.

Usage

uv run main.py

Use arrow keys to navigate, Enter to select. The main menu offers:

  • Train — select task type → pick an official model → set dataset YAML → configure settings → start
  • Validate — select task type → pick official or custom trained model → optionally override val settings → start
  • Predict — select task type → pick official or custom trained model → select webcam or video file → optionally override predict settings → start

Project Structure

src/
  menu/         # Interactive menus (train, val, predict)
  training/     # run_train(), run_val(), run_predict() wrappers
  utils/        # Settings dataclasses, validators, file dialogs, model lists
dataset/
  NEU-DET-YOLO/ # Example: NEU surface defect dataset (YOLO format)
  MVTecAD/      # Example: MVTec anomaly detection dataset
models/         # Auto-downloaded weights are cached here

Tech Stack

About

An interactive CLI tool for training, validating, and tuning YOLO26 models with full control over training settings, hyperparameters, and augmentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages