<?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 Daaimrehman on Medium]]></title>
        <description><![CDATA[Stories by Daaimrehman on Medium]]></description>
        <link>https://medium.com/@daaimrehman?source=rss-3f02f91c2cef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*X5OnsT8jfy6qNhIm</url>
            <title>Stories by Daaimrehman on Medium</title>
            <link>https://medium.com/@daaimrehman?source=rss-3f02f91c2cef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:55:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@daaimrehman/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[The first time I fine-tuned a YOLO model for weapon detection, the number that mattered in the…]]></title>
            <link>https://medium.com/@daaimrehman/the-first-time-i-fine-tuned-a-yolo-model-for-weapon-detection-the-number-that-mattered-in-the-acb9a24f2d45?source=rss-3f02f91c2cef------2</link>
            <guid isPermaLink="false">https://medium.com/p/acb9a24f2d45</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Daaimrehman]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 11:30:28 GMT</pubDate>
            <atom:updated>2026-07-27T11:30:28.448Z</atom:updated>
            <content:encoded><![CDATA[<p>The first time I fine-tuned a YOLO model for weapon detection, the number that mattered in the meeting wasn’t the architecture or the training recipe. It was the confidence threshold. Set it too low, and the model flags a phone as a weapon. Set it too high, and it misses something it shouldn’t. Somewhere in between is the number that actually works for your use case, and you don’t find that number by staring at a training log. You find it by watching the model make decisions in real time and adjusting until it behaves the way it needs to.</p><p>That’s a completely different kind of testing than validation metrics give you. mAP tells you the model is good on average, across a whole dataset. It doesn’t tell you how the model behaves on the specific feed you actually care about, at the confidence level you’re actually planning to run in production.</p><h3>Metrics tell you the average. They don’t show you the behavior.</h3><p>A validation report can tell you precision and recall look solid. It won’t tell you that the model hesitates on partially occluded objects, or that it’s rock-solid at 0.6 confidence but starts throwing false positives the moment you drop to 0.4. You only see that by actually watching it run, ideally on the kind of feed it’ll actually face, whether that’s a webcam, a phone recording, or a real camera stream.</p><p>And confidence threshold isn’t some minor setting you pick once and forget. It’s a tradeoff you tune for the actual cost of being wrong. A missed detection and a false alarm are not equally expensive, and how expensive each one is depends entirely on what you’re building. Nobody figures that out from a metrics table. They figure it out by watching the model flip between “catches it” and “misses it” as they drag the threshold up and down.</p><h3>What this should feel like</h3><p>Pick a model you’ve already trained on the platform. Point it at a webcam or upload a video. Adjust the confidence threshold live, and watch detections appear and disappear in real time as you do.</p><p>That’s the live classification feature in Alpeye. Select any model from your past training runs, feed it live video or an uploaded clip, and tune confidence on the fly, so you’re not guessing what threshold to hardcode before deployment, you’re watching the actual tradeoff happen and picking the number that matches what you actually need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Fw5tFzcp2-fCRaPx9n2urA.png" /></figure><h3>Why this closes a real gap</h3><p>Every model I’ve shipped that mattered went through some version of this, watching it react to real input, adjusting a threshold, watching again. Skipping that step means shipping a number you picked from a metrics table instead of a number you actually tested against real behavior. And the two are not the same thing.</p><p>A model isn’t just its weights. It’s the weights plus the threshold plus the input it’s actually going to see. Test all three together, before you’re the one explaining in a meeting why the model flagged the wrong thing.</p><p>Check it out at Alpeye.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acb9a24f2d45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Where the Time Actually Goes in a Computer Vision Project]]></title>
            <link>https://medium.com/@daaimrehman/where-the-time-actually-goes-in-a-computer-vision-project-77c211c94bf7?source=rss-3f02f91c2cef------2</link>
            <guid isPermaLink="false">https://medium.com/p/77c211c94bf7</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Daaimrehman]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 11:26:25 GMT</pubDate>
            <atom:updated>2026-07-27T11:26:25.624Z</atom:updated>
            <content:encoded><![CDATA[<p>If you asked me a year ago how long a CV project takes, I’d have given you an answer based on how long the model takes to train. That’s the wrong way to think about it. Training is often the smallest line item. Everything around it is where the time actually disappears.</p><p>Here’s a rough breakdown of where I’ve lost time on past projects, stage by stage, and what closes that gap.</p><h3>Understanding the dataset: hours you don’t budget for, but pay anyway</h3><p>Without a health check, this cost shows up as debugging time after training — a confusing per-class metric sends you back to check class distribution you should have looked at on day one. With one, it’s minutes, upfront, before you’ve committed to anything.</p><h3>Annotation to training-ready: the export tax</h3><p>Labeling in one tool and training in another means every finished annotation session is followed by a conversion step — reformatting, restructuring folders, occasionally discovering the export doesn’t match what the training script expects. That’s not annotation time. That’s plumbing time, and it happens every single project, not just the first one.</p><p>Annotating directly where the dataset already lives removes that step entirely. The dataset goes from “labeled” to “trainable” without a gap in between.</p><h3>Infrastructure setup: paid once per environment, forever</h3><p>Provisioning a GPU, writing a Dockerfile, wiring up logging that survives a restart — I’ve done this from scratch more than once, and it’s not a five-minute job. It’s also not really about the model at all. It’s the entry fee you pay before you’re allowed to start.</p><p>When the GPU is already there and training just starts, that entry fee disappears. Not because the modeling got easier — because the tax before the modeling got removed.</p><h3>Architecture comparison: the cost of testing a second option</h3><p>If switching architectures means rebuilding the pipeline around a new input shape or a new framework’s data loader, most people quietly stop testing more than one. Not because they don’t want to — because the cost of a fair second test is too high relative to what they’d learn from it. When the pipeline stays constant and only the architecture changes, testing a second option goes from “a week I don’t have” to a real, cheap comparison.</p><h3>Validation: the step that’s easy to shortcut</h3><p>Writing a proper evaluation script — IoU matching, per-class breakdowns, a genuinely held-out set — takes real effort, so it’s the step most likely to get shortened to “eyeball a few predictions and move on.” That shortcut is invisible until the model underperforms somewhere the eyeball test never would have caught. Built-in validation against real held-out data removes the reason to skip it.</p><h3>Confidence tuning: guessed once, or tested properly</h3><p>Picking a threshold from a metrics table takes five minutes and is often wrong for the actual use case. Watching the model react live and adjusting until the tradeoff is right takes a bit longer up front — and saves the much larger cost of a wrong threshold showing up in front of a client instead of during testing.</p><h3>The actual total</h3><p>None of these individual costs looks huge in isolation. A few hours here, an afternoon there. But they compound across every project, every dataset, every model — and they’re almost entirely disconnected from the actual difficulty of the computer vision problem itself. They’re friction, not work.</p><p>That’s the real argument for Alpeye, and it’s a boring one on purpose: not a smarter model, just less of the time that was never going into the model to begin with.</p><p>Check it out at Alpeye.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77c211c94bf7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Training a Model Shouldn’t Require You to Rebuild Your Infrastructure First]]></title>
            <link>https://medium.com/@daaimrehman/training-a-model-shouldnt-require-you-to-rebuild-your-infrastructure-first-40865e595986?source=rss-3f02f91c2cef------2</link>
            <guid isPermaLink="false">https://medium.com/p/40865e595986</guid>
            <category><![CDATA[ai-model-training]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Daaimrehman]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 03:55:27 GMT</pubDate>
            <atom:updated>2026-07-21T03:55:27.548Z</atom:updated>
            <content:encoded><![CDATA[<p>Before you write a single line about model architecture, there’s a wall most people have to climb first: infrastructure.</p><p>Provisioning a GPU. Writing a Dockerized training pipeline. Wiring up logging so you can actually see what’s happening epoch by epoch. Setting up somewhere to store checkpoints so a crash doesn’t wipe out three hours of training.</p><p>I’ve built that pipeline from scratch.Docker, PyTorch for fine tuning YOLO models on surveillance data. It’s not hard exactly, but it’s also not the part of the job that’s actually about the model. It’s the tax you pay before you get to the interesting part.</p><p>And the failure modes are real. When I ran a QLoRA fine-tune on Kaggle’s free T4 GPU, half the actual work wasn’t the fine-tuning itself ,it was working around session limits, making sure W&amp;B logging was wired up correctly so I wouldn’t lose a run partway through, and babysitting the environment instead of the model. None of that taught me anything about whether the model was actually good.</p><h3>What training should actually feel like</h3><p>Upload your dataset. Configure your hyperparameters. Hit train.</p><p>That’s it. No provisioning a GPU instance. No writing a Dockerfile. No praying your logging survives a restart.</p><p>That’s what we built into Alpeye’s training flow:</p><ul><li><strong>GPU is already there.</strong> You’re not spinning anything up or configuring CUDA versions. You upload, you train.</li><li><strong>Hyperparameter configuration up front, </strong>the knobs that actually matter, without needing a full training script to change them.</li><li><strong>Live loss curves across every epoch</strong>, so you can see training and validation loss as it happens instead of finding out at hour six that something went sideways at epoch two.</li><li><strong>Download the weights the moment training concludes </strong>no digging through checkpoint directories.</li><li><strong>A dashboard of past training runs</strong>, so “wait, when did I run that experiment, and with what settings?” has an actual answer instead of a scroll through your terminal history or a half-remembered W&amp;B project name.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4nu8UIr3J2NysyL1xEsqGQ.png" /></figure><h3>Why the dashboard matters more than it sounds like it should</h3><p>This is the part I underrate every time I build it myself. When you’re iterating from same dataset, five different hyperparameter combinations then it’s incredibly easy to lose track of which run used which learning rate, which one you actually liked, and when you ran it relative to a dataset change you made.</p><p>A dashboard that just tells you the truth. This run, this config, this date, this result, removes an entire category of “wait, was that before or after I fixed the annotations?” confusion.</p><h3>The actual point</h3><p>None of this is about making training faster in some benchmark sense. It’s about removing the distance between having a dataset and having a trained model, so the time you spend is time spent on the model — not on rebuilding a pipeline you’ve already built five times before.</p><p>Check it out at alpeye.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40865e595986" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You Probably Know Less About Your Dataset Than You Think]]></title>
            <link>https://medium.com/@daaimrehman/you-probably-know-less-about-your-dataset-than-you-think-447799916f8f?source=rss-3f02f91c2cef------2</link>
            <guid isPermaLink="false">https://medium.com/p/447799916f8f</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[imbalanced-dataset]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Daaimrehman]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 03:50:05 GMT</pubDate>
            <atom:updated>2026-07-21T03:50:05.972Z</atom:updated>
            <content:encoded><![CDATA[<p>A few months ago I was training a 7 class YOLOv8 model on a surveillance dataset at my internship. Mid training, we had a power outage. When things came back up, I had to reconstruct per-class metrics from old training visualizations because I hadn’t logged them properly the first time around.</p><p>That forced reconstruction taught me something I should have already known: I could tell you my overall mAP, but I could not tell you, off the top of my head, how many examples of each class were actually in my dataset, or whether one class was quietly dragging the average down while the others looked fine.</p><p>That’s the trap. Your GPU doesn’t care. It will train for hours on a dataset with severe class imbalance, wildly inconsistent resolutions, or annotation errors, and never once throw an error. It just gives you a number at the end, and that number is the first time you find out something was wrong.</p><h3>The questions I wish I’d asked earlier</h3><p>Before I kick off a training run now, I try to answer these first:</p><ul><li>How are my classes actually distributed? Not roughly ,actually.</li><li>Are one or two classes underrepresented enough to bias the whole model?</li><li>What resolutions am I training on, and are they consistent?</li><li>Are my bounding boxes mostly tiny, medium, or large and does that match what I expect the model to detect in production?</li><li>Do I have duplicate images?</li><li>Are there empty or missing annotations?</li><li>Are there invalid boxes, or classes that got mislabeled somewhere in the annotation process?</li></ul><p>None of these are exotic edge cases. They’re just properties of the dataset, sitting there, unexamined, until something forces you to look.</p><h3>Training won’t tell you what’s wrong</h3><p>This is the part that gets people. A failed training run doesn’t say “your class distribution is skewed 40:1.” It says “here’s your loss curve, good luck.” So you start debugging the model by swapping architectures, tuning learning rate, adding more data when the actual problem was sitting in your data from day one.</p><p>I’ve lost time to exactly this. Chasing a hyperparameter change when the real fix was fixing the data.</p><h3>Why I built Dataset Health into Alpeye</h3><p>So Dataset Health is one of the first things that runs after you upload a dataset. It surfaces:</p><ul><li>Class distribution, so imbalance is visible before it becomes a symptom</li><li>Resolution breakdown across the dataset</li><li>Bounding box size distribution (small, medium, large)</li><li>Annotation quality checks (missing labels, invalid boxes, duplicates)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NbE8VXPZ13GuRLJ0kowEeQ.png" /></figure><p>The goal isn’t a wall of numbers. It’s one honest answer to one question: <strong>is this dataset actually ready for training?</strong></p><p>Because I’ve learned the hard way that the best architecture in the world can’t fix a dataset you don’t understand yet.</p><p>Check it out here : alpeye.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=447799916f8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>