---
title: "Discussion on \"YOLO from Scratch: Object Detection\" | Hashnode"
description: "Discussion on \"YOLO from Scratch: Object Detection\". How a Real-Time Detector Works, from the Image to the Predictions"
url: "https://hashnode.com/posts/yolo-from-scratch-object-detection/6ac284476e727470bd15dbb6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [YOLO from Scratch: Object Detection](https://datapiml.hashnode.dev/yolo-from-scratch-object-detection?utm_source=hashnode&utm_medium=feed)

How a Real-Time Detector Works, from the Image to the Predictions

Oct 4 · 19 min read · datapiml.hashnode.dev  
Read the article

-   [#yolo](https://hashnode.com/tag/yolo)
-   [#computer-vision](https://hashnode.com/tag/computer-vision)
-   [#object-detection](https://hashnode.com/tag/object-detection)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#deep-learning](https://hashnode.com/tag/deep-learning)

## Written by

[DataPi ML](https://hashnode.com/@datapiml)

@datapiml · Madrid, Spain

  
[View profile](https://hashnode.com/@datapiml)

🇪🇸 IA, datos y machine learning con proyectos reales, código, esquemas y ejemplos prácticos. · 🇬🇧 AI, data &amp; machine learning through real projects, code, diagrams and practical examples.

## Responses 4

Markdown supported · ⌘↵ to post

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 4](https://hashnode.com/posts/yolo-from-scratch-object-detection/6ac284476e727470bd15dbb6/comment/6ac2944a83dc6fbbaabc297d)

The export section is where I would add a coordinate-level check. ONNX or TensorRT execution can produce convincing detections while the application maps boxes incorrectly after resizing and padding. The normalized and pixel-coordinate representations you explain earlier make a useful test fixture for that boundary.

Run a few non-square images through both the original and exported pipelines, then compare boxes in the original image coordinates with identical preprocessing and suppression settings. Include objects near the padded edges and predictions close to the confidence threshold. That catches integration mistakes that an aggregate speed measurement will miss, and separates export differences from postprocessing differences.

[DataPi ML](https://hashnode.com/@datapiml)

[Oct 6](https://hashnode.com/posts/yolo-from-scratch-object-detection/6ac284476e727470bd15dbb6/comment/6ac2944a83dc6fbbaabc297d#reply-6ac51658ecfff53bac291f9d)

Thanks for the detailed suggestion. That’s a really useful point, especially the distinction between export issues and preprocessing/postprocessing mistakes. Comparing box coordinates on non-square images and around padded regions is a great validation step that can easily be overlooked. We’ll definitely keep it in mind for a future article focused on deployment and inference optimization.

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 6](https://hashnode.com/posts/yolo-from-scratch-object-detection/6ac284476e727470bd15dbb6/comment/6ac2944a83dc6fbbaabc297d#reply-6ac538b3ac456924ff941fc0)

That deployment article could make the boundary very concrete with one fixture that records the resize ratio, padding offsets and expected boxes in original coordinates. I would compare the outputs before suppression as well as the final detections, so a threshold or NMS difference does not hide a coordinate mismatch.

Keeping the fixture in the exported runtime’s integration checks would also make it useful after model updates, when the application mapping may remain unchanged but the output layout or precision changes.

[Kartik N V J K](https://hashnode.com/@kartik-nvj)

[Oct 6](https://hashnode.com/posts/yolo-from-scratch-object-detection/6ac284476e727470bd15dbb6/comment/6ac54d791a781d6885187d85)

Your 'detection is not tracking' section is where I'd want a metric for identity. I score agents step by step because one good aggregate can hide a broken stage, and per-frame mAP looks like that trap. Will the tracking article cover ID switches or IDF1?
