How vanshksharma/infrared-object-detection works
This repository adapts YOLOv5 for infrared object detection: users prepare CAMEL-style images and normalized labels, train a detector, evaluate its performance, and run detection on images, video, streams, or other sources. The README documents training and inference; sampled code and the SOURCE INDEX support the main YOLOv5 module relationships. Dataset preparation details and the notebook workflow are not sampled, so their internal links are omitted.
Main entry points: detect.py Detection runner · train.py Training runner · val.py Validation runner · export.py Model export
Components 23
Data handling
- Infrared data
datasets/infrared - Dataset loaders
yolov5/utils/datasets.py - Image augmentation
yolov5/utils/augmentations.py
Model training
- Training runner
yolov5/train.py - YOLO architecture
yolov5/models/yolo.py - Common layers
yolov5/models/common.py - Experimental models
yolov5/models/experimental.py - Training loss
yolov5/utils/loss.py - Training support
yolov5/utils - Run logging
yolov5/utils/loggers/__init__.py - Trained weights
yolov5/runs/train
Inference and export
- Detection runner
yolov5/detect.py - Inference backends
yolov5/models/common.py - Model export
yolov5/export.py - TensorFlow backend
yolov5/models/tf.py - Detection results
yolov5/runs/detect
Evaluation and reporting
- Validation runner
yolov5/val.py - Detection metrics
yolov5/utils/metrics.py - Plots and annotations
yolov5/utils/plots.py
Shared model utilities
- Model utilities
yolov5/utils/torch_utils.py - General utilities
yolov5/utils/general.py
Other components
- Engineer
- Image or stream
Connections 30
- Engineer → Infrared data: organizes
README.md - Engineer → Training runner: starts training
README.md - Training runner → Dataset loaders: loads batches
yolov5/train.py - Dataset loaders → Image augmentation: augments images
yolov5/utils/datasets.py - Training runner → YOLO architecture: builds model
yolov5/train.py - YOLO architecture → Common layers: uses layers
yolov5/models/yolo.py - YOLO architecture → Experimental models: uses modules
yolov5/models/yolo.py - Training runner → Training loss: computes loss
yolov5/train.py - Training runner → Training support: uses utilities
yolov5/train.py - Training runner → Run logging: logs run
yolov5/train.py - Training runner → Validation runner: validates model
yolov5/train.py - Training runner → Trained weights: saves weights
README.md - Engineer → Validation runner: evaluates model
yolov5/val.py - Validation runner → Dataset loaders: loads batches
yolov5/val.py - Validation runner → Detection metrics: computes metrics
yolov5/val.py - Validation runner → Plots and annotations: plots results
yolov5/val.py - Engineer → Image or stream: provides source
README.md - Engineer → Detection runner: starts detection
README.md - Detection runner → Image or stream: reads source
README.md - Detection runner → Inference backends: runs inference
yolov5/detect.py - Detection runner → Dataset loaders: loads source
yolov5/detect.py - Detection runner → General utilities: uses utilities
yolov5/detect.py - Detection runner → Plots and annotations: renders detections
yolov5/detect.py - Detection runner → Model utilities: uses utilities
yolov5/detect.py - Detection runner → Trained weights: loads weights
README.md - Detection runner → Detection results: saves results
README.md - Engineer → Model export: exports model
yolov5/export.py - Model export → Experimental models: loads model
yolov5/export.py - Model export → YOLO architecture: uses model
yolov5/export.py - Model export → TensorFlow backend: converts model
yolov5/export.py