<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Luís Condados on Medium]]></title>
        <description><![CDATA[Stories by Luís Condados on Medium]]></description>
        <link>https://medium.com/@condadoslgpc?source=rss-d64b48f54384------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1qnsg2nkkTpBQq_o5taGuw.jpeg</url>
            <title>Stories by Luís Condados on Medium</title>
            <link>https://medium.com/@condadoslgpc?source=rss-d64b48f54384------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:42:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@condadoslgpc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[3D Vehicle Detection on a Laptop iGPU]]></title>
            <link>https://condadoslgpc.medium.com/3d-vehicle-detection-on-a-laptop-igpu-ce8a2599eb0d?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce8a2599eb0d</guid>
            <category><![CDATA[edge-ai]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[intel-software-innovators]]></category>
            <category><![CDATA[openvino]]></category>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 11:15:52 GMT</pubDate>
            <atom:updated>2026-10-06T11:15:52.236Z</atom:updated>
            <content:encoded><![CDATA[<p>UrbanOmniDetect-2 draws 3D boxes and a top-down map from one uncalibrated camera. Quantized to INT8 with OpenVINO, it runs at 30 fps on a laptop’s Intel Iris Xe.</p><p><em>Originally published at </em><a href="https://condados.ai/blog/3d-vehicle-detection-laptop-igpu"><em>condados.ai/blog/3d-vehicle-detection-laptop-igpu</em></a><em>, with the interactive labs and the full reproducibility block.</em></p><p>A traffic camera sees cars as flat pictures. UrbanOmniDetect-2 turns each one into a box with a length, a width, and a height, and puts it on a map of the road seen from above, without anyone measuring the camera first. I ran it on the graphics chip built into an ordinary laptop to see what that costs.</p><p><strong>The medium model at 640 px, quantized to INT8 with OpenVINO and with its final layer kept in float, takes a median 33 ms per frame on an Intel Iris Xe: 30 frames per second, 1.74× faster than FP16 on the same chip. Its box corners land within 0.39 px of the original PyTorch model on one camera and 0.50 px on a second, and 98.5 to 98.9% of its detections match.</strong> Those are agreement numbers, not accuracy: neither clip has ground truth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*su9pJ8jpKx2GhOVe.gif" /></figure><p>The model is by Mehmet Kerem Turkcan [1][2]. Its release was timed on an RTX PRO 6000; this is the edge question instead, on the Iris Xe (the graphics chip inside the processor package, with no memory of its own) of a 12th-generation Core i7 laptop, with the same laptop’s RTX 3060 and CPU as comparisons. Both test clips are real footage under a Creative Commons Attribution (CC BY) licence, filmed from a footbridge by a fixed camera: a suburban road by Karol Majek [7] and a ten-lane crossing in Shanghai by Thompson Fang [8]. Number plates are blurred.</p><h3>What the model does</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*X8vLZtHqSDdOFS7d.png" /></figure><ol><li><strong>Camera frame.</strong> A fixed camera nobody has measured: no focal length, no height, no tilt.</li><li><strong>Detector.</strong> One forward pass of a YOLO26 network with a pose head (the part that outputs keypoints) [2]. This is the only step timed here.</li><li><strong>Box, class, 8 corners.</strong> For each road user, a 2D box, a class, and the eight corners of its 3D box as they appear in the image: four on the road, four on the roof [1].</li><li><strong>Ground corners.</strong> The four road-contact corners are the vehicle’s footprint.</li><li><strong>Ground homography.</strong> A homography is a 3×3 matrix that maps one plane onto another, here the road as photographed onto the road seen from above. Turkcan’s solver fits it from all the footprints under the constraint that each must come out as a rectangle with right angles [1]. Knowing right angles on a plane is enough to recover its shape up to scale [3], which is what removes the need for calibration.</li><li><strong>Top-down map.</strong> Every footprint goes through that matrix. The background is the same camera’s view of the empty road, warped the same way.</li></ol><p>The tracking and the offline smoothing that make the video steady come from the upstream renderer; only step 2 is timed. On the site, step 6 has a lab where you drag the four corners of a court and watch the top-down view follow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tCzGpBzOimo0cYTM.png" /></figure><h3>The speed: 30 fps on the laptop’s own graphics chip</h3><p>Every row is the detector’s inference stage at 640 px, the median of 200 frames of the footbridge clip after 20 warm-up frames, over three sessions. INT8 means the weights and activations are 8-bit integers instead of 16- or 32-bit floats [4]; “float head” means everything is INT8 except the final layer, the part that writes out the boxes and corners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1DvKltWuScmhrJmW.png" /></figure><ul><li>Iris Xe, OpenVINO FP16: 57.8 ms (55.8 to 68.5 across sessions)</li><li>Iris Xe, OpenVINO INT8 with float head: 33.2 ms (26.1 to 47.1)</li><li>i7–12700H CPU, OpenVINO FP32: 160.9 ms (156.1 to 165.8)</li><li>i7–12700H CPU, OpenVINO INT8: 48.2 ms (46.2 to 53.6)</li><li>RTX 3060 Laptop, TensorRT FP16: 4.0 ms (3.9 to 4.0)</li></ul><p>On the iGPU, INT8 with a float head is what crosses into real time: 33.2 ms against 57.8 ms for FP16, a 1.74× speed-up, the frame time down by 43%. The CPU alone reaches 48.2 ms in INT8, 3.3× faster than its own FP32. The release’s largest model, X at 960 px, takes 303.9 ms per frame on the same Iris Xe (3.3 fps) and 20.9 ms on the RTX 3060.</p><blockquote><strong><em>Worked example: how many footbridge cameras one laptop can serve.</em></strong><em> A counting camera rarely needs 30 frames per second; take 15.</em></blockquote><blockquote><em>Frames per second the detector delivers = 1000 ms / 33.2 ms = 30.1.</em></blockquote><blockquote><em>Cameras at 15 fps each = floor(30.1 / 15) = 2.</em></blockquote><blockquote><em>On the hottest session the same configuration took 47.1 ms: 1000 / 47.1 = 21.2 frames per second, floor(21.2 / 15) = 1 camera.</em></blockquote><blockquote><strong><em>What it means:</em></strong><em> one laptop with no graphics card handles one camera at 15 fps with room to spare, and two when it runs cool. That is the detector alone, one frame at a time; tracking, the ground solve and drawing come out of the same budget, and batching was not measured.</em></blockquote><p>The site has the same calculation as a lab, for every measured configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pBeUau9ZqPE5KsXQ.png" /></figure><h3>The quality: what INT8 does to the corners</h3><p>A faster model is only useful if it still puts the corners in the same place. Each converted model is compared with the original PyTorch FP32 model on the same frames: a detection matches when an FP32 detection of the same class overlaps it by at least half (IoU ≥ 0.5), and corner error is the distance in pixels between matching corners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d0-1PVM91IrLGkjO.png" /></figure><ul><li>Footbridge, INT8 on the whole network: 0.96 px median, 3.04 px at the p90, 98.2% of FP32 detections found</li><li>Footbridge, INT8 with float head: 0.39 px median, 0.98 px at the p90, 98.9% found</li><li>Shanghai, INT8 on the whole network: 0.95 px median, 2.64 px at the p90, 97.5% found</li><li>Shanghai, INT8 with float head: 0.50 px median, 1.21 px at the p90, 98.5% found</li></ul><blockquote><strong><em>Worked example: what keeping the head in float buys on the footbridge.</em></strong><em> Median corner error, whole-network INT8 against float head: 0.96 → 0.39 px.</em></blockquote><blockquote><em>Reduction = (0.96 − 0.39) / 0.96 = 0.59, so 59% smaller. At the p90: (3.04 − 0.98) / 3.04 = 0.68, 68% smaller.</em></blockquote><blockquote><em>Speed in the same session: 31.3 ms whole-network INT8 against 33.2 ms float head, within the spread between sessions.</em></blockquote><blockquote><strong><em>What it means:</em></strong><em> a car near the top of the footbridge frame is about 45 px tall, so a 3 px error is about 7% of the car and 1 px about 2%. The float head buys that difference for no measurable speed.</em></blockquote><p>The Shanghai clip was never used for calibration, and the pattern holds there. OpenVINO’s quantization guide gives excluding the model’s last layer to preserve accuracy as its example of what the ignored_scope setting is for [5], and the Ultralytics INT8 exporter does the same [6]. I tested one calibration set (300 frames) and one quantization preset; a different calibration mix or quantization-aware training might close the gap without the float head, and I did not try either.</p><h3>What this means if you are deploying it</h3><ul><li><strong>One camera at 15 fps runs on a laptop with no graphics card.</strong> The Iris Xe takes 33 ms per frame median, 47 ms on a hot day. Two cameras fit when it runs cool.</li><li><strong>Keep the final layer in float when you quantize.</strong> It costs nothing measurable in speed and halves the corner drift (0.96 → 0.39 px on the footbridge, 0.95 → 0.50 px in Shanghai).</li><li><strong>Pick the M model at 640 px for this hardware.</strong> The release’s X at 960 px takes 304 ms per frame on the Iris Xe. It is the one that gets large, close vehicles right, and it needs a discrete GPU: 21 ms on an RTX 3060.</li><li><strong>Plan for heat.</strong> The iGPU shares a power budget with the CPU; the featured configuration ranged from 26.1 to 47.1 ms across three sessions. Size the camera count on the slow end.</li><li><strong>Budget for the AGPL.</strong> The weights and code are AGPL-3.0 by their model card and README, and so is Ultralytics [2][6]. Have that read before building a product on it.</li><li><strong>This does not tell you the accuracy on your road.</strong> Every quality number here is agreement with the FP32 model; the release reports its own KITTI 3D accuracy [2].</li></ul><h3>Limitations</h3><ul><li><strong>No ground truth.</strong> The match rates and corner errors say the deployment did not change the model; they do not say the model is right.</li><li><strong>Large vehicles cut by the frame edge break the M model’s boxes.</strong> A bus entering the footbridge frame got a box covering only its front, and a turning bus leaving the Shanghai frame got one covering its rear; X at 960 px drew the footbridge bus correctly. The demo video stops the footbridge clip before the bus, starts the Shanghai clip after one such bus, and draws vehicles touching the edge as flat 2D boxes. That editing is deliberate, and it hides a real failure.</li><li><strong>The latency is the detector alone.</strong> Preprocessing adds about 1.8 ms and postprocessing 0.3 ms per frame. Tracking, the ground solve, and the offline smoothing were not timed; the upstream renderer’s own counter reported 19.6 to 20.2 fps for detection, tracking, and the ground solve together on this iGPU.</li><li><strong>The top-down map has no scale.</strong> Without calibration, the ground plane is known up to scale, so positions are in car lengths, not metres, and far from the camera the footprints get unreliable.</li><li><strong>Session-to-session drift is large on the iGPU.</strong> 26.1 to 47.1 ms on the featured row; the discrete GPU and the CPU stayed within 10%.</li></ul><p>The hardware, OS, pinned library versions, quantization settings, timing method, and the exact frames used are in the <a href="https://condados.ai/blog/3d-vehicle-detection-laptop-igpu#reproducibility">reproducibility block on the site</a>.</p><p><strong>Code and every measurement:</strong> <a href="https://github.com/CondadosAI/urbanomni-edge">github.com/CondadosAI/urbanomni-edge</a> (Apache-2.0 for the scripts; the model, Ultralytics, and the footage keep their own licences).</p><p>The <a href="https://condados.ai/blog/3d-vehicle-detection-laptop-igpu">full version on condados.ai</a> has the two labs to play with, the video of both cameras, and all fifteen references, including the books and the OpenVINO, NNCF, and TensorRT sources behind each precision claim. The <a href="https://condados.ai/blog/what-is-a-homography">homography unit</a> on the same site builds the top-down warp from scratch.</p><h3>References</h3><p>[1] Turkcan, M. K., Gumaste, D., &amp; Kostic, Z. (2026). <em>Calibration-Free View-Agnostic Monocular 3D Object Detection for Urban Scenes</em>. CVPR Workshops, pp. 786–795, §3.3 “Keypoint-Based 3D Box Prediction” and §3.4 “Bird’s-Eye-View Projection”. <a href="https://openaccess.thecvf.com/content/CVPR2026W/DriveX/html/Turkcan_Calibration-Free_View-Agnostic_Monocular_3D_Object_Detection_for_Urban_Scenes_CVPRW_2026_paper.html">openaccess.thecvf.com</a>. The paper’s model is the earlier pose-only version; it is cited for the corner representation and the ground homography, which the release keeps.</p><p>[2] Turkcan, M. K. (2026). <em>UrbanOmniDetect-2: One Network for Detection and Calibration-Free 3D Cuboids from Any Viewpoint</em>. Software and weights, AGPL-3.0. <a href="https://github.com/mkturkcan/urbanomnidetect">github.com/mkturkcan/urbanomnidetect</a> (commit caa8537); <a href="https://huggingface.co/mehmetkeremturkcan/UrbanOmniDetect-2">weights on Hugging Face</a>.</p><p>[3] Hartley, R., &amp; Zisserman, A. (2004). <em>Multiple View Geometry in Computer Vision</em> (2nd ed.), ch. 1 “Introduction — a Tour of Multiple View Geometry”, §1.1.1 “Affine and Euclidean Geometry”, p. 4, and §1.2 “Camera projections”, p. 10. Cambridge University Press.</p><p>[4] Jacob, B., et al. (2018). <em>Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference</em>. CVPR, pp. 2704–2713, §2.1 “Quantization scheme”. <a href="https://doi.org/10.1109/CVPR.2018.00286">doi:10.1109/CVPR.2018.00286</a></p><p>[5] OpenVINO Toolkit Documentation (2026.4). <em>Basic Quantization Flow</em>. <a href="https://docs.openvino.ai/2026/openvino-workflow/model-optimization-guide/quantizing-models-post-training/basic-quantization-flow.html">docs.openvino.ai/2026</a></p><p>[6] Ultralytics (8.4.61). <em>Model Export with Ultralytics YOLO</em>, documentation and exporter source at tag v8.4.61. AGPL-3.0. <a href="https://docs.ultralytics.com/modes/export">docs.ultralytics.com/modes/export</a></p><p>[7] Majek, K. (2018). <em>4K Road traffic video for object detection and tracking — free download now!</em> YouTube, Creative Commons Attribution licence. <a href="https://www.youtube.com/watch?v=MNn9qKG2UFI">youtube.com/watch?v=MNn9qKG2UFI</a></p><p>[8] Fang, T. (2017). <em>In Recording of Yanan Road East-Tibet Road Middle Crossing</em> (title abridged). YouTube, Creative Commons Attribution licence. <a href="https://www.youtube.com/watch?v=O0LyetdH4Lg">youtube.com/watch?v=O0LyetdH4Lg</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce8a2599eb0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YOLO-NAS Without Super Gradients: 201 FPS on a Laptop CPU, 0.4 AP Lost to INT8]]></title>
            <link>https://condadoslgpc.medium.com/yolo-nas-without-super-gradients-201-fps-on-a-laptop-cpu-0-4-ap-lost-to-int8-ec28960adcf7?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec28960adcf7</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[edge-ai]]></category>
            <category><![CDATA[openvino]]></category>
            <category><![CDATA[intel-software-innovators]]></category>
            <category><![CDATA[object-detection]]></category>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 14:01:05 GMT</pubDate>
            <atom:updated>2026-09-24T14:01:05.040Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="https://condados.ai/blog/yolo-nas-without-super-gradients"><em>https://condados.ai/blog/yolo-nas-without-super-gradients</em></a></p><p><strong>Quantized to INT8 at 320px, YOLO-NAS-S does 201 FPS on a laptop CPU and 148 FPS on the integrated GPU next to it. Through TensorRT on a mid-range laptop dGPU, it reaches 1071 FPS at FP16. On the full COCO val2017 set, INT8 costs it 0.4 AP (47.3 → 46.9). The model aged well. Its tooling didn&#39;t: no release since April 2024, and a weights host that no longer resolves. So I rebuilt the architecture on a modern stack and checked it against the original, and the class scores are bit-identical.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*dg2q1FcnhZzezPzY.gif" /></figure><p>Most detector write-ups compare COCO mAP and stop there. That ranking answers a question almost nobody deploying to the edge is asking. The question is which model is the most accurate one that fits in my latency budget, on my hardware, at the precision I can afford to run. Change the question and the ranking changes with it.</p><h3>It was built to be quantized</h3><p>Most networks are quantized as an afterthought and lose accuracy unevenly. YOLO-NAS’s backbone uses quantization-aware RepVGG blocks, restructured so the fused weights do not develop the extreme value ranges that wreck INT8 [4].</p><p>Measured on all 5000 images of COCO val2017, with the OpenVINO IR the companion repo exports, FP16 against INT8:</p><ul><li>320×320: 38.36 → 37.92 AP, −0.44 points (−1.1%)</li><li>640×640: 47.32 → 46.91 AP, −0.41 points (−0.9%)</li></ul><p>Under half a point at either size. For contrast, an earlier benchmark of mine put RF-DETR Nano and YOLO-NAS-S through the same OpenVINO pipeline on a 500-image COCO subset at 256px. RF-DETR lost 21.2% of its mAP to INT8 (0.428 → 0.338). YOLO-NAS-S lost 2.5% (0.345 → 0.336). RF-DETR is the more accurate model in float, and at INT8 the two land within the noise of each other, because one of them was designed for this and the other was not.</p><h3>It is fast on hardware you already have</h3><p>I measured YOLO-NAS-S on one laptop (i7–12700H, Iris Xe, RTX 3060 Laptop GPU) across three devices and three precisions. Model inference only, batch 1, single stream, median of 30 runs after 8 warmup runs, on a real COCO frame. I ran the whole matrix in three separate sessions, and each number below is the median of the three.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fet_Tluk3enbh4Cy.png" /></figure><p>The runtime matters more than the hardware. On the same CPU at 320px, swapping PyTorch (38.41 ms) for OpenVINO (17.13 ms) is a 2.2x speedup before touching precision. Add INT8, and it becomes 7.7x: 4.98 ms, for the 0.44 AP above. At 640px, the INT8 path is still a 5.8x win over PyTorch.</p><p>That puts a laptop CPU at 201 FPS. Four camera streams at 15 FPS is 60 FPS of demand, on a machine with no accelerator.</p><p>FP16 is not automatically a win. On the dGPU at 320px, PyTorch FP16 is slower than FP32 (5.12 vs 4.76 ms), and it was slower in each of the three sessions separately, so the gap is not drift: the tensors are too small for the conversion overhead to pay off. At 640px, the same swap is a clear win (6.25 vs 9.68 ms).</p><p>On the iGPU, INT8 only pays at the larger input. At 640px it cuts latency from 20.16 ms (FP16) to 12.55 ms, 38% less. At 320px the three precisions sit within 1.1 ms of each other, so something other than arithmetic sets the floor there. I have not profiled what.</p><p>Those are latency numbers for the model alone. The clip below is the other kind: everything from video decode to tracking, with four inference requests in flight, timed end to end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*co9pXWLNCdjwFa99.gif" /></figure><h3>Why running it is harder than it should be</h3><p>super-gradients’ last PyPI release is 3.7.1, uploaded 2024–04–08 [1]. The repository is still pushed to; the releases stopped. Its pinned requirements contradict each other on Python 3.11 (numpy&lt;=1.23 against an onnxruntime that needs numpy&gt;=1.24.2), there is no onnxruntime wheel for 3.12 or 3.13, and on 3.10, the one version that installs, it will not import without pinning setuptools&lt;81.</p><p>The weights are the wall that stops you. The documented download fetches from sghub.deci.ai, and that hostname returns no A, AAAA, or CNAME record from Cloudflare, Google, or Quad9, while deci.ai itself resolves fine. modern-yolonas ships the checkpoints as safetensors from the Hugging Face Hub instead.</p><p>And the licence. The super-gradients code is Apache-2.0; the YOLO-NAS pretrained weights ship under the Super Gradients Model EULA, which restricts them to non-commercial use [2]. Converting a checkpoint to safetensors changes the file format, not the licence, so the loader prints the restriction every time it fetches weights. Open-licensed COCO weights are in training.</p><h3>Inside the model</h3><p>A RepVGG block trains with three parallel branches on the same input (a 3×3 convolution, a 1×1 convolution, and an identity shortcut) and deploys as one 3×3 convolution [3]. Convolution is linear, so a sum of convolutions is a convolution: W_fused = W_3×3 + pad(W_1×1) + W_identity.</p><blockquote><strong><em>Worked example</em></strong><em> · one channel of one block</em></blockquote><blockquote><em>The 3×3 branch holds [0 1 0 / 1 2 1 / 0 1 0], the 1×1 branch holds 3, and the identity is a 3×3 with a single 1 in the centre.</em></blockquote><blockquote><em>Pad the 1×1 into the centre tap and add all three: the centre becomes 2 + 3 + 1 = 6, so W_fused = [0 1 0 / 1 6 1 / 0 1 0].</em></blockquote><blockquote><em>Feed a patch that is 1 in the centre and 0 elsewhere. Three branches give 2 + 3 + 1 = 6; the fused kernel gives 6. Same answer, one convolution instead of three, and one weight distribution to quantize instead of three.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V278ken1pYTVDWSF.png" /></figure><p>The head is anchor-free: one prediction per feature-map cell over three levels. Szeliski’s §6.3 (Object detection) is the clearest short account of why the field moved off anchor boxes [7], and this particular head comes from the PP-YOLOE line of work [8]. At 640×640 with strides 8, 16, and 32, that is 8⁰² + 4⁰² + 2⁰² = 8400 candidate boxes per frame, which is what the real model’s output shape says.</p><p>Each box side is not regressed as one number. The head predicts a probability over 17 bins, and the decoded distance is the expected value, using Distribution Focal Loss [5].</p><blockquote><strong><em>Worked example</em></strong><em> · a box’s right edge on the stride-8 level</em></blockquote><blockquote><em>The head puts 0.20 on bin 5, 0.50 on bin 6 and 0.25 on bin 7.</em></blockquote><blockquote><em>E = 5(0.20) + 6(0.50) + 7(0.25) = 1.00 + 3.00 + 1.75 = 5.75 cells, and at stride 8, d = 5.75 × 8 = 46 px.</em></blockquote><blockquote><em>The edge lands between cells, which is how an anchor-free detector gets sub-cell precision from a coarse grid. The limitation is the same mechanism: when the head splits its vote between two distant bins, the mean lands where almost no probability lives.</em></blockquote><p>Training decides which of the 8400 candidates owns an object with task-aligned assignment [6], scoring each as class score × IoU⁶. With that exponent, a confident candidate with a loose box (0.95 at IoU 0.60) scores 0.044, while an unsure one with a tight box (0.50 at IoU 0.90) scores 0.266. The detector learns to prefer a well-placed box over a confident one.</p><p>The site version has all three of these as interactive labs: the network you can click through block by block, the 17-bin distribution you can drag, and the IoU boxes.</p><h3>Rebuilding it and proving it right</h3><p>A state_dict is the interface. yolo_nas_s has 921 tensors, and a reimplementation only loads the original checkpoint if every name lands in the right slot. S, M, and L all load with strict=True: zero missing, zero unexpected.</p><p>Loading cleanly is not the same as computing the same thing, and the obvious test (download both weights, compare) is blocked by the dead host. So I built the super-gradients architecture without downloading anything and pushed the same safetensors tensors into both implementations, in one process, on one torch build, against one input tensor. Across S, M, and L:</p><ul><li>Class scores: worst difference 0.000e+00. Bit-identical, 672,000 values per image.</li><li>Boxes: worst difference relative to scale between 7.473e-08 and 1.853e-07.</li></ul><p>A tiny box difference could still be a real formula difference. So I re-ran it in float64. The relative box error fell from 9.265e-08 to 3.452e-16, which tracks the mantissa going from 23 bits to 52: the signature of rounding in a different summation order. A wrong formula keeps its error when you add precision.</p><p>Parity proves the two implementations agree, not that either is correct. The independent check is COCO val2017, all 5000 images, NMS at IoU 0.70: 47.3 / 51.3 / 52.0 AP for S / M / L, against Deci’s published 47.5 / 51.5 / 52.2. The same 0.2 gap on all three, and I do not know its cause. Crowd annotations, padding placement, and the NMS threshold were tested one at a time and ruled out. An earlier version of the article quoted 0.4761 for S; I could not trace that figure to a saved artifact, so it is withdrawn.</p><h3>Deploying to Frigate</h3><p>Frigate supports YOLO-NAS natively, and the export puts preprocessing and NMS inside the graph, so the model takes raw uint8 BGR frames and returns a flat [D, 7] tensor:</p><pre>yolonas export --model yolo_nas_s --format openvino \<br>    --target frigate --input-size 320</pre><pre>detectors:<br>  ov:<br>    type: openvino<br>    device: GPU<br>model:<br>  model_type: yolonas<br>  width: 320<br>  height: 320<br>  input_tensor: nchw<br>  input_pixel_format: bgr<br>  path: /config/model_frigate.xml</pre><p>The convenience has a price. ONNX’s NonMaxSuppression is slower than torchvision’s: through TensorRT FP16, NMS inside the graph costs 49% more than the model followed by torchvision NMS at 320px (1.97 vs 1.32 ms), and 35% more at 640px (3.40 vs 2.51 ms). What it buys is one self-contained file with no Python in the inference path, which is what Frigate needs.</p><p>Picking the confidence threshold is the actual work of deploying a detector, and a single street shows why no benchmark table picks it for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ScgpQ5-7BPpfxyDg.jpg" /></figure><p>YOLO-NAS-S returns 19 detections at 0.40 and above, and 13 at 0.6 and above. The six in between:</p><ul><li>person 0.58: real, half hidden behind the man in the striped shirt</li><li>umbrella 0.56: real, the market umbrella</li><li>person 0.52: real, far back above the silver car</li><li>motorcycle 0.51: a duplicate box spanning both parked scooters</li><li>umbrella 0.47: real, the second umbrella</li><li>motorcycle 0.40: real, the second scooter</li></ul><p>Raising the threshold from 0.40 to 0.6 removes one wrong box and five real objects with it. Which side of that trade you want depends on whether a miss or a false alarm is the expensive mistake in your application.</p><h3>What changed since August</h3><ul><li>Detections are supervision objects (0.4.0), and YoloNASDetector (renamed from Detector in 0.5.0) returns an sv.Detections, so every supervision annotator, zone and tracker reads the output with no adapter.</li><li>Training runs on PyTorch Lightning; PTQ and QAT are CLI commands, and the source licence is Apache-2.0 (0.5.0). The pretrained weights are still Deci’s.</li><li>On main, not yet on PyPI: TensorRT export, pre-exported files on the Hugging Face Hub, feature embeddings from the backbone, and a built-in Deep HM-SORT tracker [9] that associates on those embeddings. I have not measured whether they buy it any identity over motion alone; that is a post of its own.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*dszjgv4dxRB660eu.gif" /></figure><pre>import cv2<br>from modern_yolonas import YoloNASDetector<br>detector = YoloNASDetector(&quot;yolo_nas_s&quot;)<br>detections = detector(cv2.imread(&quot;driveway.jpg&quot;))<br>confident = detections[detections.confidence &gt; 0.5]</pre><h3>Limitations</h3><ul><li>The pretrained weights are non-commercial. A faithful reimplementation of the architecture does not launder the licence on Deci’s COCO checkpoints.</li><li>Every latency figure is single-stream latency on one laptop, which was on mains and in performance mode but not idle. The numbers drift between sessions: the same TensorRT engine file timed at 1.17 ms in one session and 0.93 ms in the next, and PyTorch on the CPU at 320px ran anywhere from 31.74 to 44.70 ms. Read gaps smaller than that as noise, and the large ones (INT8 against FP32 on the CPU, TensorRT against PyTorch) as the finding.</li><li>The INT8 files were calibrated on 128 images drawn from COCO val2017 and scored on the same split, so about 2.6% of the evaluation set shaped the quantization ranges. That probably flatters the −0.4 AP slightly.</li><li>Parity covers the architecture’s forward pass, not training, export, quantization, or the video pipeline.</li></ul><h3>Code and data</h3><p>Code: <a href="https://github.com/CondadosAI/modern-yolonas">github.com/CondadosAI/modern-yolonas</a>, Apache-2.0 for the source. The model is YOLO-NAS S, M, and L with Deci’s COCO checkpoints, evaluated on COCO val2017. Hardware, versions, commands, and the per-session latency files are in the <a href="https://condados.ai/blog/yolo-nas-without-super-gradients#reproducibility">reproducibility block</a> on the canonical post.</p><p>The full article on condados.ai has the three interactive labs, the complete latency tables at both input sizes, the drift range for every headline cell, and the parity tables: <a href="https://condados.ai/blog/yolo-nas-without-super-gradients">YOLO-NAS Strikes Back</a>.</p><h3>References</h3><p>[1] Deci AI. <em>super-gradients</em> (PyPI release history; latest 3.7.1, 2024–04–08). <a href="https://pypi.org/project/super-gradients/#history">pypi.org/project/super-gradients</a></p><p>[2] Deci AI. <em>Super Gradients Model EULA (YOLO-NAS weights licence)</em>. <a href="https://github.com/Deci-AI/super-gradients/blob/master/LICENSE.YOLONAS.md">LICENSE.YOLONAS.md</a></p><p>[3] Ding, X., Zhang, X., Ma, N., Han, J., Ding, G., Sun, J. <em>RepVGG: Making VGG-style ConvNets Great Again</em>. CVPR, 2021. <a href="https://arxiv.org/abs/2101.03697">arXiv:2101.03697</a></p><p>[4] Chu, X., Li, L., Zhang, B. <em>Make RepVGG Greater Again: A Quantization-aware Approach</em>. 2022. <a href="https://arxiv.org/abs/2212.01593">arXiv:2212.01593</a></p><p>[5] Li, X., Wang, W., Wu, L., Chen, S., Hu, X., Li, J., Tang, J., Yang, J. <em>Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection</em>. NeurIPS, 2020. <a href="https://arxiv.org/abs/2006.04388">arXiv:2006.04388</a></p><p>[6] Feng, C., Zhong, Y., Gao, Y., Scott, M. R., Huang, W. <em>TOOD: Task-aligned One-stage Object Detection</em>. ICCV, 2021. <a href="https://arxiv.org/abs/2108.07755">arXiv:2108.07755</a></p><p>[7] Szeliski, R. <em>Computer Vision: Algorithms and Applications</em>, 2nd ed. Springer, 2022. §6.3 (Object detection). <a href="https://szeliski.org/Book/">szeliski.org/Book</a></p><p>[8] Xu, S., Wang, X., Lv, W., Chang, Q., Cui, C., Deng, K., et al. <em>PP-YOLOE: An evolved version of YOLO</em>. 2022. <a href="https://arxiv.org/abs/2203.16250">arXiv:2203.16250</a></p><p>[9] Gran-Henriksen, M., Lindgaard, H. A., Kiss, G., Lindseth, F. <em>Deep HM-SORT: Enhancing Multi-Object Tracking in Sports with Deep Features, Harmonic Mean, and Expansion IOU</em>. 2024. <a href="https://arxiv.org/abs/2406.12081">arXiv:2406.12081</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec28960adcf7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Marigold V2 at four bits: what quantizing a 20-billion-parameter depth model costs]]></title>
            <link>https://condadoslgpc.medium.com/marigold-v2-at-four-bits-what-quantizing-a-20-billion-parameter-depth-model-costs-e403e8f292ca?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/e403e8f292ca</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[quantization]]></category>
            <category><![CDATA[depth-estimation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 19:42:42 GMT</pubDate>
            <atom:updated>2026-09-22T19:42:42.018Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="https://condados.ai/blog/marigold-v2-quantization-cost"><em>https://condados.ai/blog/marigold-v2-quantization-cost</em></a></p><p><strong>Marigold V2 is published as a 17 GB inference job, and the number that gets quoted is 1.9 seconds per image on “a single 32 GB GPU”. The released checkpoint is not a 20-billion-parameter model. It is 926 million parameters, 92% of them a rank-128 LoRA sitting on a frozen backbone you download separately. A frozen backbone can be replaced, so I replaced it with six quantized versions and measured them on rented A40s. Going to four bits costs 10% of the runtime and saves 65% of the memory. Which four-bit you pick costs more than that decision did, and one of the three produces a depth map that looks fine and is wrong.</strong></p><p>Marigold V2 [1] released its code and weights this month, ahead of the paper appearing in December, and it is a genuinely good monocular depth model: single-step, and sharp enough to resolve fur and hair-thin edges that earlier models smeared. The interesting part for anyone who wants to run it is structural, and it is visible before you download a single weight.</p><h3>What is in the box</h3><p>The depth checkpoint is one file, trainables.safetensors1.85 GB. Read its header, and it splits three ways: 1,446 LoRA tensors at rank 128 (851.8 M parameters, 92.0%), 108 tensors of fine-tuned VAE decoder (73.3 M, 7.9%), and 2 tensors used only by the training loss. That is 926.0 M parameters in total, against a backbone that ships in a separate 40.9 GB download.</p><blockquote><strong><em>Worked example</em></strong><em> · the Log-stage2 depth checkpoint</em></blockquote><blockquote><em>926.0 M ÷ 20,400 M = 0.0454</em></blockquote><blockquote><em>So what Marigold adds is 4.5% the size of what it adds it to. The other 95.5% is Qwen-Image-Edit-2509 [2], unmodified, and the checkpoint does not contain a copy of it.</em></blockquote><p>That ratio is the whole article. LoRA freezes the base weights and trains a low-rank update beside them [3], which means the base weights are interchangeable as long as the shapes match. Nothing in Marigold’s 926 M parameters cares whether the 20.4 B underneath is stored in bfloat16, in 4-bit NormalFloat, or in a GGUF block format.</p><p>Two more details make this cheap to test. The text encoder never loads: Marigold precomputes the prompt embedding once and ships it as a 19 MB tensor, so the 8.3 B Qwen2.5-VL half of the base model is not part of the runtime at all. And inference is a single step at a fixed timestep of 0.499, not a schedule, so the 20.4 B parameters are read exactly once per image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nYGRuu8hriB2pqTU.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmWkptz_JBJ1KJmRljAmHA.png" /><figcaption>Iamge by the author</figcaption></figure><h3>The measurement</h3><p>Everything below is one image at 768 px, median of five runs after two discarded warmups. The image is the kitten the authors ship as an example, and it is a deliberate choice: fur is the thing Marigold V2 claims to resolve, so if a quantized backbone degrades, it should show up here first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nbqp-eXMWK9Pk_Bu.jpg" /></figure><p>The bf16 backbone is the reference. Every other configuration is scored against it, not against ground truth, because the question is what quantization costs, not what Marigold gets wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UAJGt0TajrbkugV5.png" /></figure><p>One row has a Pearson correlation of 0.5373 where every other quantized row is above 0.997, and that row is the reason this post scores against a reference at all.</p><h3>Four bits is nearly free</h3><p>NF4 [4] runs at 0.87 s against bf16’s 0.79 s, a 1.10x cost, while peak memory drops from 44.72 GB to 15.44 GB. The depth maps correlate at 0.9972.</p><p>Storing a weight in fewer bits is a rounding error with a known bound, not a corruption, and how those errors accumulate through a network is standard numerical analysis [5]. NF4 tightens the bound further by spacing its sixteen levels to match a normal distribution, which is roughly how trained weights are distributed [4]. The measured result is what that theory predicts: a 20.4 B backbone loses about two percent of its output range and none of its structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rmZwo9pGUZlevn4O.png" /></figure><h3>Which four bits you pick matters more than whether you quantize</h3><p>Three of the rows are 4-bit, and they are not interchangeable. NF4 takes 0.87 s in 15.44 GB. GGUF Q4_K_M takes 1.62 s and 17.04 GB, which is more time and more memory. torchao’s INT4 takes 1.22 s in 24.31 GB, which is more memory than the 8-bit rows, and it is wrong.</p><p>The same spread appears at 8 bits. torchao INT8 and bitsandbytes INT8 sit within 70 MB of each other in memory and agree with bf16 to four decimal places, and one takes 0.96 s while the other takes 2.35 s.</p><blockquote><strong><em>Worked example</em></strong><em> · the two 4-bit paths, same backbone, same card</em></blockquote><blockquote><em>Time, using the unrounded medians the table rounds to two decimals: 1.6213 s ÷ 0.8659 s = 1.87</em></blockquote><blockquote><em>Memory: 17.04 GB ÷ 15.44 GB = 1.10</em></blockquote><blockquote><em>So GGUF costs 87% more time and uses 10% more memory. There is no axis on which it wins here. Its value is portability: GGUF dequantizes per layer in ordinary PyTorch, while bitsandbytes NF4 needs its own CUDA kernels. On a machine where those kernels run, NF4 is the better choice, and this is a number worth having before you pick a format, because a checkpoint published only as GGUF looks like a free win until you time it.</em></blockquote><h3>A backbone can fail without failing</h3><p>torchao’s INT4 row loaded without a warning, ran at a believable 1.22 s, and produced an image that has a cat in it, nearer at the front and further at the back. Scored against bf16, it correlates at 0.5373; its median pixel is off by 16% of the output range, and 82% of its pixels are off by more than 5%. It also uses 24.31 GB, which is more than the 8-bit rows, so whatever it is doing it is not packing four-bit weights.</p><p>Two routes to torchao INT4 exist, and neither works here. The documented one, Int4WeightOnlyConfig, needs the mslk kernel package, and the version on PyPI is a 0.0.0 placeholder against a &gt;=1.0.0 requirement. The fallback, IntxWeightOnlyConfig at four bits, installs and runs and gives the row above.</p><p>The reason to publish a dead end is that it is the failure mode this whole class of work is most exposed to. A detector that breaks returns no boxes. A depth model that breaks returns a depth map. You find out by scoring against something you trust.</p><h3>The difference has a shape</h3><p>Amplify the signed difference between a quantized backbone and bf16, and two things appear. Edges light up sharply, and whole regions drift slowly one way or the other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*txVXm3MsBoD2srYz.png" /></figure><p>For the NF4 row, the median pixel differs from bf16 by 0.82% of the output range, and the worst differs by 61.39%, from the same pair of images. Only 1.29% of pixels exceed 5%. Those extremes are not scattered: on the worst 1% of pixels the reference’s own gradient averages 12.3x the image mean, so they sit where depth changes fastest.</p><p>Edges are not the whole story, though. Averaged over the image, the difference on the steepest 5% of pixels is 2.63% of the range against 0.96% on the flattest half, a ratio of only 2.7x. Separating the difference into a smooth part and a sharp one puts 0.78% of the range in the smooth component and 0.45% in the sharp, and the smooth part accounts for 32.6% of the variance. A quantized backbone disagrees most at edges and also carries a slow bias across whole surfaces.</p><h3>The cliff is between fitting and not fitting</h3><p>The last row is the same GGUF file on the same A40, with the backbone streamed from host RAM one block at a time instead of sitting on the card. Peak VRAM falls from 17.04 GB to 2.15 GB, and the time goes from 1.62 s to 5.40 s, which is 3.33x.</p><p>That 3.33x is larger than every precision effect in the table combined. Going from bf16 to the cheapest resident 4-bit path costs 1.10x. Not having room for the model costs 3.33x. When people say a quantized model is slow, this is usually the effect they have measured.</p><p>The two GGUF rows are a check rather than a finding. Their depth maps are bit-identical, with a maximum absolute difference of exactly zero. Offloading moves weights between host and device and changes no arithmetic, which is worth confirming before attributing any difference to it.</p><h3>Where AbsRel lies to you</h3><p>The fidelity columns above are RMSE and correlation, which is a deliberate departure from what depth papers report. AbsRel is the standard metric, and on this data it reads 0.1437 for the GGUF backbone, suggesting the depth map is 14% wrong.</p><p>It is not. AbsRel divides by the target, and Marigold’s output is affine-invariant relative depth normalised into a range that straddles zero. In this image, 0.46% of pixels sit within 0.01 of zero, and each of those divides a small numerator by a smaller denominator. A metric built for metric depth, which is strictly positive and bounded away from zero, gets dominated by a handful of pixels when you point it at relative depth.</p><p>RMSE as a fraction of the output range gives 1.56%, and Pearson correlation gives 0.9982. Those describe the same two arrays, and they survive a sanity check: if the maps differed by 14% in any meaningful sense, you would see it in the figures above, and you do not.</p><h3>Limitations</h3><p><strong>One image, one resolution.</strong> Every number here is 768 px on a single photograph. Latency at 768 px is not latency at 2048 px, where the paper’s own figures show the cost rising faster than pixel count. Fidelity on a kitten is not fidelity on a transparent surface or a night scene, which are the cases monocular depth models fail on.</p><p><strong>One GGUF level.</strong> Q4_K_M is one point on a range that runs from Q2_K at 7.15 GB to Q8_0 at 21.8 GB. I did not sweep it, so this post cannot tell you where GGUF stops being faithful.</p><p><strong>The broken INT4 row is a report, not a diagnosis.</strong> I know torchao’s four-bit path produces a wrong depth map for this model at per-axis granularity. I did not find out why, and a grouped configuration might well work. Read that row as “this combination fails”, not as “torchao cannot do four bits”.</p><p><strong>One quantizer family is missing.</strong> ComfyUI ships an INT8 backbone built specifically for Marigold V2, which its own metadata describes as tensor-wise INT8 with a rotation at group size 256. Rotation-based quantization is a different technique from the weight-only schemes measured here. Loading it outside ComfyUI means porting the inverse rotation, and a subtly wrong dequantization produces the kind of plausible, wrong depth map the INT4 row is about, so I left it alone.</p><p><strong>No FP8, and no TensorRT or OpenVINO.</strong> torchao’s float8 schemes want compute capability 8.9, and an A40 is 8.6, so measuring FP8 means changing the GPU and making every row incomparable. bitsandbytes NF4 and the GGUF kernels are tied to their runtimes, so neither configuration exports.</p><p><strong>Fidelity is measured against bf16, not ground truth.</strong> A backbone could track bf16 closely, and both could be wrong about the scene.</p><h3>Code and data</h3><p>Every raw artifact, both pod scripts and the table generator, is in the companion repository: <a href="https://github.com/CondadosAI/marigold-v2-edge">github.com/CondadosAI/marigold-v2-edge</a>. The article’s table is regenerated from the saved JSON rather than typed, and you can check the checkpoint anatomy yourself without a GPU and without downloading the backbone:</p><pre>uv sync<br>uv run marigold-edge fetch<br>uv run marigold-edge inspect</pre><p>The full hardware, OS, and pinned library versions are in the <a href="https://condados.ai/blog/marigold-v2-quantization-cost#reproducibility">reproducibility block</a> on the original post.</p><h3>The version with the widgets</h3><p><a href="https://condados.ai/blog/marigold-v2-quantization-cost">The post on condados.ai</a> has two interactive pieces this copy cannot carry. One lets you set your own card’s VRAM and see which of these configurations run resident, which fall back to streaming, and what each costs. The other is the difference viewer from Figure 5, with the amplification on a slider and the broken INT4 backbone included, so you can see what a wrong backbone looks like when you only look at the picture.</p><h3>References</h3><p>[1] Pavlovic, I., Wandel, T., Obukhov, A., Bartolomei, L., Davydov, A., Tosi, F., Poggi, M., Süsstrunk, S., Dai, D. <em>Marigold V2: Revisiting Diffusion Transformers for Monocular Depth Estimation</em>. To appear in ACM Transactions on Graphics 45(6), presented at SIGGRAPH Asia, December 2026. <a href="https://arxiv.org/abs/2609.08084">arxiv.org/abs/2609.08084</a></p><p>[2] Qwen Team. <em>Qwen-Image-Edit-2509</em>. Model card, Apache-2.0, 2026. <a href="https://huggingface.co/Qwen/Qwen-Image-Edit-2509">huggingface.co/Qwen/Qwen-Image-Edit-2509</a></p><p>[3] Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W. <em>LoRA: Low-Rank Adaptation of Large Language Models</em>. arXiv, 2021. <a href="https://arxiv.org/abs/2106.09685">arxiv.org/abs/2106.09685</a></p><p>[4] Dettmers, T., Pagnoni, A., Holtzman, A., Zettlemoyer, L. <em>QLoRA: Efficient Finetuning of Quantized LLMs</em>. arXiv, 2023. <a href="https://arxiv.org/abs/2305.14314">arxiv.org/abs/2305.14314</a></p><p>[5] Goodfellow, I., Bengio, Y., Courville, A. <em>Deep Learning</em>, ch. 4 (Numerical Computation). MIT Press, 2016. <a href="https://www.deeplearningbook.org/">deeplearningbook.org</a></p><p>The diffusers quantization documentation and the full numbered list are in the <a href="https://condados.ai/blog/marigold-v2-quantization-cost#references">original post</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e403e8f292ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One threshold turned six push-ups into a count of twenty]]></title>
            <link>https://condadoslgpc.medium.com/one-threshold-turned-six-push-ups-into-a-count-of-twenty-5b78fbf31edd?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b78fbf31edd</guid>
            <category><![CDATA[mediapipe]]></category>
            <category><![CDATA[signal-processing]]></category>
            <category><![CDATA[pose-estimation]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Sat, 12 Sep 2026 19:55:17 GMT</pubDate>
            <atom:updated>2026-09-12T19:55:17.097Z</atom:updated>
            <content:encoded><![CDATA[<p>Building a rep counter on MediaPipe pose landmarks, with every design decision settled by a measurement rather than a preference</p><p><em>Originally published at </em><a href="https://condados.ai/blog/rep-counting-jitter-filters-state-machine"><em>condados.ai/blog/rep-counting-jitter-filters-state-machine</em></a></p><p><strong>Counting repetitions from a pose model is four stages and about 125 lines of logic. Getting it right is four decisions, and I made each one with a measurement instead of a preference. The two that matter most are free: read the joint angle from world landmarks, because the projected one moves 43.6 degrees while the elbow holds still, and use two thresholds instead of one, because a single threshold turned a clip of six push-ups into a count of twenty. The filter everyone argues about is third in size, and the one that wins is not the usual choice.</strong></p><p>The naive version is short enough to write from memory. Take a pose model, compute the elbow angle, count the times it crosses a line:</p><pre>def naive_count(angles, threshold=110.0):<br>    reps, phase = 0, &quot;up&quot;<br>    for angle in angles:<br>        if angle &lt; threshold and phase == &quot;up&quot;:<br>            phase = &quot;down&quot;<br>        elif angle &gt; threshold and phase == &quot;down&quot;:<br>            phase = &quot;up&quot;<br>            reps += 1<br>    return reps</pre><p>It works on the first video you try. Then the complaints arrive: counts that climb while the user is resting, half repetitions registering as whole ones, the same repetition counted twice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*8dhmGwuI24G2yQ06.jpg" /></figure><p>The post this is drawn from has that widget running live on your own camera, with the naive counter beside the correct one so you can watch them part: <a href="https://condados.ai/blog/rep-counting-jitter-filters-state-machine">condados.ai/blog/rep-counting-jitter-filters-state-machine</a>. Everything below is how it got there.</p><p>Every number here is measured on one clip, named once so it can be checked: <a href="https://commons.wikimedia.org/wiki/File:Interval_Push-ups.webm">Interval Push-ups</a> by Taco Fleur, CC BY-SA 4.0 on Wikimedia Commons [4]. 51.4 s at 640×480 and 30 fps, a backlit silhouette in profile, six push-ups with a plank held between them. Six is the hand-counted truth, established from the video before any of this was run, because the pipeline under test cannot be the source of its own ground truth.</p><h3>The jitter floor you cannot filter away</h3><p>Worth knowing before any filter decision, because it sets the floor. Decode one frame, then hand MediaPipe’s Pose Landmarker [1] that same array of pixels sixty times.</p><p>The landmarker gives 33 body points per frame from the BlazePose family [3]. In IMAGE mode, the landmarks come back bit for bit identical across all three published model sizes. In VIDEO mode they do not:</p><ul><li><strong>lite</strong>: 0.0000 px in IMAGE mode, 0.418 px RMS in VIDEO mode on identical pixels (max 0.995)</li><li><strong>full</strong>: 0.0000 px, and 0.340 px RMS (max 0.650)</li><li><strong>heavy</strong>: 0.0000 px, and 0.207 px RMS (max 0.536)</li></ul><p>Per-landmark RMS deviation about each landmark’s own mean, 60 repeats of one 640 px frame, nine conditions across three model sizes and three resolutions.</p><p>A photograph, fed in repeatedly, produces landmarks that wander by a third of a pixel. Nothing about the scene changed, so this is not the sensor, the lighting or the encoder. VIDEO mode crops each frame from the region of interest it derived from the previous one, so its own output is part of its next input and the loop never settles. That is the design that makes the mode fast enough to run at frame rate, and the cost is usually invisible. The heavy model sits 2.0 times lower than the lite one, so capacity moves the floor and does not remove it.</p><p>Two smaller traps in the same call. The GPU delegate is not guaranteed and createFromOptions rejects when it is missing instead of falling back, so ask for GPU and then for CPU in a loop. And VIDEO mode needs strictly increasing timestamps in milliseconds, supplied by you: two frames delivered inside the same millisecond break the internal tracking, and offline you take the timestamp from the frame index and the declared frame rate rather than from the wall clock. There is no smoothing option to turn on. The smooth_landmarks flag people remember belongs to the retired mp.solutions.pose API. Anything built on the current one filters its own signal or does not filter.</p><h3>Decision 1: the angle comes from world landmarks</h3><p>The counter reads one scalar per frame, the joint angle. An angle computed on image coordinates is the angle of the limb’s shadow on the sensor, so turning the person changes the shape of the shadow while the elbow holds still.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sMI0qDZgcGIyDi8y.png" /></figure><p>This can be checked exactly. Take a real skeleton from a real frame, rotate the whole thing about its own spine as a rigid body, and reproject it through a pinhole. Rotating a rigid body cannot change any angle inside it, so the world angle is constant by construction, and every degree the projected angle moves is projection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*whh8tOr156bE8l6v.png" /></figure><p>At an elbow bent to 45 degrees, turning the torso through 120 degrees moves the projected angle by 43.6 degrees. At 90 degrees of bend, it moves 41.5 degrees, and the effect shrinks as the arm straightens: 28.2 degrees at 135, and 13.3 degrees at 170.</p><blockquote><strong><em>Worked example: a curl at the bottom of its range, someone turning to check a mirror.</em></strong></blockquote><blockquote><em>The state machine below ends up with two thresholds at 80 and 150 degrees, so 150 − 80 = 70 degrees of protection against noise.</em></blockquote><blockquote><em>The projected angle moves 43.6 degrees at an elbow held at 45 degrees.</em></blockquote><blockquote><em>Fraction of the gap consumed: 43.6 / 70 = 0.62, so 62 percent.</em></blockquote><blockquote><em>What it means: that gap clears the 3.48 degrees of resting jitter measured further down by a factor of 20. The same gap has less than a factor of two of margin against a person turning while they exercise, and a rotation is not noise, so no filter removes it. Read the angle from world landmarks and the term disappears.</em></blockquote><p>Two traps live in the three lines that feed the angle. Normalized landmarks are x / width and y / height, so on a 16:9 frame one unit of x is 1.78 times as many pixels as one unit of y, and an angle taken straight from the normalized values is the angle of a horizontally stretched picture of the arm. Multiply back into pixels first. And the z you get from landmarks is not metric: MediaPipe returns a second set,worldLandmarks, in metres and centred on the hips [3]. Use those.</p><p>The empirical half of this corrected my hypothesis, and the correction is the useful part. Binning every frame of every clip by how far the shoulders are turned from square put the worst disagreement at the smallest turn, which is backwards. A push-up filmed from the side has the torso fully turned and the arm swinging in a plane parallel to the sensor, so the projection is faithful. What distorts a projected angle is how much of the limb points at the camera, not how far the person turned. Re-binned on the arm’s own tilt out of the image plane, over 23,059 frames, the rank correlation with the 2D-versus-3D disagreement is +0.376 for tilt against −0.393 for torso yaw, my first guess. The tilt correlation is positive inside every one of the seven clips taken separately, from +0.14 to +0.80.</p><h3>Decision 2: the noise has memory, and that changes the filter</h3><p>Filters are usually chosen against white noise, because white noise is what is easy to generate. Every still segment across three clips, meaning every stretch where the limb is locked out and the angle is flat, gives 232 seconds of residual once a straight line is removed from each segment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fkKrnDRRHN5awAIg.png" /></figure><p>Correlated by 0.694 from one frame to the next, and still outside the white-noise band at five frames. The memory runs out somewhere around a quarter of a second.</p><p>This matters for a practical reason. A low-pass filter separates signal from noise by frequency, and noise with that much memory has most of its energy at low frequencies, which is where the movement lives too. The same filter that removes white noise cheaply has to eat into the signal to remove this.</p><p>The effect is measurable. Take the same residual samples and shuffle them: the distribution is untouched, and the memory is gone, which is the signal a white-noise benchmark assumes. Across 65 filter configurations, filters leave <strong>1.78 times more jitter</strong> behind on the real residual than on the shuffled version, with a range of 1.07 to 2.21. A benchmark run on simulated white noise reports a filter that is 78 percent better than the one you deploy.</p><h3>What an exponential moving average costs</h3><p>The filter people reach for first is one line: y[n] = α·x[n] + (1−α)·y[n−1]. Each output is a blend of the newest reading and where the filter already was, so a small α means the filter mostly ignores the newest reading. That buys smoothness by being slow to believe anything, which is the same thing as being late.</p><p>There are two ways to quantify how late, and across the settings swept here they differ by a factor of 2.4 to 3.3. That matters because people quote one while meaning the other. Group delay at DC is the mean delay of the impulse response, which is (1−α)/α samples. The step response is 1−(1−α)ⁿ, so the time to arrive at 90 percent of a change is ln(0.1)/ln(1−α) samples.</p><blockquote><strong><em>Worked example: the elbow reaches the top of a push-up, at 30 fps.</em></strong></blockquote><blockquote><em>Take α = 0.25, the best EMA setting found in the sweep below.</em></blockquote><blockquote><em>Group delay: (1 − 0.25) / 0.25 = 3.0 samples, and 3.0 / 30 = 0.100 s, so 100 ms.</em></blockquote><blockquote><em>Rise time: ln(0.1) / ln(0.75) = −2.303 / −0.288 = 8.0 samples, and 8.0 / 30 = 0.267 s, so 267 ms.</em></blockquote><blockquote><em>What it means: the arm reaches the top of the push-up, and the filtered angle does not report having arrived for another quarter of a second. Quoting the 100 ms figure while the user waits 267 ms for the counter to tick is a 2.7× error on the number that decides whether the app feels responsive.</em></blockquote><h3>The comparison, and the winner</h3><p>The 1 euro filter of Casiez, Roussel and Vogel [2] raises its cutoff with the estimated speed of the signal: heavy smoothing while the arm is still, and it gets out of the way while the arm moves.</p><p>Both axes were measured on the condition where each one matters, and neither was simulated. <strong>Jitter</strong> is the RMS of each filter’s output over the real residual above, where the true value is a constant, so anything the filter emits is error. <strong>Lag</strong> is measured against a zero-phase reference, the same low-pass run forwards and then backwards so its phase cancels, on a real descent from the push-up clip.</p><p>My first version of the lag measurement used an ideal step and had to be thrown out. A step is 120 degrees inside one frame, a speed-adaptive filter opens its cutoff all the way for it, and the step reports 2.53 times the lag of a real descent. That would have credited the 1 euro filter with a movement no arm can make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aU3bgKauLjYj5YRk.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l79SYO6ZQIFPbBDm.png" /></figure><p>The 1 euro filter wins where a real-time app has to live. At a 100 ms budget, it leaves 0.819 degrees against the best EMA’s 1.464, which is 44.1 percent less jitter, and the gap closes to 5.1 percent by 400 ms. At 50 ms the advantage is 23.0 percent, and at 200 ms it is 31.3 percent. My own line is that a counter reporting a repetition 400 ms after it happened is not one I would ship, which puts the region where the two filters tie outside the part of that figure I would use.</p><p>The constant-velocity Kalman filter tracks the EMA closely enough to make its extra state hard to justify. Below 300 ms, it never beats the EMA by more than 1.8 percent, and it is 4.5 percent worse at a 200 ms budget. It does pull ahead at 400 ms, by 10.8 percent, in the same region where the EMA and the 1 euro filter converge and where the delay is long enough to notice. Forsyth and Ponce set out the constant-velocity model and where it is appropriate; a repetition reverses its angular rate at the top and the bottom of every rep, which is where a constant-velocity model is at its worst. One clip is not a proof of mechanism, so treat that connection as the likely reason rather than a demonstrated one.</p><p>Two details a from-memory rewrite of the 1 euro filter tends to lose, both of which still produce a plausible-looking output: the derivative is taken against the previous <em>filtered</em> value, and the sampling frequency is re-estimated from consecutive timestamps so the filter behaves under a dropped frame.</p><pre>class OneEuroFilter {<br>  constructor(minCutoff = 0.05, beta = 0.005, freq = 30, dCutoff = 1) {<br>    Object.assign(this, { minCutoff, beta, freq, dCutoff });<br>    this.x = null; this.dx = 0; this.tPrev = null;<br>  }<br>  alpha(cutoff) {<br>    const te = 1 / this.freq;<br>    return 1 / (1 + (1 / (2 * Math.PI * cutoff)) / te);<br>  }<br>  filter(value, t) {<br>    if (this.tPrev !== null &amp;&amp; t &gt; this.tPrev) {<br>      this.freq = 1 / (t - this.tPrev);<br>    }<br>    this.tPrev = t;<br>    const rate = this.x === null ? 0 : (value - this.x) * this.freq;<br>    const a = this.alpha(this.dCutoff);<br>    this.dx = a * rate + (1 - a) * this.dx;<br>    const cut = this.minCutoff + this.beta * Math.abs(this.dx);<br>    const b = this.alpha(cut);<br>    this.x = this.x === null ? value : b * value + (1 - b) * this.x;<br>    return this.x;<br>  }<br>}</pre><p>Check any port you write. The authors publish a groundTruth.csv for this purpose, and the Python side of the companion repository replays it: agreement to 4 × 10⁻⁶, where the residual is the CSV&#39;s six-significant-figure printing accumulating through a recursive filter. The tuning order is the authors&#39;: set beta to zero and lower the cutoff until slow-motion jitter is gone, then raise beta until fast motion stops lagging.</p><h3>Decision 3 and 4: the state machine</h3><p>This is where counting is won or lost, and it is the cheapest stage to get right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nTrD55zE1EzMHjCk.png" /></figure><pre>class RepCounter {<br>  constructor({ flexBelow = 80, extendAbove = 150, confirmS = 0.1,<br>                minVisibility = 0.5 } = {}) {<br>    Object.assign(this,<br>      { flexBelow, extendAbove, confirmS, minVisibility });<br>    this.phase = &#39;extended&#39;;<br>    this.count = 0;<br>    this.candidate = null;<br>    this.candidateSince = 0;<br>  }<br>  // Feed one frame. Returns true if a repetition completed on it.<br>  update(angle, visibility, t) {<br>    if (!Number.isFinite(angle)) return false;<br>    // hold through an occlusion<br>    if (visibility &lt; this.minVisibility) return false;<br>    let wants = null;<br>    if (this.phase === &#39;extended&#39; &amp;&amp; angle &lt; this.flexBelow) {<br>      wants = &#39;flexed&#39;;<br>    } else if (this.phase === &#39;flexed&#39; &amp;&amp; angle &gt; this.extendAbove) {<br>      wants = &#39;extended&#39;;<br>    }<br>    // Confirmation, not lockout: the angle has to stay past the line.<br>    if (wants === null || wants !== this.candidate) {<br>      this.candidate = wants;<br>      this.candidateSince = t;<br>      return false;<br>    }<br>    if (t - this.candidateSince &lt; this.confirmS) return false;<br>    this.candidate = null;<br>    if (wants === &#39;flexed&#39;) { this.phase = &#39;flexed&#39;; return false; }<br>    this.phase = &#39;extended&#39;;<br>    this.count += 1;<br>    // the only edge that counts a rep<br>    return true;<br>  }<br>}</pre><p>Four rules are doing the work, and they are not equally important.</p><p><strong>Two thresholds instead of one.</strong> Entering the flexed phase needs the angle below 80 degrees; leaving it needs the angle above 150. Noise has to be larger than the gap to move the machine at all.</p><p><strong>Both bounds, in that order.</strong> A repetition is counted on the flexed-to-extended transition, so a movement that never gets below the lower bound never enters the flexed phase and has no transition to complete. That is what rejects a half repetition, and it follows from the first rule rather than being an extra one.</p><p><strong>A time requirement on a phase change.</strong> There are two of these in the wild and they do not do the same job. A lockout refuses transitions for a while after the last one; at the instant a spike arrives, the machine has been in its current phase for far longer than the lockout, so the spike flips the phase unopposed and the lockout only delays the return. A confirmation instead requires the angle to stay past the threshold before the phase changes at all, which is what a spike cannot do. An ablation table that conflates the two credits the wrong rule.</p><p><strong>A confidence gate.</strong> Frames where the weakest landmark in the chain is below a visibility cut are dropped, and the phase is held. An angle measured during an occlusion is not a measurement.</p><h3>What the first rule is worth</h3><p>A counter with a single threshold is not wrong everywhere, which is why it passes review and ships. On the push-up clip, with the threshold at 115 degrees, halfway down a 120-degree swing, it reports six out of six. So does every other configuration I tested. Correct execution does not break a rep counter.</p><p>The clip contains the failing condition anyway, in its gaps. Between repetitions, the subject holds a plank with the arm locked out. Taking that strictly, above 160 degrees, leaves 4.0 seconds of this clip, resting at a mean of 162.5 degrees with <strong>3.48 degrees RMS</strong> around it. The looser criterion used for the noise profile earlier keeps 40.5 seconds of the same clip and gives 1.57 degrees, so the 3.48 figure describes the top of the range instead of the clip as a whole.</p><p>Now walk a single threshold through that resting band.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uSUkRv68bbGDD5qX.png" /></figure><p>Twenty reported against a truth of six, from 39 crossings of a line the signal is sitting on. At 160 degrees it is 21 from 41 crossings. Move the line 6 degrees to 164, and the same counter reports 3, undercounting instead. Hysteresis with a lower bound at 80 degrees reports 6 at a well-placed 115 and never exceeds 3 anywhere in the band.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NGwP4B9IJc3huyx5.png" /></figure><blockquote><strong><em>Worked example: the plank between push-ups, 4.0 s of it.</em></strong></blockquote><blockquote><em>The arm rests at 162.5 degrees with 3.48 degrees RMS of noise on it. Put the threshold at 158.</em></blockquote><blockquote><em>Distance from the resting value to the line: 162.5 − 158 = 4.5 degrees, which is 4.5 / 3.48 = 1.29 standard deviations.</em></blockquote><blockquote><em>For a Gaussian, a value that far out or further arrives about 10 percent of the time. Over 120 frames of plank that is roughly 12 excursions past the line, and the measurement counts 39 crossings, because the noise is correlated and arrives in runs instead of as independent draws.</em></blockquote><blockquote><em>Now open the two thresholds to 80 and 150. The gap is 150 − 80 = 70 degrees, which is 70 / 3.48 = 20 standard deviations. Nothing in this clip is going to cross that.</em></blockquote><blockquote><em>What it means: the failure is not that noise exists, it is where the line was put relative to it. The single-threshold counter needs the signal to spend no time near its threshold, and a person resting between sets spends all of it there.</em></blockquote><p>The rule that follows: place the thresholds where the signal does not rest, and put as much distance between them as the movement allows. Tuning a threshold to “roughly where the arm is at the top” puts it in the worst possible place.</p><h3>The four errors, ranked</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aj5QxII9WI6ENfrO.png" /></figure><p>On this clip: a badly placed threshold costs 14 repetitions, a projected angle costs up to 43.6 degrees of apparent movement, the filter choice costs 0.645 degrees of residual jitter at a 100 ms lag budget, and the landmarker’s own floor costs a third of a pixel. The two at the top are free to fix. The one that gets the attention is third.</p><h3>Before you ship</h3><p>Five checks, each of which catches something this measured.</p><ol><li><strong>Feed the landmarker one frozen frame and watch the output.</strong> If it moves, you have found your jitter floor, and no amount of lighting work goes below it.</li><li><strong>Log the timestamps you pass to </strong><strong>detectForVideo.</strong> A repeat or a step backwards means the tracker is degrading and nothing downstream will tell you.</li><li><strong>Hold a limb still on the threshold for thirty seconds.</strong> The count must not move. This is the single most informative test in the list and it takes half a minute.</li><li><strong>Do half repetitions on purpose.</strong> They must not count. If they do, the machine is triggering on one bound instead of two.</li><li><strong>Turn side-on while holding a joint at a fixed angle.</strong> If the reported angle moves, you are reading image coordinates somewhere.</li></ol><h3>Limitations</h3><p><strong>One movement, one camera, a handful of clips.</strong> Push-ups in profile, plus two press clips for the pooled noise. Nothing here says how the numbers move for a squat at four metres, where the landmarks are worse to begin with.</p><p><strong>The counting comparison has one labelled clip.</strong> Six repetitions, hand-counted twice. The threshold table is a walk across one clip’s resting band, and the shape of that band is a property of that clip. The direction of the effect follows from the mechanism; the size of it is one measurement.</p><p><strong>Three of the conditions people complain about are missing.</strong> A subject deliberately holding still for half a minute, a set that mixes full and partial repetitions, and a limb held at a fixed angle while the torso rotates. These are apparatus, not exercise content, so found video does not contain them. The still condition is substituted by the plank holds and by the frozen-frame experiment. The partial-repetition case is argued from the state machine’s structure and demonstrated in the tests, and it is not measured on video here.</p><p><strong>The rotation experiment is geometry plus a correlation.</strong> The rigid-body half is exact and proves what projection does. It does not prove that MediaPipe’s <em>estimated</em> world landmarks stay stable through a real turn. The clip-based correlation of +0.376 supports it and is not the same claim.</p><p><strong>The widget runs a different model from the measurements.</strong> It loads the lite bundle so the download stays small, while every number here was measured on full. From the frozen-frame table that costs it 0.08 px more jitter, 0.418 against 0.340.</p><h3>Where the numbers come from</h3><p>Every figure above is a replay of a saved landmark track from that one clip, on MediaPipe 1.0.1 and the full float16 bundle, CPU only. The full reproducibility block, meaning the hardware, the OS, the pinned versions, the exact commands, and what is excluded from each measurement, is on the canonical post: <a href="https://condados.ai/blog/rep-counting-jitter-filters-state-machine#reproducibility">condados.ai</a>.</p><p>Code, models, and every saved artifact: <a href="https://github.com/CondadosAI/pose-rep-counting">github.com/CondadosAI/pose-rep-counting</a>. The notebook notebooks/pose_rep_counting.ipynb has a cell for every Python snippet above.</p><h3>The version with the live widget</h3><p>This is the short form. The original carries the counter running on your own camera with the naive version beside it, the full 65-configuration filter sweep, the derivation of the joint angle, and the reasoning on how the companion repository factors the same state machine as a table of rules: <a href="https://condados.ai/blog/rep-counting-jitter-filters-state-machine">condados.ai/blog/rep-counting-jitter-filters-state-machine</a></p><p>Related, and the same mistake at the other end of a pipeline: <a href="https://condados.ai/blog/pupil-diameter-from-a-webcam">pupil diameter from a webcam</a>, where a network asked for millimetres with no scale reference produces a per-person offset. This post is about a threshold with no reference for where the signal rests.</p><h3>References</h3><p>[1] Google. <em>MediaPipe Pose Landmarker</em>. Google AI Edge documentation, mediapipe 1.0.1. <a href="https://developers.google.com/edge/mediapipe/solutions/vision/pose_landmarker">developers.google.com/edge/mediapipe/solutions/vision/pose_landmarker</a></p><p>[2] Casiez, G., Roussel, N. and Vogel, D. <em>1 € Filter: A Simple Speed-Based Low-Pass Filter for Noisy Input in Interactive Systems</em>. Proceedings of CHI ’12, pp. 2527–2530, 2012. <a href="https://doi.org/10.1145/2207676.2208639">doi.org/10.1145/2207676.2208639</a></p><p>[3] Grishchenko, I., Bazarevsky, V., Zanfir, A., Bazavan, E. G., Zanfir, M., Yee, R., Raveendran, K., Zhdanovich, M., Grundmann, M. and Sminchisescu, C. <em>BlazePose GHUM Holistic: Real-time 3D Human Landmarks and Pose Estimation</em>. arXiv:2206.11678, 2022. <a href="https://arxiv.org/abs/2206.11678">arxiv.org/abs/2206.11678</a></p><p>[4] Fleur, T. <em>Interval Push-ups</em>. Wikimedia Commons, CC BY-SA 4.0. <a href="https://commons.wikimedia.org/wiki/File:Interval_Push-ups.webm">commons.wikimedia.org/wiki/File:Interval_Push-ups.webm</a></p><p>Oppenheim and Schafer’s <em>Discrete-Time Signal Processing</em> (ch. 5, <em>Transform Analysis of Linear Time-Invariant Systems</em>) is where group delay is defined, and Forsyth and Ponce’s <em>Computer Vision: A Modern Approach</em> (ch. 11, <em>Tracking</em>) covers the constant-velocity model. The full numbered list is on the <a href="https://condados.ai/blog/rep-counting-jitter-filters-state-machine#references">canonical post</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b78fbf31edd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object Tracking Metrics: MOTA, MOTP, IDF1, and HOTA]]></title>
            <link>https://condadoslgpc.medium.com/object-tracking-metrics-mota-motp-idf1-and-hota-748d503848e9?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/748d503848e9</guid>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-08-31T14:01:03.671Z</atom:updated>
            <content:encoded><![CDATA[<p>DoorCam films a doorway for five frames. Two people, A and B, are present the whole time, so there are ten ground-truth boxes in total. DoorCam detects every box perfectly, no misses, no ghosts, with one flaw: halfway through, it loses person A for a beat and relabels them with a new ID. One identity slip, otherwise flawless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_hlwJL1lCWT8St28C66Tw.jpeg" /></figure><p>Read the full article at https://condados.ai/blog/object-tracking-metrics</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=748d503848e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object Detection Metrics: IoU, AP, and the mAP Everyone Quotes]]></title>
            <link>https://condadoslgpc.medium.com/object-detection-metrics-iou-ap-and-the-map-everyone-quotes-37b36be83fa8?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/37b36be83fa8</guid>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Fri, 28 Aug 2026 14:01:04 GMT</pubDate>
            <atom:updated>2026-08-28T14:01:04.313Z</atom:updated>
            <content:encoded><![CDATA[<p>LotCam watches a parking lot and draws a box around every car. In one frame there are five real cars. LotCam returns seven boxes, each with a confidence: five land on real cars, and two are mistakes, a trash bin it thinks is a car and a shadow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_uZQG9nBfKfSIEGMgyqWQ.jpeg" /></figure><p>Read the full article at https://condados.ai/blog/object-detection-metrics-map</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37b36be83fa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Segmentation Metrics: IoU, Dice, mIoU, and Panoptic Quality]]></title>
            <link>https://condadoslgpc.medium.com/segmentation-metrics-iou-dice-miou-and-panoptic-quality-050b9b2b5dd4?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/050b9b2b5dd4</guid>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 14:01:04 GMT</pubDate>
            <atom:updated>2026-08-26T14:01:04.447Z</atom:updated>
            <content:encoded><![CDATA[<p>Back to the cat camera. This time the job isn’t whether there’s a cat, but which pixels are cat, which is a mask. Take a small 100-pixel patch: the true cat covers 20 pixels, the model paints 22 pixels as cat, and they overlap on 18 pixels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvq6kHZov1tLWEsY57bGxA.jpeg" /></figure><p>Read the full article at https://condados.ai/blog/segmentation-metrics-iou-dice</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=050b9b2b5dd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Classification Metrics, From the Ground Up: Precision, Recall, F1, ROC and AUC]]></title>
            <link>https://condadoslgpc.medium.com/classification-metrics-from-the-ground-up-precision-recall-f1-roc-and-auc-122c04ae3afc?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/122c04ae3afc</guid>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 14:01:05 GMT</pubDate>
            <atom:updated>2026-08-24T14:01:05.270Z</atom:updated>
            <content:encoded><![CDATA[<p>Meet Whiskers, a wildlife camera pointed at a backyard. Its one job: snap a photo whenever a cat walks by. Last night it scored 10 photos, each with a confidence that there’s a cat in frame. By morning you check what was really in each shot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKbfza1F7O3pf6wac4OhCQ.jpeg" /></figure><p>Read the full article at https://condados.ai/blog/classification-metrics-foundations</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=122c04ae3afc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YOLO-NAS Strikes Back: Still the Fastest Detector on Hardware You Already Own]]></title>
            <link>https://condadoslgpc.medium.com/yolo-nas-strikes-back-still-the-fastest-detector-on-hardware-you-already-own-1b8ed8379e14?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b8ed8379e14</guid>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-08-21T14:01:02.601Z</atom:updated>
            <content:encoded><![CDATA[<p>Most detector write-ups compare COCO mAP and stop there. That ranking answers a question almost nobody deploying to the edge is actually asking, which is not what is the most accurate model, but what is the most accurate model that fits in my latency budget, on my hardware, at the precision I can afford to run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zks8uakKWoVJstt3Pqr_EA.jpeg" /></figure><p>Read the full article at https://condados.ai/blog/yolo-nas-without-super-gradients</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b8ed8379e14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiclass and Multilabel Metrics: Micro, Macro, Weighted, and the Difference That Matters]]></title>
            <link>https://condadoslgpc.medium.com/multiclass-and-multilabel-metrics-micro-macro-weighted-and-the-difference-that-matters-9a3c5f4145fe?source=rss-d64b48f54384------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a3c5f4145fe</guid>
            <category><![CDATA[model-evaluation]]></category>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Luís Condados]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 15:01:01 GMT</pubDate>
            <atom:updated>2026-08-20T15:01:01.988Z</atom:updated>
            <content:encoded><![CDATA[<p>PetSpotter photographs each animal arriving at a small shelter and sorts it into one of three classes: dog, cat, or bird. Last batch had twenty animals, imbalanced like real intake: twelve dogs, five cats, three birds. The model loves dogs, is so-so on cats, and, the twist, never once says bird; every bird gets called a cat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXxGUPM6dRpkzQr0oY2C6A.jpeg" /></figure><p>Read the full article at https://condados.ai/blog/multiclass-multilabel-metrics</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a3c5f4145fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>