Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/computer-vision-with-marco/yolo-training-template
/ functions
Functions
27 in github.com/computer-vision-with-marco/yolo-training-template
⨍
Functions
27
◇
Types & classes
1
↓ 4 callers
Method
preprocess_dataset
Run full preprocessing pipeline: cleaning + augmentation. Args: images_dir: Source images directory labels_d
scripts/preprocessing.py:326
↓ 2 callers
Method
augment_dataset
Augment dataset by creating additional transformed versions of images and labels. Args: images_dir: Source images direct
scripts/preprocessing.py:237
↓ 2 callers
Function
draw_annotations
Draw bounding boxes on image. Args: image: Input image as numpy array bboxes: List of bbox dicts class_names: Option
scripts/dataset_explorer.py:128
↓ 2 callers
Function
load_model
Load the YOLO model from the specified path.
scripts/inference.py:13
↓ 2 callers
Function
parse_yolo_labels
Parse YOLO format labels and return bbox data in pixel coordinates. Args: label_path: Path to .txt label file img_width: Ima
scripts/dataset_explorer.py:88
↓ 2 callers
Function
train_model
Train the YOLO model.
scripts/main.py:102
↓ 1 callers
Method
_build_augmentation_pipeline
Build Albumentations augmentation pipeline.
scripts/preprocessing.py:78
↓ 1 callers
Method
_load_config
Load preprocessing configuration from YAML file.
scripts/preprocessing.py:34
↓ 1 callers
Method
_merge_configs
Recursively merge update config into base config.
scripts/preprocessing.py:70
↓ 1 callers
Method
clean_dataset
Clean dataset by removing corrupted files and invalid annotations. Args: images_dir: Directory containing images
scripts/preprocessing.py:132
↓ 1 callers
Function
compute_dataset_stats
Compute statistics for the dataset. Args: dataset_splits: Dictionary of split names to image paths labels_dir: Directory con
scripts/dataset_explorer.py:166
↓ 1 callers
Function
create_default_config
Create a default preprocessing configuration file. Args: output_path: Path to save the config file
scripts/preprocessing.py:363
↓ 1 callers
Function
create_yaml
Create the data.yaml file for YOLO training.
scripts/main.py:86
↓ 1 callers
Function
create_yolo_dataset
Annotate images using GroundingDINO and create a YOLO-compatible dataset. Args: input_folder (str): Path to folder containing input
autolabeling/auto-label.py:8
↓ 1 callers
Function
detect_dataset_structure
Detect train/val/test images and labels paths in the dataset.
scripts/main.py:21
↓ 1 callers
Function
download_dataset
Download the Kaggle dataset.
scripts/main.py:11
↓ 1 callers
Function
export_to_ncnn
Export the trained YOLO model to NCNN format.
scripts/main.py:158
↓ 1 callers
Function
get_sample_images
Get sample images with annotations for display. Args: dataset_splits: Dataset splits sample_size: Number of images to sample
scripts/dataset_explorer.py:217
↓ 1 callers
Function
infer_image
Perform inference on a single image.
scripts/inference.py:22
↓ 1 callers
Function
infer_video
Perform inference on a video file.
scripts/inference.py:42
↓ 1 callers
Function
infer_webcam
Perform real-time inference on webcam feed.
scripts/inference.py:98
↓ 1 callers
Function
load_dataset
Load dataset structure and return image paths per split. Args: dataset_path: Path to dataset root directory Returns: Di
scripts/dataset_explorer.py:17
↓ 1 callers
Function
main
()
autolabeling/auto-label.py:84
↓ 1 callers
Function
main
()
scripts/inference.py:119
↓ 1 callers
Function
main
()
scripts/main.py:166
Method
__init__
Initialize preprocessor with configuration. Args: config_path: Path to YAML config file. If None, uses defaults.
scripts/preprocessing.py:24
Function
mouse_callback
(event, x, y, flags, param)
scripts/select_blurring.py:46