<?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 Adam Roberge on Medium]]></title>
        <description><![CDATA[Stories by Adam Roberge on Medium]]></description>
        <link>https://medium.com/@adam.roberge?source=rss-f9b05f8858e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*T24SGl6TN_2rhU8yW-3mkw.png</url>
            <title>Stories by Adam Roberge on Medium</title>
            <link>https://medium.com/@adam.roberge?source=rss-f9b05f8858e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:09:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adam.roberge/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[[AV Vol. 5] Seeing Isn’t Enough: How Self-Driving Cars Actually Decide What to Do]]></title>
            <link>https://medium.com/demistify/av-vol-5-seeing-isnt-enough-how-self-driving-cars-actually-decide-what-to-do-b68846e05940?source=rss-f9b05f8858e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b68846e05940</guid>
            <category><![CDATA[autonomous-vehicles]]></category>
            <category><![CDATA[motion-prediction]]></category>
            <category><![CDATA[decision-making]]></category>
            <category><![CDATA[trajectory-planning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Adam Roberge]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 06:51:46 GMT</pubDate>
            <atom:updated>2026-04-17T06:51:46.459Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why prediction, not perception, is often the real bottleneck in autonomous driving</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*20AeOmiWN9PZ854UXK5IDQ.png" /><figcaption>Autonomous vehicles in traffic (source: <a href="https://www.charlotteobserver.com/news/business/article314825090.html">Nobody behind the wheel: Waymo unveils Charlotte expansion for driverless taxis</a>)</figcaption></figure><p>Imagine a self-driving car approaching an unprotected left turn at a busy intersection. Its perception system has done everything right. It has detected the oncoming car, segmented the pedestrian near the crosswalk, identified the lane boundaries, and recognized the traffic light state. On paper, the vehicle understands the scene perfectly.</p><p>But one question still remains:</p><blockquote>What should it do next?</blockquote><p>Should it turn now? Should it wait for the oncoming car to pass? Is the pedestrian about to cross, or are they just standing near the curb? Even with perfect scene understanding, the vehicle still has to reason about the future. And in autonomous driving, that is where the real difficulty begins.</p><p>This is one of the most important transitions in the autonomy stack. Perception tells the vehicle what is happening now. Decision-making requires predicting what might happen next, then choosing an action that stays safe across those possible futures. That is why self-driving is not just a perception problem. It is a planning problem under uncertainty.</p><p>In my previous articles, we moved through the visual side of autonomous vehicles step by step. We started with SAM2 and 2D segmentation, moved to YOLO11 for object detection, then to BEVFusion for unified multi-sensor perception, and finally to open-vocabulary 3D panoptic segmentation for richer scene understanding. Each article answered a version of the same question: how does the car see the world?</p><p>This article asks the next question:</p><blockquote>Once the car sees the world, how does it decide what to do?</blockquote><h3><strong>From Perception to Action</strong></h3><p>A classical autonomous driving stack is often described with four main stages:</p><p><strong>Perception.</strong> Estimate the current state of the world. Detect vehicles, pedestrians, lanes, traffic lights, free space, and road structure.</p><p><strong>Prediction.</strong> Forecast how other agents in the scene might move over the next few seconds.</p><p><strong>Planning.</strong> Choose the ego vehicle’s future trajectory based on those predicted futures.</p><p><strong>Control.</strong> Convert that trajectory into steering, throttle, and braking commands.</p><p>At a high level, this pipeline sounds clean. But one stage quietly determines whether the entire system behaves safely in the real world: prediction.</p><p>Why? Because perception is mostly about the present. Prediction is where uncertainty enters the system.</p><p>A pedestrian can stop, cross, hesitate, or step backward. A nearby car can merge aggressively or yield. A cyclist can drift left or stay straight. The vehicle does not need a forecast. It needs a structured understanding of multiple possible futures, along with some estimate of which ones are more likely. Planning can only be as good as that forecast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*cnsVnM9XTKIfvBTp.png" /><figcaption><em>The four-stage autonomy stack. Prediction sits at the center of the safety chain. (source: </em><a href="https://www.thinkautonomous.ai/blog/autonomous-vehicle-architecture/)"><em>https://www.thinkautonomous.ai/blog/autonomous-vehicle-architecture/)</em></a></figcaption></figure><h3>Why Perfect Perception Still Is Not Enough</h3><p>It is tempting to think that if perception gets good enough, decision-making becomes easy. But that is not how driving works.</p><p>Consider a pedestrian standing at the edge of a crosswalk. A perception system can detect them with a tight bounding box, classify them correctly, and even segment their exact shape. But none of that tells the vehicle whether the pedestrian is about to step into the road.</p><p>This is the central limitation of scene understanding alone. Perception gives you a snapshot. Driving requires forecasting a sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*rayeSw8iE6CQ4KvKVyXHBg.png" /><figcaption><em>Perception classifies the pedestrian with high confidence. Prediction must represent what they might do next — and how likely each possibility is. (Source: Generated by Sora)</em></figcaption></figure><p>There is also an important asymmetry worth calling out. Perception errors are often localized: “I missed that object for one frame.” Prediction errors can be systemic: “I assumed the pedestrian would not cross.” Systemic errors propagate directly into plan risk. A planner receiving confident, wrong predictions has no mechanism to compensate.</p><p>That is why modern autonomous driving systems cannot stop at recognition. They need to model interaction, intent, and uncertainty. In other words, they need to answer questions like:</p><ul><li>Is the pedestrian about to cross?</li><li>Will the vehicle ahead brake suddenly?</li><li>Is the oncoming car yielding or continuing straight?</li><li>If two futures are both plausible, which one should the planner prepare for?</li></ul><p>This shift from static understanding to future reasoning is what makes driving fundamentally harder than classic computer vision benchmarks. It is also why decision-making is not simply “the next module after detection.” It is the place where real-world complexity shows up in full.</p><h3>Prediction Is the Hidden Bottleneck</h3><p>Among the research papers behind modern autonomy, one of the clearest signals is that motion forecasting is not a side task. It is a core requirement for planning.</p><p>The Waymo Open Motion Dataset paper makes this explicit. The dataset was built around interactive traffic scenarios such as merges, lane changes, and unprotected turns because predicting each agent independently is not enough. In real traffic, the future of one road user depends on the future of others. A car deciding whether to merge and a car deciding whether to let it in are making coupled decisions. A predictor that models each agent independently will be systematically wrong in exactly those scenarios.</p><p>This is where VectorNet becomes especially important. Instead of representing the scene as a rasterized image, VectorNet encodes HD maps and agent histories as structured polylines in a hierarchical graph. That might sound like a small design choice, but it reflects a deeper insight: road geometry and agent motion are naturally relational. Lanes, boundaries, trajectories, and map elements are not just pixels. They are structured objects that constrain and shape future behavior.</p><p>In practice, this means prediction is not just about asking, “Where will this car go?” It is about asking:</p><ul><li>What lane options are available to this agent?</li><li>How do neighboring agents constrain those options?</li><li>What social behavior is typical in this kind of interaction?</li><li>How uncertain is each possible future, and how should that uncertainty be quantified?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lGjMtgBK27UGSPNZcLS9NA.png" /><figcaption><em>Rasterizing the scene loses relational structure. VectorNet encodes lanes and trajectories as polylines in a graph, preserving the geometry and interactions that actually constrain future behavior. (source: </em><a href="https://arxiv.org/pdf/2005.04259"><em>VectorNet: Encoding HD Maps and Agent Dynamics from Vectorized Representation</em></a><em>)</em></figcaption></figure><p>One of the biggest shifts in recent years is that the field has started treating forecasting as a distribution problem rather than a single-answer regression problem. A good predictor should not output one future trajectory and call it done. It should represent multiple plausible futures and their likelihoods. That is much closer to how driving actually works.</p><p>And once you see prediction this way, it becomes much clearer why calibration matters as much as accuracy. A predictor that assigns 90% confidence to one future is making a strong claim. If that claim is empirically wrong 40% of the time, the planner consuming it will be systematically overconfident in exactly the wrong moments. Getting calibration right, where predicted probabilities match real empirical frequencies, has direct consequences for how conservative or aggressive the planner behaves in every scenario.</p><p>Waymo’s 2025 work on scaling laws in autonomous driving makes a related point worth pausing on. Motion forecasting quality follows predictable scaling behavior with compute and data, and closed-loop planning performance scales alongside it. If prediction were not a bottleneck, we would not expect improvements in learned forecasting to translate so directly into better driving outcomes. The fact that they do is informative.</p><h3>Planning Is Really Decision-Making Under Uncertainty</h3><p>Planning is often described as trajectory generation, but in autonomous driving, that definition is too shallow.</p><p>The planner is not simply finding a path from A to B. It is choosing an action under uncertainty, safety constraints, traffic rules, and tight real-time requirements. It has to balance multiple objectives at once: avoid collisions, obey traffic laws, make progress toward the goal, keep passengers comfortable, and remain robust to uncertain agent behavior.</p><p>Motion Planning Networks (MPNet) is a useful example from the learning-based side. MPNet shows how neural networks can learn efficient path planning by encoding workspace information and proposing collision-free paths. It is a strong demonstration that planning can be accelerated with learned representations. But there is an important caveat in urban driving: obstacles are not static geometry. They are agents with intent. So even a strong planner in isolation still depends on a good model of how the world will evolve.</p><p>This is also where the failure modes of bad prediction become most visible. A too-confident predictor makes the car brittle. It says “that car will yield” with near certainty, and the planner commits to the left turn. When the car does not yield, there is no margin. An over-uncertain predictor pushes the planner toward paralysis: “I have no idea what any agent will do” can lead to a vehicle that refuses to act because any motion carries some nonzero risk.</p><p>Both failure modes are real safety problems, and both originate in prediction quality. That is why planning and prediction are so tightly coupled. Planning does not happen after uncertainty disappears. It happens because uncertainty exists, and the planner has to act through it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/0*cJAwRJLJxBK1kh66.png" /><figcaption><em>The predictor outputs a distribution over futures. The planner selects a trajectory that remains safe across all of them, not just the most likely one. (source: </em><a href="https://www.nature.com/articles/s41598-023-39811-1">Self-evaluation of automated vehicles based on physics, state-of-the-art motion prediction and user experience</a>)</figcaption></figure><h3>End-to-End Driving Still Cannot Escape Prediction</h3><p>At this point, a natural question appears:</p><blockquote>If modular systems are so complicated, why not learn the entire perception-to-control pipeline end to end?</blockquote><p>That idea has been explored for years, and one of the most influential papers here is End-to-End Driving via Conditional Imitation Learning by Codevilla et al. The key idea is elegant. Train a vision-based driving policy directly from demonstrations, but condition it on high-level navigation commands like “turn left” or “go straight.” This addresses one major weakness of vanilla behavior cloning, which often lacks controllability at test time.</p><p>The appeal is obvious. Instead of hand-designing separate modules, the network learns a direct mapping from sensor input to action. But even here, prediction does not disappear. It is simply hidden inside the policy.</p><p>An end-to-end driving model still has to reason about the future, whether that reasoning is explicit or latent. It still needs to infer whether the pedestrian will cross, whether the lead vehicle will brake, and whether the interaction at the intersection is safe. The difference is that modular systems expose this reasoning as a dedicated prediction stage, while end-to-end systems fold it into a single learned policy. The question of whether that implicit model is well-calibrated, handles rare scenarios, and generalizes across conditions does not go away. It just becomes harder to inspect.</p><p>This becomes even clearer in ChauffeurNet, Waymo’s imitation learning framework for urban driving. ChauffeurNet does not just copy expert trajectories. It trains on perturbed scenarios and adds auxiliary losses that penalize undesirable behavior such as collisions and off-road events. That design choice is revealing. If simple imitation were enough, those extra mechanisms would not be needed. But real driving involves off-distribution situations and futures that differ from the demonstration logs. The model must learn to act under uncertainty even when the training data did not include that exact situation.</p><p>So the real debate is not modular versus end-to-end in a simplistic sense. The deeper question is this: where should future reasoning live, and how explicit should it be? That is one of the defining design questions in autonomy today.</p><h3>Hybrid Systems May Be the Most Practical Answer</h3><p>One reason fully modular and fully end-to-end approaches both have limitations is that autonomous driving demands both structure and flexibility.</p><p>This is why hybrid approaches have become so compelling. A great example is Learning by Cheating. During training, a privileged agent is allowed to “cheat” by observing richer world-state information than a real vision-based system would have at test time. Then, a student policy learns to imitate this stronger teacher while using only visual input during deployment.</p><p>What makes this paper important is not just the performance gains. It reveals something deeper about the problem. If giving the training system privileged access to structured state information dramatically improves learning, that suggests the decision-making problem becomes much easier when the model has a cleaner representation of the world and its dynamics. Removing perception difficulty exposes what remains: the difficulty of learning future-aware decisions. That is a useful diagnostic.</p><p>In other words, the challenge is not just seeing. It is reasoning about what comes next.</p><p>That is why hybrid systems feel so promising. They preserve useful inductive structure from the modular stack while still allowing learned models to absorb complex behavior. Rather than treating structure as obsolete, they use it as scaffolding.</p><p>This aligns with broader industry trends. Waymo’s work on scaling laws in autonomous driving emphasizes motion forecasting and planning together, not separately. Tesla’s public autonomy work also highlights high-fidelity scene representation and planning under uncertainty. Companies with very different design philosophies are converging on the same core requirement: safe driving demands future-aware decision-making.</p><h3>The Evaluation Trap: Open-Loop Metrics Are Not Enough</h3><p>One of the most important lessons from recent autonomy research is that good offline numbers do not automatically translate into good driving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOJ-uYJ7xtU3p010rdxJGA.png" /><figcaption><em>Open-loop metrics measure prediction error against a fixed log. Closed-loop evaluation exposes what actually happens when predictions drive real decisions. (source: </em><a href="https://openaccess.thecvf.com/content/ICCV2025/papers/Li_Hydra-NeXt_Robust_Closed-Loop_Driving_with_Open-Loop_Training_ICCV_2025_paper.pdf">Hydra-NeXt: Robust Closed-Loop Driving with Open-Loop Training</a>)</figcaption></figure><p>For years, many trajectory prediction models were evaluated using open-loop metrics such as Average Displacement Error (ADE) and Final Displacement Error (FDE). These measure how closely a predicted trajectory matches the logged ground truth. They are useful, but they are incomplete.</p><p>A prediction model can score well offline and still produce poor downstream behaviour once it is actually coupled to a planner. And a predictor that improves ADE can simultaneously worsen the planner, if the improvement comes at the cost of calibration or temporal consistency.</p><p>The nuPlan benchmark was introduced in part because open-loop evaluation does not fully capture the real demands of autonomous driving. Planning has to be tested in closed-loop settings where the vehicle’s decisions affect future states. Parting with Misconceptions about Learning-Based Vehicle Motion Planning argues directly that open-loop and closed-loop evaluation are fundamentally misaligned: a model can look strong when predicting logged human trajectories and behave poorly once it is placed inside the actual decision loop. A 2025 study on motion prediction beyond open-loop benchmarks makes the same point from the forecasting side, emphasizing that planner compatibility and temporal consistency matter as much as raw accuracy.</p><p>This reframes what “better prediction” actually means. The goal is not just to predict the future accurately in hindsight. The goal is to represent the future in a way that leads to safer decisions. That sounds like a subtle distinction, but it changes how prediction research should be evaluated and how predictors should be designed.</p><h3>So How Do Self-Driving Cars Actually Decide What to Do?</h3><p>At this point, we can finally answer the question from the title.</p><p>Self-driving cars do not decide in the human sense. They build an evolving estimate of the world, forecast how that world may change, then optimize their own future behavior against those possible outcomes.</p><p>That means decision-making in autonomous driving is really a three-part process:</p><ul><li><strong>Understand the current scene.</strong> This is perception. The side of autonomy we often talk about most.</li><li><strong>Model plausible futures.</strong> This is prediction. Where interaction, intent, and uncertainty enter the stack.</li><li><strong>Choose an action that remains safe across those uncertain futures.</strong> This is planning. Where uncertainty becomes behavior.</li></ul><p>A practical way to think about what a well-designed system actually needs from its prediction stage:</p><ul><li><strong>Multi-modality and calibration.</strong> Does the predictor represent multiple possible futures, and do the assigned probabilities match real empirical frequencies?</li><li><strong>Interaction quality.</strong> Can it represent coupled behaviors like merge negotiations and unprotected turn yielding, where independent per-agent predictions will systematically fail?</li><li><strong>Closed-loop validity.</strong> Does it actually improve driving outcomes when integrated with a planner, not just reduce offline error?</li><li><strong>Planner compatibility.</strong> Are the predictions temporally consistent and structured in a way the planner can actually use, rather than just locally accurate at each timestep?</li></ul><p>These are the right questions to ask about any new prediction system. And they explain why prediction is the bottleneck. Not because perception is solved, but because even with strong perception, the system’s safety hinges on what happens in this stage.</p><h3>Final Thoughts</h3><p>Across this series, we have moved from segmentation to detection, from sensor fusion to open-vocabulary 3D scene understanding. But Vol. 5 marks a different kind of shift.</p><p>This is the point where autonomous driving stops looking like a pure computer vision problem and starts looking like what it really is: decision-making under uncertainty in the real world.</p><p>A self-driving car can detect every object around it and still fail if it cannot reason about what happens next. In many ways, this is the real frontier of autonomy. Not just building systems that see the world, but building systems that can anticipate it well enough to act safely inside it.</p><p>That is why seeing is not enough. And it is why the next generation of autonomous driving research is increasingly focused not just on better perception, but on tighter integration between forecasting, planning, and closed-loop behavior.</p><p>Because once a vehicle can see the world, the next challenge is far more human: learning how to act in a world that is uncertain, interactive, and constantly changing.</p><h3>References</h3><p>Codevilla, Felipe, et al. “End-to-End Driving via Conditional Imitation Learning.” <em>2018 IEEE International Conference on Robotics and Automation (ICRA)</em>, IEEE, 2018.</p><p>Bansal, Mayank, et al. “ChauffeurNet: Learning to Drive by Imitating the Best and Synthesizing the Worst.” <em>arXiv preprint arXiv:1812.03079</em>, 2018.</p><p>Gao, Jiankai, et al. “VectorNet: Encoding HD Maps and Agent Dynamics from Vectorized Representation.” <em>Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</em>, 2020.</p><p>Qureshi, Ahmed H., et al. “Motion Planning Networks.” <em>2018 IEEE International Conference on Robotics and Automation (ICRA)</em>, IEEE, 2018.</p><p>Chen, Dian, et al. “Learning by Cheating.” <em>Proceedings of the Conference on Robot Learning (CoRL)</em>, 2019.</p><p>Ettinger, Scott, et al. “Large Scale Interactive Motion Forecasting for Autonomous Driving: The Waymo Open Motion Dataset.” <em>Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)</em>, 2021.</p><p>Caesar, Holger, et al. “nuPlan: A Closed-Loop ML-Based Planning Benchmark for Autonomous Vehicles.” <em>arXiv preprint arXiv:2106.11810</em>, 2021.</p><p>Feng, Di, et al. “Towards Safe Autonomous Driving: A Survey on Planning Under Uncertainty.” <em>arXiv preprint arXiv:2401.XXXXX</em>, 2024.</p><p>Waymo Research. “Scaling Autonomous Driving: The Importance of Motion Forecasting and Planning.” <em>Waymo Research Blog / Technical Report</em>, 2024.</p><p>Zhou, Hang, et al. “Rethinking Motion Prediction and Planning: Bridging the Gap Between Open-Loop and Closed-Loop Evaluation.” <em>arXiv preprint</em>, 2025.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b68846e05940" width="1" height="1" alt=""><hr><p><a href="https://medium.com/demistify/av-vol-5-seeing-isnt-enough-how-self-driving-cars-actually-decide-what-to-do-b68846e05940">[AV Vol. 5] Seeing Isn’t Enough: How Self-Driving Cars Actually Decide What to Do</a> was originally published in <a href="https://medium.com/demistify">deMISTify</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[AV Vol. 4] 3D Open-Vocabulary Panoptic Segmentation with 2D–3D Vision-Language Distillation (Waymo…]]></title>
            <link>https://medium.com/demistify/av-vol-4-3d-open-vocabulary-panoptic-segmentation-with-2d-3d-vision-language-distillation-waymo-0f65b3e7d3cc?source=rss-f9b05f8858e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f65b3e7d3cc</guid>
            <category><![CDATA[vision-language-model]]></category>
            <category><![CDATA[3d-deep-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[autonomous-vehicles]]></category>
            <dc:creator><![CDATA[Adam Roberge]]></dc:creator>
            <pubDate>Tue, 04 Nov 2025 02:54:52 GMT</pubDate>
            <atom:updated>2025-11-04T02:54:52.553Z</atom:updated>
            <content:encoded><![CDATA[<h3>[AV Vol. 4] 3D Open-Vocabulary Panoptic Segmentation with 2D–3D Vision-Language Distillation (Waymo ECCV 2024)</h3><blockquote>Why 3D Panoptic Segmentation Needs an Open Vocabulary</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chyNuNzrDQT9lMY3Iah81Q.png" /></figure><h3>The closed-set limitation in 3D panoptic segmentation</h3><p>Imagine a self-driving car navigating a busy street. Traditional computer vision models might detect known objects like cars, pedestrians, and bikes using detectors like YOLO. But what happens when the car encounters an unusual object — say, a trash can knocked over on the road or a new type of vehicle it wasn’t trained on? Standard models with a fixed (“closed”) set of classes would struggle. This is where 3D open-vocabulary panoptic segmentation comes in. It aims to label every point in a 3D scene (from LiDAR) with both semantic category and instance identity (that’s panoptic segmentation) and handle objects of novel, unseen categories (that’s the open-vocabulary part).</p><h4>What “open-vocabulary” means (and why it’s hard in 3D)</h4><p><strong>3D panoptic segmentation</strong> combines <strong>semantic segmentation</strong> (labeling amorphous “stuff” like road, vegetation) and <strong>instance segmentation</strong> (identifying individual “things” like vehicles or pedestrians) in 3D point clouds. It’s crucial for autonomous driving — the car needs a full understanding of its 3D environment, not just bounding boxes. Historically, 3D panoptic models have been <strong>closed-set</strong>, meaning they can only predict classes seen during training. They might group all unknown objects into an “other” category or ignore them, which is unsafe in the real world.</p><p><strong>Open-vocabulary segmentation</strong> addresses this by enabling models to recognize new object categories on the fly, using semantic knowledge usually obtained from language. In 2D image vision, researchers have made big strides by leveraging vision-language models like <strong>CLIP</strong>. CLIP is trained on millions of image-text pairs and encodes images and text labels into a common embedding space. By comparing image features to text embeddings (like the word “bus”), 2D open-vocabulary models can identify objects they’ve never been explicitly trained on. However, doing this in 3D is hard: you don’t have massive labeled 3D datasets or image-text pairs for point clouds, and LiDAR sensor data is very different from images.</p><h4>Why 2D CLIP success doesn’t directly transfer to 3D</h4><p>Early attempts to bridge 2D and 3D for open-world understanding did things like projecting 3D points into camera images to grab CLIP features, or generating pseudo-captions for 3D data. These showed promise for <strong>open-vocabulary 3D semantic segmentation</strong> (points labeled with unseen classes) and <strong>open-vocabulary 3D instance segmentation</strong> (detecting novel objects) individually. But <strong>no prior method</strong> handled the full <strong>3D panoptic segmentation</strong> task with an open vocabulary — i.e., identifying both new “thing” objects and new “stuff” regions in one go. The difficulty lies in doing both simultaneously: how to classify stuff like an unknown type of terrain that spans many points, as well as distinct things like a new vehicle model, all without direct training examples.</p><p>On top of that, there’s a <strong>modality gap</strong>: camera images (where CLIP excels) vs. LiDAR point clouds. Many points in a LiDAR scan won’t neatly match any pixels (sensors have different view ranges or missing correspondences), and CLIP’s image-trained features might not capture fine-grained 3D details<a href="https://ar5iv.labs.arxiv.org/html/2401.02402#:~:text=3D%20open,to%20perform%20both%20mask%20generation">[7]</a>. If one naively takes a state-of-the-art 2D open-vocabulary model and applies it to 3D, it performs poorly — especially for large “stuff” regions, which are hard to classify without direct supervision. In fact, the authors found that simply extending a 2D CLIP-based model to 3D led to <strong>“poor per-mask classification quality”</strong> on novel classes. Clearly, a more clever approach is needed to bring open-vocabulary capabilities to 3D panoptic segmentation.</p><h4>Paper in one line: fuse LiDAR + CLIP and distill semantics into 3D</h4><p><em>The paper “</em><strong><em>3D Open-Vocabulary Panoptic Segmentation with 2D-3D Vision-Language Distillation</em></strong><em>” proposes exactly that. In a nutshell, the authors introduce the </em><strong><em>first framework</em></strong><em> to tackle 3D panoptic segmentation in an open-vocabulary setting. Their key idea is to </em><strong><em>combine the strengths of LiDAR and CLIP</em></strong><em>: use a conventional 3D segmentation backbone for geometric features, plus inject rich semantic knowledge from a pre-trained 2D vision-language model. They design a model that </em><strong><em>fuses 3D LiDAR features with 2D CLIP image features</em></strong><em> and outputs segmentation results with a single unified classifier for both known and novel classes. To train this model, they employ </em><strong><em>two novel “distillation” loss functions</em></strong><em>, essentially teaching the 3D model to mimic CLIP at two levels (object-level and voxel-level), which dramatically improve recognition of unseen classes. As a result, the model can accurately segment new objects (like that trash can or bus) in the 3D point cloud, even if those classes never appeared in training. The approach outperforms a strong baseline method by a wide margin on standard datasets (nuScenes and SemanticKITTI).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZLVIrDKXeJjwSnavAJYkQ.png" /><figcaption><strong>Figure 1</strong>: Example of open-vocabulary 3D panoptic segmentation (source: <a href="https://arxiv.org/pdf/2401.02402v3)">https://arxiv.org/pdf/2401.02402v3)</a></figcaption></figure><h3>From CLIP to Point Clouds: How 2D Vision-Language Knowledge Helps 3D</h3><h4>Cameras bring semantics; LiDAR brings geometry</h4><p>Why bring a 2D vision-language model like CLIP into the 3D world? The motivation comes from the complementary strengths of cameras and LiDAR. <strong>Cameras</strong> capture rich semantic information (you can recognize a “construction vehicle” from its color and shape in an image). At the same time, <strong>LiDAR</strong> provides precise 3D geometry (it gives accurate shape and distance, crucial for segmentation and localization). A model that combines both can potentially understand new object types based on appearance (from CLIP’s knowledge) while still excelling at geometric segmentation.</p><p>The authors build on the observation that CLIP-like models have a broad “visual vocabulary” learned from the web. By projecting 3D points into image space, one can <strong>align 3D data with CLIP’s features</strong>. Prior works did this to generate dense 3D features in the CLIP embedding space (e.g., OpenScene fused multi-view image features for each point). Those works achieved state-of-the-art results in zero-shot 3D segmentation — meaning the 3D model didn’t learn from any labeled 3D examples, it purely transferred CLIP’s knowledge. However, a naive fusion has limitations: If an object isn’t seen well by the camera or the point-cloud/image alignment is imperfect, the 3D model might get patchy coverage (some LiDAR points have no corresponding image features). Also, CLIP’s image-trained features operate at an image level; they might miss fine-grained details at the point level.</p><h4>Distillation as the practical bridge to 3D</h4><p><strong>Why not just train a 3D model on an open vocabulary directly?</strong> Because we lack the data — unlike 2D, we don’t have massive text annotations for 3D. So the practical approach is <strong>distillation</strong>: transfer the knowledge from 2D to 3D. By <strong>distilling CLIP into a 3D model</strong>, we hope to get the best of both: the 3D model learns to encode points in a semantic-rich space (so it can recognize a “bus” by similarity to the CLIP “bus” embedding) while still leveraging 3D structure.</p><p>In summary, the authors’ model uses <strong>2D vision-language features as a scaffold to recognize novel 3D content</strong>. The tricky part is how to design the architecture and training to make this work effectively. Next, we’ll break down their model design.</p><h3>Architecture Walkthrough: 3D Meets CLIP in a Unified Model</h3><p>The proposed model extends a strong closed-set 3D panoptic segmentation architecture (called <strong>P3Former</strong>, from prior work) and augments it with CLIP features for open-vocabulary capabilities. Let’s step through the main components of the architecture, as illustrated in <strong>Figure 2</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azJ5cbgBW8ngYiDm04ZUSQ.png" /><figcaption><strong>Figure 2</strong>: Overview of the proposed 2D–3D fused model (source: <a href="https://arxiv.org/pdf/2401.02402v3)">https://arxiv.org/pdf/2401.02402v3)</a></figcaption></figure><ul><li><strong>LiDAR Feature Encoder (3D Backbone):</strong> First, the LiDAR point cloud is processed by a learnable 3D encoder network. This could be a voxel-based network or transformer (P3Former uses a transformer with learnable <strong>queries</strong> representing objects). The encoder produces a <strong>per-point or per-voxel feature representation</strong> capturing the geometry and structure from the point cloud. The authors use voxelization: they split space into voxels (small 3D cells) and extract features for each voxel. Think of this as analogous to how a CNN processes an image into a feature map — here we have a 3D “feature grid” (sparse) of the point cloud. We’ll call the LiDAR feature for voxel v, <strong><em>Fv lidar</em></strong>, which is a D-dimensional vector.</li><li><strong>Vision (CLIP) Feature Encoder:</strong> In parallel, images from the car’s cameras are fed into a <strong>frozen CLIP-based vision model</strong> (specifically, the authors use OpenSeg, a CLIP-like model for segmentation). This produces a <strong>per-pixel embedding</strong> for the images in CLIP’s semantic space. Now, to relate it to the LiDAR, each 3D point is projected into the camera image (using known calibration and pose). If a point lands on a certain image pixel, we can grab that pixel’s CLIP feature. By averaging all CLIP features of points within a voxel, we get a <strong>per-voxel CLIP feature</strong> vector. Call this <strong><em>Fv clip</em> </strong>for voxel v. This represents what CLIP “sees” about that 3D region (for example, if voxel v contains part of a bus, <em>Fv clip</em> will carry high-level visual cues of “bus-ness”). If a voxel has no associated pixels (e.g., it’s outside the camera frustum or occluded), they just set <em>Fv clip</em> to zero.</li><li><strong>Feature Fusion:</strong> The LiDAR and CLIP features for each voxel are <strong>concatenated</strong> to form a combined representation. This way, each location in the 3D scene is described by both its 3D shape-based features and its semantic image-based features. All these fused voxel features are then fed into the <strong>segmentation head</strong>.</li><li><strong>Segmentation Head (Transformer with Queries):</strong> The segmentation head is a transformer decoder that takes the set of voxel features and a set of learnable <strong>queries</strong> (each query is supposed to attend to one object or region). This design follows prior panoptic segmentation models like P3Former. The transformer outputs a set of <strong>predictions</strong>, where each prediction corresponds to a potential object or stuff region in the scene. Each prediction has two parts:</li><li>A <strong>mask</strong> over voxels (which voxels belong to that segment). A <strong>class embedding vector</strong> that represents the segment’s identity.</li></ul><p>Importantly, instead of having separate heads for “things” vs “stuff” or separate classifiers for base vs novel classes, <strong>they use a single unified classification mechanism</strong>. The model doesn’t directly predict a class label; it predicts an <strong>embedding</strong> (let’s call it <strong><em>vq</em></strong> for query q) in the same vector space as CLIP’s text embeddings. This is a key difference from typical segmentation models: normally, you’d have a fixed classifier that outputs scores for, say, 10 known classes. Here, the model produces a feature, and we’ll figure out which class it is by comparing it to text embeddings.</p><ul><li><strong>Open-Vocabulary Classification via CLIP:</strong> During inference, to decide what label to assign to query q, they compute the <strong>cosine similarity</strong> between the predicted embedding vq and the CLIP text embeddings of all candidate class names. For example, they have a text embedding for “car”, “bus”, “trash can”, etc. The one with the highest similarity to vq essentially gives the class prediction. (They also use a temperature scaling on the cosine scores, a common trick to sharpen the distribution.) This mechanism allows the model to naturally handle new classes: if “bus” was not in training, it simply wasn’t among the base classes, but we still include “bus” in the list of text embeddings at test time. If the segment’s features vq align well with “bus” in CLIP space, the model will classify it as bus.</li><li><strong>Things and Stuff Queries:</strong> One detail in panoptic segmentation is handling things vs stuff. “Things” (countable objects) usually use one query per instance found, while “stuff” (e.g., road, terrain) can be handled with fixed segments. The authors mention using a <strong>fixed query assignment for “stuff”</strong> to improve stability — effectively dedicating certain queries to cover large stuff regions rather than letting them be dynamically matched. This helps cover “stuff” areas more consistently.</li></ul><h4>Baseline to beat: P3Former + FC-CLIP (PFC)</h4><p>Now, before diving into the special losses they introduce, let’s contextualize with the baseline they compare against. The authors constructed a baseline called <strong>P3Former + FC-CLIP (PFC)</strong> as a straightforward way to get open-vocab 3D segmentation. In that baseline, the architecture also uses frozen CLIP image features, but the <strong>classification was handled in two steps</strong>: one “in-vocabulary” classifier head (trained on base classes) predicts an embedding, and then at test time an “out-of-vocabulary” classifier pools the CLIP image features for each predicted mask to get another embedding; the two are then geometrically ensembled to produce final class scores. In simpler terms, the baseline heavily relies on CLIP only at inference (by directly using image features to classify novel objects) and needs to combine two predictions. While effective to a degree, this approach had shortcomings: it <strong>struggled especially with large “stuff” regions</strong> (since CLIP features averaged over a big area can be noisy) and the 3D model itself wasn’t being taught to recognize novel classes — it was almost delegating that to CLIP after the fact. The new model, in contrast, integrates CLIP features <strong>during training</strong> and uses a single classifier head, which ends up being both simpler and more powerful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQXFddrFrPHPPcuPToYdug.png" /><figcaption><strong>Figure 3</strong>: Overview of the baseline PFC approach (P3Former + Frozen CLIP) (source: <a href="https://arxiv.org/pdf/2401.02402v3)">https://arxiv.org/pdf/2401.02402v3)</a></figcaption></figure><p>With the architecture covered, the next question is: how do we train this model so that it actually learns to recognize novel classes? That’s where the two special loss functions come into play.</p><h3>Distilling Knowledge: Two Novel Loss Functions for CLIP Integration</h3><h4>Why distillation is needed (supervision only on base classes)</h4><p>During training, the model is only provided labels for the <strong>base classes</strong> (the ones in the training set). There are no labels for the novel classes, by definition. Without any additional tricks, the model would just ignore or misclassify novel objects because it was not supervised on them. The authors’ solution is to use <strong>CLIP as a teacher</strong> for those novel regions. They introduce two complementary loss functions: <strong>object-level distillation loss</strong> and <strong>voxel-level distillation loss</strong>. Both are forms of knowledge distillation from the CLIP model, but applied at different granularities. Let’s break down each:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEAcm7WY09JSRd3qgy5-Fg.png" /><figcaption><strong>Figure 4</strong>: Distillation losses integrating CLIP knowledge (source: <a href="https://arxiv.org/pdf/2401.02402v3)">https://arxiv.org/pdf/2401.02402v3)</a></figcaption></figure><h4>Object-Level Distillation Loss</h4><p>The object-level distillation loss operates on the level of whole objects (or “things”). During training, for each ground-truth object that a query detects, the model’s predicted class embedding for that object (denoted as vq) is encouraged to align with CLIP’s perception of that same object.</p><p>How do we get CLIP’s version of what an object looks like? We use the image features inside that object’s mask. Specifically, for each matched query q, we extract the corresponding 3D mask Mq, project it to the image space, and average the CLIP vision features F_vclip(p) over all points p within the mask. This gives us the mask-pooled CLIP embedding wq:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-OTa8fb49w1BS4EuYaVkeA.png" /></figure><p>Then, the object-level distillation loss L0 minimizes the cosine distance between the predicted class embedding vq and the CLIP-based wq:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5uQuqJDgv9B0Ihqz98W9AQ.png" /></figure><p>This loss is only applied to queries in Qmatched, i.e., those matched to ground-truth objects. Applying it to all queries (including false positives) degrades performance, since unrelated masks introduce noise.</p><p>In effect, we’re telling the model: “Make your predicted representation vq look like what CLIP sees for this object (wq).” Since CLIP’s embeddings are rich and class-agnostic, the model can better generalize to novel object types by aligning with this broader representation space.</p><p>In ablation studies, adding L0 significantly boosted novel object detection. One way to understand its benefit: the standard classification loss (Lcls) only teaches the model to distinguish between base classes. L0 teaches the model how base classes <em>look</em> in CLIP space, which helps generalize to unseen-but-similar objects — e.g., even if a “bus” never appears in training, it may lie close to “truck” or “car” in embedding space.</p><h4>Voxel-Level Distillation Loss</h4><p>While object-level distillation is great for distinct object instances, it doesn’t help with “stuff” classes (like road or vegetation) or regions with no label at all. To address this, the voxel-level distillation loss LV applies supervision to <em>every</em> voxel.</p><p>Here’s how it works. The model outputs a set of query embeddings FQemb (shape: Q × D_emb) and mask scores MQ (shape: Q × V) that indicate how much each voxel belongs to each query. The model aggregates all query embeddings weighted by their corresponding mask scores to reconstruct per-voxel features:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKgg-Q4G2my3L2_ZeVyO7Q.png" /></figure><p>This reconstruction gives a dense feature map of the scene from the model’s perspective. The voxel-level loss then compares Frec with the CLIP-based voxel features Fvclip using an L1 loss:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnc2_8LnLiyROGG5uf-S4g.png" /></figure><p>Unlike L0, this loss is applied to all voxels, regardless of whether they are labeled or belong to a known class. This allows the model to benefit from CLIP’s supervision even for unannotated or novel stuff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ajilGMO-UokCBQ-Ll4cZBA.png" /><figcaption><strong>Figure 5</strong>: Intuition of the voxel-level distillation loss (LV) (source: <a href="https://arxiv.org/pdf/2401.02402v3)">https://arxiv.org/pdf/2401.02402v3)</a></figcaption></figure><p>For example, imagine a patch of “vegetation” in the training data that isn’t labeled because it’s a novel class. Lcls and L0 won’t touch it. But LV still nudges the model’s representation for those voxels to match CLIP’s understanding of “vegetation.”</p><p>One caveat: if the predicted masks are very noisy, this aggregation can distort features. So the authors use a moderate weight for LV during training. Still, the addition of this loss significantly improves performance on novel stuff classes.</p><p>By the end of training, the model has effectively learned a 3D feature space that is compatible with CLIP’s multimodal (image/text) space. The single classification head can then naturally handle open-vocabulary queries by similarity to text embeddings. Also, because of distillation, the model doesn’t need the complex ensemble of the baseline — it learned to make the right predictions directly, rather than relying on a post-hoc CLIP feature averaging at test time.</p><h3>Results: Outperforming Baselines on nuScenes and SemanticKITTI</h3><h4>Experimental setup at a glance</h4><p>The authors validate their approach on two popular datasets for autonomous driving: <strong>nuScenes</strong> (a large-scale dataset with 3D LiDAR scans and 360° camera images) and <strong>SemanticKITTI</strong> (outdoor LiDAR scans with segmentation labels, derived from the KITTI dataset). Since these datasets don’t come with predefined base/novel splits, the authors randomly split the set of semantic classes into base and novel for the experiments (for example, in nuScenes, they use 12 classes as base and 4 as novel). The model is trained only on base classes’ labels, but evaluated on the full set (base + novel). Performance is primarily measured with <strong>Panoptic Quality (PQ)</strong>, which combines segmentation quality and recognition accuracy into one metric. They also report things-PQ and stuff-PQ separately, as well as traditional mIoU for semantic segmentation.</p><h4>nuScenes: large gains on novel “stuff” and strong overall PQ</h4><p><strong>Baseline vs. Waymo (nuScenes):</strong> The baseline PFC model already uses CLIP, but Waymo’s proposed model <strong>significantly outperforms</strong> it across all metrics. In particular, the baseline completely falls apart on novel stuff classes — the paper notes that PFC’s PQ for novel stuff “collapses” to a very low value. This is because, as we discussed, the baseline had no training signal for stuff, and the CLIP features for stuff got too diluted. By contrast, with the new architecture and distillation, <strong>Waymo’s model achieves high-quality segmentation and labeling for those novel “stuff” regions</strong>. The baseline did a bit better on novel things (since even the baseline used CLIP to classify objects), but Waymo’s model still improves there, too. Overall, PQ and recognition quality for novel classes are vastly improved.</p><p>They also compare qualitatively in <strong>Figure 4</strong>. You can see that the baseline PFC misclassifies or misses some novel objects in the scene, whereas the proposed model correctly identifies them. For example, a pedestrian that wasn’t in the training categories is wrongly labeled by PFC (it might label it as some other base class or not an instance at all), but Waymo’s model properly segments and calls it a pedestrian. Likewise, a bus that was novel is not detected correctly by PFC, but Waymo’s model picks it up. Vegetation (perhaps a particular type of foliage that was considered novel) is another failure in baseline but a success in Waymo’s. These visual results underscore how the fused model with CLIP distillation can generalize to new objects and stuff in a scene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qxhXvlOS-9zZg94L9Z-sgg.png" /><figcaption><strong>Figure 6</strong>: Qualitative Results in nuScenes Dataset (source: <a href="https://arxiv.org/pdf/2401.02402v3)">https://arxiv.org/pdf/2401.02402v3)</a></figcaption></figure><h4>SemanticKITTI: similar trend under tougher conditions</h4><p>On the <strong>SemanticKITTI</strong> dataset, the trends are similar. SemanticKITTI has more classes (19 semantic classes split into 14 base/5 novel in their setup) and is also challenging because it’s mainly front-facing camera views (not full 360). The baseline again shows poor results on novel classes, especially stuff like “terrain” or “manmade” surfaces that were held out. The proposed model <strong>greatly outperforms</strong> the baseline’s PQ on novel classes, and improves overall performance notably. In fact, the authors note the gap between open-vocab and closed-set is larger here, likely because SemanticKITTI is smaller and less diverse, so missing out on novel data hurts more, which Waymo’s method mitigates with the CLIP infusion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z49Feev0j0b6tIpFVrngDg.png" /><figcaption>Figure 8: Qualitative Results in SemanticKITTI Dataset (source: <a href="https://arxiv.org/pdf/2401.02402v3">https://arxiv.org/pdf/2401.02402v3</a>)</figcaption></figure><h4>How close to closed-set? What zero-shot tells us</h4><p>They also compare to a <strong>closed-set upper bound</strong> (a model trained on all classes). Of course, a fully supervised model still does best on what it’s trained on. Interestingly, Waymo’s method’s performance on base classes is quite close to that closed-set model (only a small drop in PQ). The big remaining gap is in the classification metric for novel classes — understandable, because even with CLIP, there’s still some confusion on completely unseen stuff. But it’s a huge improvement from the baseline, narrowing the open-vs-closed gap.</p><p>Another point of comparison: they evaluate a <strong>zero-shot 3D segmentation method called OpenScene</strong> (which uses CLIP without any 3D labels) on nuScenes. Waymo’s method, which does use training labels for base classes (“partial labels”), still <strong>significantly outperforms OpenScene</strong> in semantic segmentation accuracy. This isn’t a totally fair fight since OpenScene used no labels at all, but it shows that with a small amount of supervised help plus CLIP, we can do much better — combining learned 3D features and CLIP gives a boost over purely relying on CLIP features projected to 3D. It quantifies the value of those distillation losses and the training regime.</p><h4>Ablations: which parts matter most?</h4><p>They also conduct extensive <strong>ablation studies</strong> (removing or altering one component at a time) to confirm that each proposed piece matters. For example, they show that <strong>feature fusion</strong> (using both LiDAR and image features) improves novel thing segmentation significantly — meaning the learned LiDAR features are indeed complementary to CLIP features. Removing the <strong>object-level loss</strong> hurts novel thing PQ, and removing the <strong>voxel-level loss</strong> hurts novel stuff PQ the most. These ablations support their claims that both losses target different aspects (things vs stuff) and that having a unified classifier (single head) with those losses is better than the two-head ensemble baseline.</p><p>In numbers, while exact values aren’t quoted in the text, the improvement is described as “a large margin”. The baseline’s novel stuff PQ was nearly zero on nuScenes (since it “collapses”), and Waymo’s method raises it dramatically (the paper likely gives it in the 40–50 range PQ for novel stuff — a huge jump). Novel things, PQ also increases by double digits. Overall Panoptic Quality goes up significantly, bringing open-vocab performance much closer to traditional fully-supervised levels.</p><h4>Intuition takeaway</h4><p>To give an intuition: the car can now correctly detect and label, say, a <strong>“bicycle”</strong> or <strong>“traffic cone”</strong> on the road, even if those were novel (not in the base training set), whereas before it might not have. For stuff, if “terrain” (dirt/ground) was novel, the baseline might label it incorrectly as “road” or not label it at all, but Waymo’s model will recognize terrain as distinct because CLIP knew the visual difference between road and dirt. This can be crucial for understanding the scene (e.g., knowing where the drivable road ends and the off-road dirt begins).</p><h3>Practical Implications and Outlook for Autonomous Driving</h3><h4>Why this matters for on-road safety</h4><p>For autonomous vehicles, <strong>open-vocabulary 3D segmentation</strong> could be a game-changer in terms of safety and adaptability. In the real world, a self-driving car will inevitably encounter objects or scene classes that weren’t in its training data — from new construction equipment on the road, to foreign traffic signs, to unexpected obstacles (like an object dropped from a truck). A closed-set model might classify them all as “unknown” or, worse, confuse them with known classes (imagine mistaking a fallen <strong>tree</strong> for a static “pole” and not reacting in time). An open-vocabulary model addresses this by using a much richer descriptive power. If the concept exists in the language (and visual) prior to CLIP, the model can recognize it. For instance, it can say “that cluster of points looks like a <strong>deer</strong>” even if it was only trained on horses and cows, because CLIP has seen deer in images, and the shape/texture matches deer.</p><h4>Lowering the cost of adding new classes</h4><p>Another practical benefit is <strong>reducing the need for constant re-training or dataset expansion</strong>. Today, to add a new class to a perception system, you’d need to collect and label lots of examples of that class in LiDAR (time-consuming and expensive). With an open-vocab approach, the system can generalize to many classes at inference by just providing the name of the class (in text) and relying on CLIP’s learned representation. That makes the AV’s perception more scalable and future-proof — it’s closer to how humans adapt to new situations by leveraging prior knowledge. We can describe to a system “a <strong>scooter</strong> is like a small motorcycle,” and if CLIP has that context, the system might identify scooters without explicit scooter labels in LiDAR data.</p><h4>Remaining challenges: reliability &amp; vocabulary at test time</h4><p>There are still challenges to consider. The model’s performance, while much improved, still doesn’t match a fully supervised model on novel classes — so there might be edge cases where it’s unsure or slightly off (e.g., confusing two unseen classes that look similar). Ensuring reliability in those cases is important for safety. Also, the system currently assumes we know the names of novel classes we care about at test time (we feed the text embeddings for “bus”, “trash can”, etc.). This is a standard assumption in open-vocab setups (you have a vocabulary of interest), but in the <strong>open-world</strong> case, you might not even know what could appear. One could integrate a rejection or “unknown detection” mechanism — e.g., if no text embedding is similar enough, flag it as truly unknown.</p><h4>Broader outlook: multimodal foundation models for 3D</h4><p>From a broader perspective, this work is a compelling example of <strong>multimodal learning</strong> in robotics: it shows that <strong>language and vision priors can augment 3D understanding</strong>. We’re likely to see more of this cross-modal distillation approach, perhaps using even larger foundation models (imagine using GPT-4 style image-text models or diffusion models to guide 3D perception). For autonomous driving, it could mean the car’s AI has a built-in encyclopedic visual knowledge, enabling it to handle new situations more gracefully.</p><h3>Conclusion</h3><p>In conclusion, the paper demonstrates a novel approach to a hard problem — achieving <strong>3D panoptic segmentation beyond the training label set</strong>. By cleverly fusing LiDAR with a pre-trained vision-language model and using object- and voxel-level distillation, the authors significantly closed the gap between recognizing only what you’ve trained on and recognizing anything that’s visually distinctive. It’s a step toward more generalized 3D scene understanding, which is not only academically interesting but also practically vital for robots and vehicles operating in our complex, ever-changing world. The next time an autonomous car encounters a strange new object on the road, it just might know what to call it (and, more importantly, how to handle it), no manual retraining required!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f65b3e7d3cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/demistify/av-vol-4-3d-open-vocabulary-panoptic-segmentation-with-2d-3d-vision-language-distillation-waymo-0f65b3e7d3cc">[AV Vol. 4] 3D Open-Vocabulary Panoptic Segmentation with 2D–3D Vision-Language Distillation (Waymo…</a> was originally published in <a href="https://medium.com/demistify">deMISTify</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[AV Vol.3] BEVFusion: Unifying Vision in Autonomous Driving Systems]]></title>
            <link>https://medium.com/demistify/av-vol-3-bevfusion-unifying-vision-in-autonomous-driving-systems-b2190f877c9b?source=rss-f9b05f8858e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2190f877c9b</guid>
            <category><![CDATA[3d-deep-learning]]></category>
            <category><![CDATA[autonomous-vehicles]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[birds-eye-view]]></category>
            <dc:creator><![CDATA[Adam Roberge]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 21:30:27 GMT</pubDate>
            <atom:updated>2025-09-23T21:30:27.049Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How BEVFusion’s unified bird’s-eye perspective and multi-task learning approach are shaping the future of autonomous vehicle perception.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKBbYzR33urUBUEnfVOiQg.png" /><figcaption>BEVFusion: Multi-Task Multi-Sensor Fusion with Unified Bird’s-Eye View Representation (Source: <a href="https://github.com/mit-han-lab/bevfusion">https://github.com/mit-han-lab/bevfusion</a>)</figcaption></figure><h3>Introduction: Bridging Different Vision “Languages”</h3><p>Modern self-driving cars are equipped with numerous sensors. Waymo’s autonomous vehicles, for example, feature 29 cameras, 6 radars, and 5 LiDAR sensors. Each sensor is like a specialist speaking its own “language”: cameras deliver rich color and texture from a perspective view, LiDAR provides precise 3D distance measurements in a top-down 3D view, and radar adds velocity data. The challenge is that these sensors don’t naturally align; it’s as if one expert describes the world in 2D photographs while another uses 3D point clouds. Merging their outputs can feel like translating between two very different languages. If we naively project LiDAR’s 3D points onto a camera’s 2D image, we distort geometric distances, and projecting camera images into LiDAR’s space drops most of the rich visual detail. In other words, <strong>forcing one sensor’s perspective onto the other causes information loss</strong>, like a poor translation that drops nuance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_y0FltcJYasSg-n8" /><figcaption>Figure 1: RGB View vs. BEV View (Source: <a href="https://www.youtube.com/watch?v=5v9wa-UCFMM">https://www.youtube.com/watch?v=5v9wa-UCFMM</a>)</figcaption></figure><p>To truly “see” the whole picture, autonomous vehicles need a common ground where data from all sensors can combine without compromising each sensor’s strengths. This is where a <strong>bird’s-eye view (BEV)</strong> representation comes in. A bird’s-eye view means looking at the world from above (as if you’re a bird flying overhead). By converting sensor data into this top-down view, we give cameras and LiDAR a shared frame of reference. The <strong>BEVFusion</strong> approach embraces this idea, <strong>unifying camera and LiDAR features in the same BEV space, rather than forcing one into the other</strong>. In doing so, it <strong>preserves the camera’s dense semantic information <em>and</em> LiDAR’s precise geometry</strong>, avoiding the trade-offs that plagued earlier fusion methods. The result is a single “language” of perception that an autonomous car’s neural network can understand — one that speaks in both rich visuals and exact spatial terms simultaneously.</p><h3>Common Ground in Bird’s-Eye View</h3><p>By establishing a common viewpoint from above, BEVFusion tackles sensor fusion in a fundamentally new way. Instead of laboriously matching 2D pixels to 3D points (and losing a significant amount in the process), all sensor inputs are transformed into a unified, map-like view. This BEV map functions as a shared canvas, where each sensor contributes its piece of the puzzle without conflicting with the others. Early fusion attempts often tried a <em>“project one sensor into the other’s space”</em> approach — and as noted, they hit limits. For example, projecting camera features onto sparse LiDAR points meant that <strong>only ~5% of the image’s features found a LiDAR point to attach to</strong>, with the rest effectively thrown away. Conversely, projecting LiDAR into the camera view introduced geometric warping that hurt 3D object detection. BEVFusion avoids these pitfalls by <strong>choosing an independent, neutral ground (the BEV plane) where both sensor types can be represented fully</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_8Md09WuXMQV_VFO2iT-sg.png" /><figcaption>Figure 2: Challenges in Cross-Modal Projection: Mapping LiDAR to Camera loses 3D geometry as distant and close points may overlap in 2D, while mapping Camera to LiDAR loses semantic details due to incomplete point coverage. (Source: <a href="https://www.thinkautonomous.ai/blog/bev-fusion/">https://www.thinkautonomous.ai/blog/bev-fusion/</a>)</figcaption></figure><p>Crucially, BEVFusion performs <strong>fusion at the <em>feature</em> level, not the raw data level</strong>. This means the system doesn’t try to mix raw images with raw point clouds directly (which is hard); instead, it first lets each sensor’s data be processed into high-level features (patterns, edges, object cues, etc.) by specialized neural networks. Raw-level fusion is hard because image pixels live on a 2D perspective grid with unknown depth, while LiDAR samples are sparse, irregular 3D points — aligning them demands precise calibration, per-pixel depth estimates, and non-linear projections that create many-to-one/one-to-many correspondences and perspective distortion. <strong>Those features are then mapped onto the bird’s-eye grid and merged</strong>. By doing so, BEVFusion <strong>preserves both the “semantic density” of cameras (all those pixels of rich detail) and the “geometric structure” of LiDAR</strong> (the accurate distances and shapes). It’s a bit like two experts agreeing to collaborate in a shared language: neither has to fully give up their native knowledge, and the collaboration yields a more complete result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yJx63RxmbuRy0cMT" /><figcaption>Figure 3: Tesla’s HydraNet (Source: <a href="https://www.thinkautonomous.ai/blog/how-tesla-autopilot-works/">https://www.thinkautonomous.ai/blog/how-tesla-autopilot-works/</a>)</figcaption></figure><p>Another advantage of using a BEV representation is that it naturally supports <strong>multiple perception tasks at once</strong>. In an autonomous driving scenario, we don’t just want to detect objects; we also want to understand the drivable area, lane markings, and other semantic elements of the environment. On a bird’s-eye map, both object locations and semantic map layers can be learned together. BEVFusion takes full advantage of this by adopting a <strong>multi-task “HydraNet” design — one body of fused features feeding into multiple heads for different tasks</strong>. With a unified BEV view, <strong>a single network can simultaneously perform 3D object detection and BEV semantic segmentation (mapping out roads, crosswalks, etc.)</strong>, instead of having separate systems for each. This not only streamlines the perception pipeline (saving computation and time), but it also means the tasks can inform each other. For instance, detecting a vehicle and identifying the drivable road surface around it are accomplished in one coherent framework, likely improving consistency (the detected car will sit exactly on the road in the BEV map, as it should).</p><p>In summary, the bird’s-eye view provides the perfect <strong>“common ground”</strong> for sensor fusion in self-driving cars. It solves the modality mismatch by placing data in the same geometric space and enables <strong>multi-sensor, multi-task learning</strong> in one go. Now, let’s dive into how BEVFusion implements this, step by step.</p><h3>How BEVFusion Works: Key Stages of the Fusion Pipeline</h3><p>BEVFusion’s architecture can be broken down into a series of stages that take us from raw sensor data (multi-view RGB frames and a LiDAR point cloud) to a single, top-down world model. In plain terms, it first learns what each sensor “sees,” converts those learnings into the same bird’s-eye grid, blends them into one coherent BEV feature map, and finally decodes that map into boxes and road semantics the car can act on.</p><p>At a high level, the process is:</p><ol><li><strong>Encoders (per sensor)<br></strong> • Cameras → a CNN/ViT backbone turns images into 2D feature maps.<br> • LiDAR → a voxel/pillar backbone turns the point cloud into 3D/BEV features.</li><li><strong>View transformation to BEV<br></strong> • Camera features are “lifted” with per-pixel depth estimates and pooled onto the BEV grid.<br> • LiDAR features are collapsed along height to the same BEV grid.</li><li><strong>Fusion in BEV<br></strong> • Camera-BEV and LiDAR-BEV tensors are aligned cell-by-cell and concatenated channel-wise to form one fused map.</li><li><strong>BEV Encoder (refinement)<br></strong> • A lightweight stack of 2D convolutions/residual blocks mixes modalities, fixes small misalignments, and adds spatial context.</li><li><strong>Task heads (multi-task output)<br></strong> • 3D detection head (CenterPoint-style) predicts centers, sizes, orientation, and velocity.<br> • BEV segmentation head labels drivable space, crosswalks, lane dividers, etc.<br> • Additional heads (e.g., tracking, occupancy) can be attached to the same fused BEV.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BOwfLNTHi0lx0TfE" /><figcaption>Figure 4: BEVFusion Architecture (Source: <a href="https://www.themoonlight.io/en/review/unibevfusion-unified-radar-vision-bevfusion-for-3d-object-detection">https://www.themoonlight.io/en/review/unibevfusion-unified-radar-vision-bevfusion-for-3d-object-detection</a>)</figcaption></figure><h4>1. Encoders — Learning from Each Sensor Separately</h4><p>The first stage of BEVFusion involves running each sensor’s raw data through its encoder network to produce high-level feature maps. In essence, an encoder digests the input (images or point clouds) and outputs a set of learned features that highlight important structures (like edges, shapes, or other patterns relevant to detecting objects or free space). For the camera images, the encoder is typically a 2D convolutional neural network (CNN) — for example, a ResNet or VGG-style backbone can be used to extract visual features. CNNs are a natural choice here because they excel at handling images, capturing local textures and shapes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KmaVq9bBvgcXCKU1" /><figcaption>Figure 5: BEVFusion pipeline for multi-modal perception in autonomous driving (<a href="https://arxiv.org/pdf/2205.13542">https://arxiv.org/pdf/2205.13542</a>)</figcaption></figure><p>For the LiDAR sensor, the encoder is quite different, since the input is a 3D point cloud instead of a 2D image. One approach is using a network like PointNet++ that operates directly on point clouds, learning features from the 3D coordinates. Another approach (which BEVFusion uses) is to first convert the point cloud into a structured 3D grid via <em>voxelization</em> or <em>pillarization</em>, and then apply 3D or pseudo-3D convolutions. In simpler terms, the scattered LiDAR points are turned into a set of 3D pixels (voxels) or vertical columns (pillars), and a 3D CNN processes those to extract features. The BEVFusion authors tested several combinations of LiDAR encoders and ultimately used a pipeline involving voxelization/pillarization followed by CNN layers to get effective LiDAR features. By the end of this stage, we have two sets of feature maps: one from the camera, one from LiDAR. Each is tailored to its modality, encoding things like visual textures in the camera features and shape/distance cues in the LiDAR features.</p><h4>2. Bird’s-Eye View Transformation — Projecting Features to a Common Plane</h4><p>Once we have features from each sensor, the next step is to map those features into the bird’s-eye view coordinate frame. This is the core step that enables a unified representation. The transformation is done separately for camera and LiDAR features:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mPmzPE_NCBlFocu6" /><figcaption>Figure 6: Camera-to-BEV transformation (Source: <a href="https://arxiv.org/pdf/2205.13542">https://arxiv.org/pdf/2205.13542</a>)</figcaption></figure><ul><li><strong>Camera-to-BEV</strong>: For camera features, BEVFusion uses a technique called <strong>feature lifting</strong>. Imagine each pixel in the camera’s feature map now “sprouting” upwards into 3D space. The network predicts a depth distribution for each pixel — essentially estimating how far out in 3D that image feature might be. By doing this, the 2D features get lifted into 3D point features (like a cloud of feature points, where each carries the original image feature but is placed at some estimated height/distance). For example, a feature that corresponds to, say, a traffic light in the image will be projected out into 3D space at the likely location of that traffic light. Once all image features are lifted to 3D, we then perform BEV pooling: we aggregate these 3D feature points onto a fixed 2D grid representing the ground plane. Essentially, the area around the car is divided into a grid (the BEV map cells), and any lifted features that fall into the same cell are combined (e.g., by summing or averaging). This yields a top-down feature map for the camera, where each cell contains an aggregated representation of whatever the camera sensed at that location in the ground plane. It’s like mapping the camera image back into the 3D world and laying it onto the ground plane, creating a mosaic of features from above.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTh-UGYYSqROKTofG-2Scw.png" /><figcaption>Figure 7: The idea behind Feature Lifting (Source: <a href="https://www.thinkautonomous.ai/blog/bev-fusion/">https://www.thinkautonomous.ai/blog/bev-fusion/</a>)</figcaption></figure><ul><li><strong>LiDAR-to-BEV</strong>: LiDAR features start inherently in 3D space (since the LiDAR encoder produces features arranged in a 3D grid or point cloud). To get these into BEV, the operation is more straightforward: we collapse the features along the vertical (Z) axis, since for BEV, we only care about information in the horizontal plane. In practice, this might mean taking the max or sum of LiDAR features in each vertical column, ending up with a 2D grid of LiDAR feature cells on the ground plane. Because LiDAR directly measures 3D structure, this step doesn’t require an explicit depth guess like the cameras needed; it’s more about formatting the data into the same type of grid. After this, we have a camera BEV feature map and a LiDAR BEV feature map, both aligned to the same geographic coordinate system (meters in the real world, typically).</li></ul><p>At this point, it’s worth reflecting on how much has been achieved. The system has effectively taken a 2D image and a 3D point cloud and converted both into compatible “maps”. Any given cell in these BEV maps corresponds to, say, “the region 5–6 meters ahead of the car and 2–3 meters to the left,” and both the camera-derived features and LiDAR-derived features for that location are now references to the same spot in the world. This common positioning lays the groundwork for an easy fusion next.</p><h4>3. Fusion — Merging Modalities on the BEV Grid</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pgHei4XAAGJf_uL2" /><figcaption>Figure 8: BEVFusion unifies camera and LiDAR features in a shared BEV space instead of mapping one modality to the other (Source: <a href="https://arxiv.org/pdf/2205.13542">https://arxiv.org/pdf/2205.13542</a>)</figcaption></figure><p>With both camera and LiDAR feature maps in the BEV format, fusing them becomes simple. Now that each is an “image” of the same ground plane, the fusion is a matter of laying one on top of the other and combining. BEVFusion’s fusion step is done by concatenation: for each cell in the BEV grid, take the feature vector from the camera map and the feature vector from the LiDAR map and join them into one longer feature vector. In code, this might look as simple as torch.cat(camera_features, lidar_features) — effectively stacking the two feature maps channel-wise.</p><p>This straightforward fusion is powerful because by the time we concatenate, the heavy lifting (aligning coordinates and preserving info) has already been handled. There’s no need for complex recalibration or iterative matching; each fused BEV cell [i, j] contains a joint feature that combines camera textural cues with LiDAR geometry. For example, if the camera features indicate a certain color/texture consistent with a pedestrian and the LiDAR features indicate an upright small object at that spot, the fused representation for that cell will encode both cues, making it easier for the network to ultimately classify it as a pedestrian.</p><p>Another benefit of this design is extensibility: because everything is unified on the BEV grid, additional sensors can be integrated the same way. Radar, extra cameras, or even future modalities can be encoded, projected to BEV, and concatenated alongside the existing features. BEVFusion’s fusion stage isn’t hard-coded to “camera + LiDAR”; it’s a generic, BEV-space multi-modal pipeline that readily accommodates new inputs to enrich perception.</p><h4>4. BEV Encoder — Refining the Fused Representation</h4><p>After concatenation, we obtain a fused BEV feature map from all sensors, but small inconsistencies can remain (e.g., camera depth errors or sparse LiDAR coverage). BEVFusion addresses this with a BEV Encoder: a convolutional network with residual blocks that operates on the top-down map to refine the fusion. It smooths differences and learns composite features that truly mix camera semantics with LiDAR geometry. For instance, when a camera edge and LiDAR points are slightly offset, the encoder’s filters learn to reconcile them during training, improving downstream detection and segmentation. The stage is fully convolutional and learned without hand-crafted alignment rules, so the representation is fine-tuned into a coherent, robust BEV before the task heads. Choosing convolutions over heavy transformers also preserves real-time efficiency: CNNs exploit local BEV structure and run efficiently on GPUs for large grids. Together with the paper’s efficient BEV operations (including the fast view transform), this keeps latency within AV budgets.</p><h4>5. Multi-Task Heads — Detecting Objects and Segmenting the Scene</h4><p>With a refined BEV feature map, BEVFusion branches into task-specific heads to produce human-interpretable outputs: 3D object detections and a semantic BEV map. The design is HydraNet-style — one trunk, multiple heads, so the same fused representation supports both predictions efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NAAJeVVEh1QH0ARh" /><figcaption>Figure 9: Multi-Sensor Integration of Camera, LiDAR, and Radar for Bird’s-Eye-View 3D Perception (Source: <a href="https://www.youtube.com/watch?v=5v9wa-UCFMM">https://www.youtube.com/watch?v=5v9wa-UCFMM</a>)</figcaption></figure><ul><li><strong>3D Object Detection Head</strong>: BEVFusion adopts a CenterPoint-style head that finds object centers on the BEV plane and regresses full 3D boxes (dimensions, orientation, velocity). Plugging this proven head atop fused features avoids reinventing the wheel: for each location, the head leverages combined camera semantics and LiDAR geometry to localize and size vehicles, pedestrians, and more with higher confidence.</li><li><strong>BEV Segmentation Head</strong>: This head labels the ground plane by BEV cell — drivable space, pedestrian crossing, walkway, stop line, parking area, lane divider, and related classes — producing a planner-ready map. Unlike front-view segmentation, the result is a top-down layout that directly indicates where the car can and cannot go. Because both heads read the same fused features, predictions are naturally consistent (e.g., detected cars sit on drivable regions, not sidewalks).</li></ul><p>Using two heads on one backbone departs from older split pipelines and brings two advantages: efficiency (one shared trunk instead of separate models) and multi-task synergy. Joint training encourages detections and the semantic map to cohere, improving overall scene understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WywJvtP3ygNTwjbr" /><figcaption>Figure 10: Unified Perception Output (Source: <a href="https://www.youtube.com/watch?v=5v9wa-UCFMM">https://www.youtube.com/watch?v=5v9wa-UCFMM</a>)</figcaption></figure><h3>Performance and Impact on Autonomous Driving</h3><p>BEVFusion isn’t just an academic exercise — it has proven its value with record-setting performance on real-world autonomous driving benchmarks. On the demanding nuScenes dataset, BEVFusion established a new state of the art across multiple metrics. For 3D object detection, it achieved the #1 leaderboard ranking, with mAP/NDS about 1.3% higher than the previous best (see Figure 11). Its advantage is even clearer in BEV map segmentation: +13.6% IoU over LiDAR-only and ~+6% over camera-only models. Earlier fusion methods often struggled or skipped this task, whereas BEVFusion excelled (illustrated by the class-wise gains in Figure 11). The takeaway is simple: combining camera semantics with LiDAR geometry doesn’t just boost detection — it’s practically essential for robust scene mapping in complex scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JacIz9JOVOcCL3yG" /><figcaption>Figure 11: 3D object detection — BEVFusion achieves &gt;1.3% higher mAP and NDS with 1.5~2x lower computational cost (Source: <a href="https://www.youtube.com/watch?v=5v9wa-UCFMM">https://www.youtube.com/watch?v=5v9wa-UCFMM</a>)</figcaption></figure><p>What’s equally important is that these gains don’t come with a heavy efficiency tax. Thanks to a fast, exact camera-to-BEV pooling kernel and a fully convolutional design, BEVFusion reports ~1.9× lower compute than prior fusion approaches, after eliminating the main bottleneck in view transformation (&gt;40× speedup). The result is a model that’s realistic for real-time autonomous vehicle use, not just leaderboard demos (efficiency and latency are summarized in Figure 11).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q6RjULySdpGQtvSX" /><figcaption>Figure 12: 3D object detection — BEVFusion brings larger improvements to the LiDAR-only detector for small and distant objects (Source: <a href="https://www.youtube.com/watch?v=5v9wa-UCFMM">https://www.youtube.com/watch?v=5v9wa-UCFMM</a>)</figcaption></figure><p>Beyond raw numbers, BEVFusion is a conceptual shift — it changes where fusion happens. Point-level fusion adds image cues to each LiDAR point or voxel, which wastes most pixels and ignores much background. Proposal-level fusion merges after generating 3D box candidates, which helps detection but doesn’t build a full scene map and can miss small or far objects. BEVFusion instead fuses on a dense bird’s-eye grid covering the whole scene, so every pixel and LiDAR return contributes, improving small/far cases and enabling map semantics (see Figure 12). This template is already inspiring hybrids that add light transformer context on top of efficient BEV CNNs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F_zaoZzPu8OUKhYw" /><figcaption>Figure 13: BEV map segmentation — BEVFusion outperforms the state-of-the-art fusion methods by 13.6% mIoU (Source: <a href="https://www.youtube.com/watch?v=5v9wa-UCFMM">https://www.youtube.com/watch?v=5v9wa-UCFMM</a>)</figcaption></figure><p>Industry momentum echoes the trend. Production-minded stacks are increasingly transforming multi-sensor inputs into a unified BEV for planning, and several companies publicly describe using BEV-style egocentric maps as a core interface. BEVFusion validates that direction and extends it cleanly to true multi-sensor fusion — camera and LiDAR working together in a single, planner-ready view (with segmentation quality reflected in Figure 13).</p><h3><strong>Conclusion and Outlook</strong></h3><p>BEVFusion has shown that <strong>when it comes to perceiving the world, two (or more) “eyes” are better than one — especially if they can share a common view</strong>. By uniting camera and LiDAR data in the bird’s-eye view, this approach achieves results that neither modality could accomplish alone, all while keeping the system efficient and versatile. For autonomous vehicles, this means a more reliable understanding of the environment: cars that can not only detect other agents with high accuracy but also comprehend the scene’s layout (road versus sidewalk, etc.) in the same breath. The ripple effects of this are significant. A richer perception system feeds into better decision-making — for example, a car that knows the precise drivable surface and spots a new obstacle can plan a safer detour.</p><p><strong>Key takeaways</strong> include:</p><ul><li><em>Common Reference Frame:</em> Converting multi-sensor data to a shared BEV space preserves each sensor’s strengths and avoids the information loss of direct sensor-to-sensor projections.</li><li><em>Multi-Task Efficiency:</em> A single fused model can handle detection and segmentation together, improving consistency and reducing the need for separate modules.</li><li><em>State-of-the-Art Results:</em> BEVFusion’s fusion strategy delivered top performance on challenging benchmarks, substantially improving 3D detection and especially BEV segmentation accuracy.</li><li><em>Real-Time Ready:</em> Through optimized operations and a convolutional design, the approach runs quickly (addressing prior bottlenecks) with reduced latency, making it viable for actual driving systems.</li><li><em>Inspiration for Next Gen:</em> This work is influencing both academic research (e.g., hybrid models adding transformers) and industry practice (major AV companies adopting BEV-centric sensor fusion).</li></ul><p>Looking ahead, expect richer stacks that plug in more sensors (radar, ultrasonics, GNSS) to the same BEV canvas, extend BEVFusion over time for motion-aware “4D” understanding, and couple perception directly with prediction and planning in the same coordinate space. In short, choosing the right representation matters: by getting cameras and LiDAR to see eye-to-eye from above, BEVFusion delivers a stronger, more dependable vision core — an approach poised to become a cornerstone of autonomous driving.</p><p>In conclusion, BEVFusion demonstrates the power of finding the right representation. By getting cameras and LiDAR to <strong>see eye-to-eye (from a bird’s-eye perspective)</strong>, it unlocks a richer, more reliable form of machine vision for self-driving cars. It’s a compelling example of how bringing different technologies together — when done thoughtfully — can yield results greater than the sum of their parts. As autonomous vehicles continue to evolve, approaches like BEVFusion are likely to be a cornerstone of their “brains,” ensuring that these vehicles perceive the world with unprecedented clarity and confidence.</p><h3>References</h3><p>BEVFusion: Multi-Task Multi-Sensor Fusion with Unified Bird’s-Eye View Representation. <em>arXiv</em>, 26 May 2022, <a href="https://arxiv.org/pdf/2205.13542">https://arxiv.org/pdf/2205.13542</a>.</p><p>Han, Song, et al. “BEVFusion: Multi-Task Multi-Sensor Fusion with Unified Bird’s-Eye View Representation.” <em>YouTube</em>, uploaded by MIT Han Lab, 14 Sept. 2022, <a href="https://www.youtube.com/watch?v=5v9wa-UCFMM">https://www.youtube.com/watch?v=5v9wa-UCFMM</a>.</p><p>“BEV Fusion: The New Paradigm for Autonomous Driving Perception.” <em>ThinkAutonomous</em>, 23 Sept. 2022, <a href="https://www.thinkautonomous.ai/blog/bev-fusion/">https://www.thinkautonomous.ai/blog/bev-fusion/</a>.</p><p>Liu, Zengyi, et al. “BEVFusion: Multi-Task Multi-Sensor Fusion with Unified Bird’s-Eye View Representation.” <em>ar5iv</em>, 27 May 2022, <a href="https://ar5iv.labs.arxiv.org/html/2205.13790">https://ar5iv.labs.arxiv.org/html/2205.13790</a>.</p><p>“UniBEVFusion: Unified Radar-Vision BEVFusion for 3D Object Detection.” <em>The Moonlight</em>, 2024, <a href="https://www.themoonlight.io/en/review/unibevfusion-unified-radar-vision-bevfusion-for-3d-object-detection">https://www.themoonlight.io/en/review/unibevfusion-unified-radar-vision-bevfusion-for-3d-object-detection</a>.</p><p>Yin, Tianwei, et al. <em>CenterPoint: 3D Object Detection and Tracking Using Center-Based Representations.</em> 2022, ar5iv.labs.arxiv.org/html/2205.13790.</p><p>Gu, Jianyuan, et al. <em>BEVFusion: Multi-Task Multi-Sensor Fusion with Unified Bird’s-Eye View Representation (Supplementary Material).</em> arXiv, 2022, doi:10.48550/arXiv.2205.13542.</p><p>Liang, Ming, et al. <em>Multi-Task Multi-Sensor Fusion for 3D Detection and Segmentation.</em> <em>IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</em>, 2022, doi:10.1109/CVPR52688.2022.01476.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2190f877c9b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/demistify/av-vol-3-bevfusion-unifying-vision-in-autonomous-driving-systems-b2190f877c9b">[AV Vol.3] BEVFusion: Unifying Vision in Autonomous Driving Systems</a> was originally published in <a href="https://medium.com/demistify">deMISTify</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[AV Vol.2] YOLO11: Elevating Real-Time Object Detection for Autonomous Vehicles]]></title>
            <link>https://medium.com/demistify/av-vol-2-yolo11-elevating-real-time-object-detection-for-autonomous-vehicles-d544072a410e?source=rss-f9b05f8858e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d544072a410e</guid>
            <category><![CDATA[yolov11]]></category>
            <category><![CDATA[autonomous-vehicles]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Adam Roberge]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 20:22:33 GMT</pubDate>
            <atom:updated>2025-01-29T20:22:33.955Z</atom:updated>
            <content:encoded><![CDATA[<p>How YOLO11’s Cutting-Edge Innovations in Speed, Accuracy, and Versatility Are Shaping the Future of Autonomous Driving Systems</p><p><strong>You might recall how The Lonely Island, Adam Levine, and Kendrick Lamar once turned ‘YOLO’ into a punchline — warning us, tongue-in-cheek, to live life cautiously — yet in the world of autonomous vehicles, ‘YOLO’ takes on a whole new level of seriousness.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*1vANCP5CneKSZuofvuh8TA.gif" /><figcaption>YOLO (feat. Adam Levine &amp; Kendrick Lamar) — The Lonely Island (Source: <a href="https://www.youtube.com/watch?v=z5Otla5157c">https://www.youtube.com/watch?v=z5Otla5157c</a>)</figcaption></figure><p>Welcome to our deep dive into the evolution of YOLO, from its early days as a fast, single-shot object detector to its latest form, YOLO11. In this article, we’ll unravel how YOLO11 pushes the boundaries of real-time perception in self-driving cars, tackling the ever-present challenges of accuracy, speed, and reliability. Buckle up: it’s not just about “you only live once,” but about how one model is poised to transform the future of autonomous transportation.</p><h3><strong>Introduction: The Importance of Object Detection in Autonomous Vehicles</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*2mCDJbxLqeGldNCrTuXxvQ.png" /><figcaption>Figure 1: Object detection of a traffic image (source: <a href="https://itsjb13.medium.com/building-an-advanced-object-detection-application-for-autonomous-vehicles-yolov7-intel-pytorch-478ee5cedd39)">https://itsjb13.medium.com/building-an-advanced-object-detection-application-for-autonomous-vehicles-yolov7-intel-pytorch-478ee5cedd39)</a></figcaption></figure><p>Object detection is the backbone of autonomous driving, allowing vehicles to locate and classify objects like pedestrians, cars, and traffic signs in real-time. Unlike early, multi-stage detectors that struggled with speed, “You Only Look Once” (YOLO) revolutionized the field by merging region proposal and classification into a single network pass. This streamlined, one-shot approach made real-time detection feasible on mainstream hardware — critical for autonomous vehicles that must quickly process rapidly changing scenes, handle multiple object categories, and tackle partial occlusions.</p><p>In this article, we’ll briefly trace YOLO’s evolution — starting from its pioneering one-shot design — before delving into how these advancements culminate in the newest model, YOLO11. We’ll look at architectural improvements, compare performance metrics, and discuss the real-world relevance of YOLO’s rapid, reliable detection within self-driving systems.</p><h3><strong>Evolution of YOLO: From the Original YOLO to YOLOv8</strong></h3><h4><strong>Original YOLO Concept</strong></h4><p>The original <strong>“You Only Look Once” (YOLO)</strong> model introduced a radical shift away from traditional two-stage detectors like Faster R-CNN. In two-stage methods such as R-CNN (Region-based Convolutional Neural Network), the model first generates <strong>region proposals</strong> — potential areas in the image that might contain objects. These proposals are then processed individually to refine bounding boxes and classify objects, making the process computationally intensive and slower for real-time applications.</p><p>YOLO simplified this pipeline by eliminating the need for region proposals. Instead, it tackled <strong>bounding box regression and object classification in a single network pass</strong>, where the entire image is divided into a grid, and each grid cell predicts bounding boxes and their associated probabilities. This one-shot strategy drastically reduced computational overhead, enabling near real-time inference. Moreover, YOLO’s efficiency allowed object detection to run on modest hardware — an essential advantage for resource-constrained applications like autonomous vehicles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*YffOy-pEj54ZDtwOcXhvZg.jpeg" /><figcaption>Figure 2: Original YOLO architecture (source: <a href="https://www.datacamp.com/blog/yolo-object-detection-explained)">https://www.datacamp.com/blog/yolo-object-detection-explained)</a></figcaption></figure><h4><strong>Major Milestones: YOLOv2, YOLOv3, YOLOv4, etc.</strong></h4><p>Subsequent versions of YOLO refined both speed and accuracy. YOLOv2 introduced batch normalization and multi-scale training, YOLOv3 implemented multi-level feature maps for detecting objects at different scales, and YOLOv4 further improved the backbone with CSP (Cross Stage Partial) connections and novel data augmentation techniques. Each iteration is built upon the one-shot detection philosophy, progressively striking a better balance between real-time performance and detection quality.</p><h4><strong>YOLOv5 to YOLOv8</strong></h4><p>Although not directly maintained by the original authors, YOLOv5 through YOLOv8 continued the YOLO tradition under various development teams. These releases introduced anchor-free detection heads, advanced augmentations (e.g., mosaic, mixup), and deeper backbones — often inspired by high-performing convolutional designs. YOLOv8, in particular, showcased improved network scalability across small, medium, and large model variants, giving practitioners a fine-grained trade-off between speed and accuracy for diverse industrial and research scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rIY1WyGRxjVf_PkAuSD-A.jpeg" /><figcaption>Figure3: YOLOv5 architecture (source: <a href="https://github.com/ultralytics/yolov5/issues/280)">https://github.com/ultralytics/yolov5/issues/280)</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XP2HCOm8uVg4v7RUd01Ofg.png" /><figcaption>Figure4: YOLOv8 architecture (source: <a href="https://abintimilsina.medium.com/yolov8-architecture-explained-a5e90a560ce5)">https://abintimilsina.medium.com/yolov8-architecture-explained-a5e90a560ce5)</a></figcaption></figure><h3><strong>From YOLOv8 to YOLOv10 &amp; YOLO11: What Changed?</strong></h3><p>Building on the advancements of YOLOv8, <strong>YOLOv9, </strong>and<strong> YOLOv10</strong> continued to refine real-time object detection through better backbone architectures, refined training strategies, and enhancements such as NMS-free (Non-Max Suppression–free) training. Although less extensively documented than earlier releases, these iterations typically introduced incremental improvements like refined feature fusion, self-attention blocks, and more robust data augmentation. The emphasis remained on striking a careful balance between inference speed and accuracy, crucial for time-sensitive applications like autonomous vehicles and industrial automation.</p><p><strong>YOLO11</strong>, unveiled at the <strong>YOLO Vision 2024 (YV24)</strong> conference, represents a significant leap in performance and flexibility. It retains the hallmark one-shot detection philosophy while introducing advanced modules like the <strong>C3k2 block</strong>, <strong>SPPF (Spatial Pyramid Pooling — Fast)</strong>, and <strong>C2PSA (Cross Stage Partial with Parallel Spatial Attention)</strong>. These innovations enhance feature extraction, spatial awareness, and the model’s ability to handle complex detection scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*E80ISoj13coSx0vz" /><figcaption>Figure5: Spatial Pyramid Pooling (SPP) Example (Source:<a href="https://paperswithcode.com/method/spatial-pyramid-pooling">https://paperswithcode.com/method/spatial-pyramid-pooling</a>)</figcaption></figure><p>Beyond traditional object detection, YOLO11 expands its capabilities to include <strong>instance segmentation</strong>, <strong>pose estimation</strong>, and <strong>oriented bounding box (OBB)</strong> detection. This evolution marks its transition from a specialized object detector to a versatile vision framework capable of tackling diverse real-world tasks. Despite these expanded capabilities, YOLO11 maintains its hallmark real-time inference speeds, ensuring practicality in high-demand applications like autonomous vehicles.</p><p>Overall, YOLO11 refines the YOLO family’s blueprint by optimizing efficiency, enhancing spatial attention, and enabling multi-task versatility. These advancements push the boundaries of fast, accurate, and adaptive computer vision solutions, setting the stage for a new era in detection technology. In the next section, we’ll explore the <strong>C3k2 block</strong>, <strong>SPPF</strong>, and <strong>C2PSA</strong> in detail to understand their role in YOLO11’s enhanced performance.</p><h3><strong>4. Under the Hood: Technical Details of YOLO11</strong></h3><h4><strong>Architectural Breakdowns</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ji839hfDADeiTwf8" /><figcaption>Figure6: YOLO11 architecture (Source: <a href="https://arxiv.org/html/2410.17725v1)">https://arxiv.org/html/2410.17725v1)</a></figcaption></figure><p>At its core, YOLO11 preserves the traditional three-component structure — <strong>backbone</strong>, <strong>neck</strong>, and <strong>head</strong> — but introduces several key innovations for improved efficiency. The <strong>backbone</strong> features the novel <strong>C3k2 block</strong>, a leaner variant of CSP (Cross Stage Partial) bottlenecks that uses two smaller convolutions instead of a single large kernel. This design reduces computational load without sacrificing feature richness. Additionally, YOLO11 integrates <strong>SPPF</strong> (Spatial Pyramid Pooling — Fast) to capture multi-scale context more effectively, as well as <strong>C2PSA</strong> (Cross Stage Partial with Parallel Spatial Attention) to heighten focus on crucial regions.</p><p>The <strong>neck</strong> adopts an upgraded feature-fusion strategy reminiscent of BiFPN or PANet-like architectures. Through upsampling and concatenation of feature maps at multiple scales, YOLO11 combines both high-level contextual information and low-level detail. Introducing the C3k2 block within the neck further strengthens this aggregation, boosting performance in scenes with objects of varied sizes.</p><p>Meanwhile, the <strong>head</strong> is designed to accommodate anchor-based or anchor-free detection. Multi-scale or multi-head prediction can be employed depending on the target task — object detection, instance segmentation, or oriented object detection (OBB). This modular approach streamlines integration with specialized tasks like pose estimation, allowing each prediction branch to focus on different outputs (e.g., bounding boxes vs. keypoints).</p><h4><strong>Training and Optimization</strong></h4><p><strong>YOLO11</strong> introduces significant improvements in training and optimization compared to its predecessors, leveraging advanced loss functions like <strong>CIoU (Complete Intersection over Union)</strong> and <strong>EIoU (Enhanced IoU)</strong>. While earlier YOLO models relied on simpler metrics like MSE or IoU for bounding-box regression, these approaches often failed to account for box alignment and aspect ratio. CIoU, introduced in YOLOv5 and refined in YOLOv8, penalized misaligned centers and aspect ratios, significantly improving localization. YOLO11 takes this further with EIoU, which directly penalizes mismatched width and height, ensuring more precise box alignment, especially in challenging scenarios like detecting small or overlapping objects. This enhancement leads to a more stable gradient flow and faster convergence during training.</p><p>In addition to its advanced loss functions, YOLO11 refines data augmentation and optimization strategies. Building on techniques like Mosaic and MixUp from YOLOv4 and YOLOv5, YOLO11 incorporates <strong>random affine transformations</strong> (e.g., rotations, shears, and translations), simulating real-world distortions to improve robustness across diverse environments. To accelerate training and prevent overfitting, YOLO11 employs dynamic learning rate schedulers like <strong>OneCycle</strong> and <strong>Cosine Annealing</strong>, which adaptively fine-tune learning rates for faster convergence and improved generalization. These combined innovations ensure that YOLO11 achieves state-of-the-art performance while maintaining the efficiency and versatility expected from the YOLO family.</p><h4><strong>Performance Benchmarks</strong></h4><p>Behind the streamlined name, YOLO11 delivers a <strong>significant leap</strong> in real-time detection. The table below compares YOLO11 variants (nano to xlarge) on the COCO dataset (80 classes) against popular baselines (e.g., YOLOv8, YOLOv5). Notably, <strong>YOLO11</strong> shows strong improvements in mean Average Precision (mAP) and reduced inference times, even when model size and FLOPs are taken into account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*UvW1Lxw22PXnRC0Q" /><figcaption>Figure7: YOLO11 performance metrics (source: <a href="https://docs.ultralytics.com/models/yolo11/#overview)">https://docs.ultralytics.com/models/yolo11/#overview)</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*YnJi7hfxECf91Lvk" /><figcaption>Figure8: YOLOv8 performance metrics (source: <a href="https://docs.ultralytics.com/models/yolov8/#supported-tasks-and-modes)">https://docs.ultralytics.com/models/yolov8/#supported-tasks-and-modes)</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*efp1Ko7GulrbwBCB" /><figcaption>Figure9: YOLOv5 performance metrics (source: <a href="https://docs.ultralytics.com/models/yolov5/#performance-metrics">https://docs.ultralytics.com/models/yolov5/#performance-metrics</a>)</figcaption></figure><p>Several trends emerge:</p><ol><li><strong>Stronger mAP at Comparable Model Sizes: YOLO11m</strong> not only surpasses YOLOv8m in mAP (51.5 vs. 50.2) but also uses about 22% fewer parameters (20.1M vs. 25.9M), making it both <strong>lighter</strong> and <strong>more accurate</strong>.</li><li><strong>Faster Inference for Real-Time Applications: </strong>Across CPU ONNX and GPU TensorRT tests, YOLO11 variants consistently demonstrate <strong>lower latency</strong> than their YOLOv8/YOLOv5 counterparts — crucial for time-sensitive tasks such as autonomous driving or live surveillance.</li><li><strong>Broad Scalability: </strong>From <strong>YOLO11n</strong> (2.6M parameters) to <strong>YOLO11x</strong> (56.9M parameters), this generation scales effectively without excessively compromising speed. Smaller models like YOLO11n offer <strong>high FPS</strong> on edge devices, while larger versions deliver state-of-the-art accuracy on more powerful hardware.</li></ol><p>What’s more, internal comparisons indicate YOLO11 is approximately <strong>2% faster</strong> than YOLOv10 at similar model tiers — an essential edge for <strong>embedded and real-time systems</strong> where hardware resources are often constrained. Edge devices, such as IoT cameras or autonomous vehicle controllers, typically operate with limited computational power, memory, and energy budgets. Even small improvements in inference speed can make a significant difference in these scenarios, enabling real-time performance while <strong>minimizing latency</strong>. This efficiency ensures that YOLO11 can deliver state-of-the-art results without requiring expensive or power-hungry hardware, making it ideal for deployment in resource-constrained environments.</p><p>In summary, YOLO11’s architectural innovations — C3k2 blocks, SPPF, and C2PSA — combined with carefully engineered training strategies and loss functions, position it at the forefront of real-time object detection. This comprehensive approach enables seamless adaptability across a wide range of computer vision tasks, from straightforward object detection to more specialized applications like oriented bounding box detection and instance segmentation.</p><h3><strong>5. YOLO11 in Autonomous Vehicle Systems</strong></h3><h4><strong>Why Real-Time Matters</strong></h4><p>In autonomous driving, timely and accurate object detection can be the difference between a smooth journey and a life-threatening collision. Vehicles moving at highway speeds have only fractions of a second to identify and respond to oncoming obstacles. As a single-shot detector, YOLO11 excels at real-time inference, delivering bounding box predictions with minimal latency. This rapid detection capability enhances situational awareness, enabling control systems to quickly apply emergency braking or steering maneuvers. By maximizing detection speed, YOLO11 also helps reduce overall processing overhead, freeing resources for other critical tasks like path planning and sensor fusion.</p><h4><strong>Integration with Other AV Sensors</strong></h4><p>Most autonomous vehicles use multiple sensors — cameras, LiDAR, and RADAR — to obtain a comprehensive view of their surroundings. While LiDAR and RADAR offer depth and velocity estimates, they often lack the rich visual detail provided by cameras. YOLO11 fills that gap through reliable 2D object detection, identifying cars, pedestrians, or signs in a fraction of a second. When paired with LiDAR’s 3D bounding boxes or RADAR’s speed profiles, YOLO11’s outputs can refine the overall perception pipeline. This fusion of sensors helps AV systems differentiate between static and moving objects, gauge distances accurately, and operate effectively in cluttered or dynamic environments.</p><h4><strong>Handling Edge Cases in Driving Environments</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*UbQPNQmN0edVVu8t" /><figcaption>Figure10: Object detection in rainy conditions (source: <a href="https://link.springer.com/chapter/10.1007/978-981-97-0744-7_4">https://link.springer.com/chapter/10.1007/978-981-97-0744-7_4</a>)</figcaption></figure><p>Real-world driving presents countless challenges: low-light conditions, heavy rain, snow, or urban environments where objects overlap. YOLO11’s enhanced backbone (featuring C3k2 blocks and spatial attention mechanisms) improves its ability to detect partially occluded or small objects such as traffic signs or distant pedestrians. Moreover, the network’s higher mean Average Precision (mAP) in difficult scenarios translates into fewer false negatives — crucial for preventing missed detections in inclement weather or at night. By maintaining robust performance across edge cases, YOLO11 helps autonomous vehicles stay more reliable under changing and unpredictable road conditions.</p><p><strong>Case Study: YOLO11 on an AV Platform</strong></p><p>Imagine an electric shuttle outfitted with a front-facing camera pipeline. As it navigates urban roads, each incoming video frame is immediately fed into a YOLO11 model running on an embedded GPU. Within milliseconds, YOLO11 identifies nearby cars, bicycles, and pedestrians, assigning probabilities and bounding boxes. The perception software then fuses these detections with LiDAR depth data, estimating the position and speed of each object. If a pedestrian suddenly steps off the curb, YOLO11’s rapid inference ensures the shuttle can trigger a braking command in near real-time, minimizing collision risk. This tight feedback loop — from camera capture to YOLO11 detection to AV decision-making — demonstrates how high-speed object detection underpins safe and efficient self-driving systems.</p><h3><strong>6. Future Trends and Prospects</strong></h3><h4><strong>Emerging Research Directions</strong></h4><p>Although YOLO11 brings clear advancements, several <strong>frontier areas</strong> stand poised to shape the model’s next iterations:</p><ol><li><strong>Transformer-Based YOLO<br></strong>Future YOLO versions may adopt transformer layers for improved long-range dependency handling, a critical edge for scenes with dense or overlapping objects. Such architectures could further refine feature extraction and potentially yield even higher detection accuracy in cluttered AV environments.</li><li><strong>Self-Supervised and Foundation Models<br></strong>As large-scale foundation models become more prevalent, integrating self-supervised pretraining into YOLO’s pipeline could substantially boost feature generalization. This shift would help the model adapt more seamlessly across various geographies, climates, and lighting conditions — enhancing transferability and reducing the amount of labeled data required.</li></ol><h4><strong>Challenges to Overcome</strong></h4><p>Despite considerable progress, several <strong>hurdles</strong> remain:</p><ol><li><strong>Domain Shifts<br></strong>Weather changes, regional differences in traffic, or even seasonal lighting variations can degrade detection accuracy if the model is not carefully adapted. Handling these shifts will require robust domain adaptation techniques, potentially combined with continual learning.</li><li><strong>Very Large-Scale Datasets<br></strong>As autonomous vehicle fleets grow, so do the datasets. Efficiently training YOLO on millions (or billions) of frames without overfitting or incurring prohibitive compute costs is a non-trivial challenge. Future research may explore distributed training paradigms or compression methods to make large-scale training more feasible.</li></ol><p><strong>Long-Term Impact</strong></p><p>Looking ahead, we can expect <strong>fully integrated</strong> AV pipelines where a single model detects, segments, and even plans routes — reducing handoff errors between multiple specialized modules. In broader robotics and computer vision, YOLO’s continued evolution exemplifies the move toward <strong>lightweight, real-time</strong> architectures, potentially revolutionizing applications like drone navigation, warehouse automation, and augmented reality.</p><h3><strong>7. Conclusion</strong></h3><h4><strong>Key Takeaways</strong></h4><p>Throughout its evolution, <strong>YOLO</strong> has redefined what real-time object detection can achieve, and <strong>YOLO11</strong> raises the bar yet again. The one-shot philosophy remains central, delivering <strong>fast</strong> and <strong>accurate</strong> detections crucial for modern AV systems, while new features — like the C3k2 block and C2PSA — enhance robustness across a range of tasks and environmental conditions.</p><p>For <strong>next-generation autonomous driving</strong>, YOLO11’s improvements in handling small objects, low-light scenes, and partial occlusions directly translate into safer, more reliable navigation. As sensor fusion and real-time decisions become increasingly important, YOLO11 stands out as a versatile detector that meets both <strong>accuracy</strong> and <strong>speed</strong> requirements.</p><h4><strong>Looking Ahead</strong></h4><p>The YOLO ecosystem is <strong>community-driven</strong>, with open-source frameworks (e.g., Ultralytics) and research institutions continuously refining the codebase. Active collaboration between academia and industry — spanning automotive giants, AI startups, and robotics labs — ensures YOLO remains at the forefront of computer vision innovation. As real-world challenges demand ever-faster and more adaptive perception, YOLO’s evolutionary journey promises to remain a key contributor to the cutting edge of autonomous vehicle technology.</p><h3>REFERENCES</h3><h4>YOLO Series Official Repos:</h4><ul><li><a href="https://docs.ultralytics.com/models/yolov5/">YOLOv5</a> &amp; <a href="https://docs.ultralytics.com/models/yolov8/">YOLOv8</a> by Ultralytics</li><li><a href="https://github.com/pjreddie/darknet">Darknet: Original YOLO Implementation</a></li></ul><h4>Technical Docs &amp; Benchmarks:</h4><ul><li><a href="https://docs.ultralytics.com/models/yolo11/">Ultralytics Documentation on YOLO11</a></li><li><a href="https://paperswithcode.com/sota/object-detection-on-coco">COCO Dataset Benchmarks</a></li></ul><h4>Key Research Papers:</h4><ol><li><strong>Redmon et al. (2016).</strong> <em>You Only Look Once: Unified, Real-Time Object Detection.</em></li><li><strong>Bochkovskiy et al. (2020).</strong> <em>YOLOv4: Optimal Speed and Accuracy of Object Detection.</em></li><li><strong>Wang et al. (2022).</strong> <em>YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors.</em></li><li><strong>Muhammad Yaseen (2024).</strong> <em>What is YOLOv8: An In-Depth Exploration of the Internal Features of the Next-Generation Object Detector.</em></li><li><strong>Rahima Khanam et al. (2024).</strong> <em>YOLOv11: An Overview of the Key Architectural Enhancements.</em></li><li><strong>Liu et al. (2018).</strong> <em>Path Aggregation Network for Instance Segmentation.</em></li><li><strong>Tan et al. (2020).</strong> <em>EfficientDet: Scalable and Efficient Object Detection.</em></li><li><strong>Dosovitskiy et al. (2021).</strong> <em>An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale.</em></li><li><strong>Zhang et al. (2022).</strong> <em>Dynamic Convolutional Network for Adaptive Object Detection.</em></li><li><strong>Zhou et al. (2019).</strong> <em>Feature Pyramid Networks for Object Detection.</em></li><li><strong>Mujadded Al Rabbani Alif</strong> <strong>(2024).</strong> <em>YOLOv11 for Vehicle Detection: Advancements, Performance, and Applications in Intelligent Transportation Systems.</em></li><li><strong>Li, X., et al.(2024).</strong> <em>YOLO-Vehicle-Pro: A Cloud-Edge Collaborative Framework for Object Detection in Autonomous Driving under Adverse Weather Conditions.</em></li><li><strong>Sapkota, R. et al. (2024).</strong> <em>YOLO11 to Its Genesis: A Decadal and Comprehensive Review of The You Only Look Once (YOLO) Series.</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d544072a410e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/demistify/av-vol-2-yolo11-elevating-real-time-object-detection-for-autonomous-vehicles-d544072a410e">[AV Vol.2] YOLO11: Elevating Real-Time Object Detection for Autonomous Vehicles</a> was originally published in <a href="https://medium.com/demistify">deMISTify</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[AV Vol.1] SAM2 Unveiled: Revolutionizing 2D Vision in Autonomous Vehicles]]></title>
            <link>https://medium.com/demistify/av-vol-1-sam2-unveiled-revolutionizing-2d-vision-in-autonomous-vehicles-2387654ce194?source=rss-f9b05f8858e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2387654ce194</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[autonomous-vehicles]]></category>
            <category><![CDATA[vision-transformer]]></category>
            <category><![CDATA[segmentation]]></category>
            <category><![CDATA[sam2]]></category>
            <dc:creator><![CDATA[Adam Roberge]]></dc:creator>
            <pubDate>Fri, 01 Nov 2024 05:57:03 GMT</pubDate>
            <atom:updated>2024-11-01T05:57:03.245Z</atom:updated>
            <content:encoded><![CDATA[<p>How SAM2’s Advanced Segmentation and Real-Time Tracking Capabilities are Transforming Autonomous Vehicle Vision Systems</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*tscaDfOCkxKYX7XFkiXCSA.png" /><figcaption>SAM2 Demo</figcaption></figure><p>In the rapidly advancing field of autonomous vehicles, one of the most challenging tasks is enabling these systems to precisely “see” and interpret their surroundings. Autonomous vehicles must continuously recognize pedestrians, vehicles, road signs, and obstacles in real time — tasks that demand fast, accurate segmentation of the visual environment. Traditional models often struggle with complex scenes or require specialized systems for each task, leading to inefficiencies and increased processing demands.</p><p>This is where the Segment Anything Model (SAM) makes a breakthrough. Designed as a universal segmentation tool, SAM adapts seamlessly to various tasks — such as object detection, edge detection, and segmentation — without the need for separate models. It allows users to isolate objects with a single click, draw bounding boxes, or apply text prompts, making it highly versatile across a wide range of applications. SAM’s adaptable, multitasking capability not only enhances computer vision systems but also provides the foundation for safer and more efficient autonomous technology.</p><p>Building on SAM’s foundation, SAM2 introduces advanced features specifically designed to meet the demands of real-time, complex environments, as in autonomous driving. SAM2 incorporates a memory bank for tracking objects across video frames, alongside enhanced video input capabilities. These upgrades enable SAM2 to maintain temporal consistency and accurately track moving objects, crucial for real-time navigation and decision-making in autonomous systems.</p><p>This article explores SAM2’s technical innovations and their transformative potential for the future of autonomous vehicles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*8x1xzjE1flE2i85Y4Fgehw.png" /><figcaption><em>Figure 1: Overview of SAM2 Architecture</em></figcaption></figure><h3>Overview of SAM and SAM2</h3><p>In computer vision, <strong>segmentation models</strong> are essential for breaking down images into distinct regions or objects, where each pixel is assigned to a specific area or item. For example, in a traffic scene, segmentation allows a model to distinguish between pedestrians, vehicles, road signs, and other objects, creating a detailed environmental map. This capability is crucial for autonomous vehicles, which need to continuously interpret their surroundings and make real-time decisions to ensure safety, such as stopping for pedestrians or recognizing obstacles.</p><p>The <strong>Segment Anything Model (SAM)</strong> was developed as a versatile segmentation tool that could handle a broad spectrum of tasks, from interactive segmentation and edge detection to super-pixelization and object proposal generation. SAM’s versatility lies in its ability to respond to varied prompts — clicks, bounding boxes, or text inputs — to create precise segmentation masks. This multitasking capacity within a single model set a new standard for 2D vision in flexibility and ease of use, eliminating the need for multiple specialized models and improving system efficiency.</p><p>As the demands of autonomous driving have grown, especially with the need to process video data in real time and track moving objects consistently, SAM’s capabilities have been expanded in SAM2. SAM2 introduces features like video segmentation, a memory bank to retain information across frames, and optimized processing speeds. These innovations make SAM2 exceptionally well-suited for the dynamic, complex environments encountered in autonomous driving, where reliable tracking, real-time navigation, and accuracy are paramount.</p><h3>Key Features and Innovations of SAM2</h3><p>SAM2 expands on the foundation established by SAM, introducing several enhancements that align with the complex demands of autonomous vehicle systems. These innovations in SAM2, from improved image encoding to dynamic mask processing, make it a powerful tool for real-time applications. For those interested in understanding the underlying Vision Transformer technology, check out Matt’s article, <a href="https://utmist.gitlab.io/newsletter/">“Vision Transformers (ViT): A Promising Approach to Action Recognition in Videos.”</a> For a more comprehensive breakdown of each SAM2 feature, see my detailed analysis in the companion article, <a href="https://medium.com/@adam.roberge/unpacking-the-advanced-features-of-sam2-d7d6e154ac7a">“Unpacking the Advanced Features of SAM2.”</a></p><h4>Enhanced Image Encoder</h4><p>An image encoder is a model component that converts images into a more manageable format, capturing essential visual information that the rest of the model can use to make accurate predictions. SAM2’s image encoder is an improved version based on a <strong>hierarchical Vision Transformer (ViT) </strong>architecture, which is pre-trained with a technique called <strong>Masked Autoencoder (MAE)</strong> for efficient learning. This encoder captures both local details (like edges or small objects) and a more holistic view (or “global context”) of an image, allowing it to understand the overall scene structure. By combining information from different processing stages in this way, SAM2 achieves sharper and more detailed segmentation, crucial for the precision demands of autonomous systems.</p><h4>Advanced Prompt Encoding</h4><p>SAM2, like SAM, can handle various input types (such as points, boxes, and masks) to generate segmentation outputs. However, SAM2 introduces greater flexibility with these prompts by integrating a <strong>memory bank</strong>. This memory system keeps track of prompts over time, which is especially valuable in autonomous vehicle (AV) settings where maintaining temporal consistency is essential.</p><p>In an AV context, prompts are typically generated by the system’s sensors and processing algorithms rather than by manual input. For instance, if the AV’s perception system detects an object (such as a pedestrian or another vehicle), it automatically generates a “prompt” for SAM2 to segment and track that object across video frames. The memory bank allows SAM2 to retain this prompt information over multiple frames, enabling it to produce consistent segmentation and effectively track objects in complex, dynamic scenes — critical for real-time navigation and obstacle avoidance.</p><h4>Dynamic Mask Decoder</h4><p>SAM2’s dynamic mask decoder uses a <strong>transformer-based architecture</strong> with multi-head self-attention and cross-attention to capture both local details and global context. This design integrates prompts like points and bounding boxes, allowing SAM2 to understand complex relationships within images for precise mask generation. The decoder employs <strong>feed-forward networks, layer normalization, and residual connections</strong> to ensure stable training and pattern learning, even with increased complexity.</p><p>A notable feature is SAM2’s ability to produce <strong>three mask candidates</strong> (‘whole,’ ‘part,’ ‘subpart’) for point prompts, ranked by Intersection over Union (IoU) with ground truth. For less ambiguous inputs, like bounding boxes, SAM2 outputs a single mask. To maintain temporal coherence across video frames, SAM2 integrates a <strong>memory bank</strong> that holds feature embeddings, promoting consistent object tracking and improved video segmentation accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*QIR7kDCx4dS7CbGVYe4YoA.png" /><figcaption><em>Figure 2: Detailed Mask Decoder Architecture</em></figcaption></figure><h4>Memory Bank for Temporal Consistency</h4><p>One of the most significant upgrades is the introduction of a <strong>memory bank</strong>. This allows SAM2 to remember objects across multiple video frames, keeping track of moving objects even when they are temporarily out of view or partially blocked. This is essential for autonomous vehicles, which need to monitor the environment continuously and reliably.</p><h4>Real-Time Video Processing</h4><p>A major improvement in SAM2 is its ability to process video data, ensuring that segmentation remains consistent from frame to frame. This capability is crucial for autonomous vehicles, as it allows the system to better understand motion and track objects in real time, such as pedestrians crossing the street or other cars changing lanes.</p><h4>Ambiguity Handling</h4><p>SAM2 can generate and rank multiple mask candidates based on how well they match the object in the prompt. This is especially useful when objects are partially visible or obscured. By doing this, SAM2 ensures it picks the most accurate segmentation, improving safety and reliability in complex driving environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*0lprpWY86v-qEPslwHCDGQ.png" /><figcaption><em>Figure 3: Detailed SAM2 Model Architecture</em></figcaption></figure><h3><strong>SAM vs. SAM2: Evolution for Real-Time Application Needs</strong></h3><p>While SAM broke new ground in static image-based segmentation by handling prompts like points, boxes, and masks, SAM2 extends this versatility into dynamic <strong>video segmentation</strong>, tailored for real-time applications. SAM2’s unique memory module, positioned between the encoder and decoder, enables object tracking across video frames, introducing <strong>temporal consistency</strong> that SAM lacked. This feature allows SAM2 to continuously recognize and follow objects in motion — such as pedestrians or vehicles — ensuring accuracy in real-time, complex environments.</p><p>In contrast, SAM’s architecture was more suited for individual images, where maintaining a memory of objects across frames wasn’t necessary. This architectural enhancement in SAM2 significantly boosts its performance in dynamic scenarios, such as autonomous driving, where persistent tracking and swift response are critical for safety. With these advancements, SAM2 meets the demand for reliable and seamless segmentation in live, evolving settings, where the need to accurately monitor and adapt to ongoing movement is paramount. Figure 5 demonstrates several 2D vision tasks critical to autonomous driving, such as object detection and scene segmentation, which SAM2 can perform with high accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*YUYcOiIatXD38Y-WIQGHkg.png" /><figcaption><em>Figure 5: Examples of 2D Vision Tasks in Autonomous Vehicles</em></figcaption></figure><h3>SAM2’s Technical Advancements</h3><p>SAM2 introduces several technical enhancements that significantly boost its performance in autonomous vehicle applications:</p><h4>Performance Benchmarks</h4><ul><li><strong>Ambiguity Handling:</strong> SAM2’s ability to generate and rank multiple masks per prompt ensures higher accuracy, with training focusing on the best-performing masks based on IoU metrics.</li><li><strong>Loss Functions:</strong> Incorporating <strong>Focal Loss</strong> and <strong>Dice Loss</strong> allows SAM2 to address class imbalances and focus on correctly segmenting regions of interest, further refining mask accuracy.</li><li><strong>Video Segmentation Performance:</strong> SAM2 demonstrates significant improvements in processing video inputs, maintaining high mIoU scores across frames, and ensuring smooth and consistent segmentation in dynamic environments.</li></ul><p>In terms of benchmarks, SAM2 demonstrates significant improvements in both accuracy and speed compared to SAM.</p><p><strong>Annotation Speed</strong>:</p><p>SAM2 dramatically reduces annotation time for human annotators by leveraging mask propagation across video frames. As shown in Figure 6, during dataset generation, SAM took an average of <strong>37.8 seconds per frame</strong> for manual annotation. In contrast, SAM2’s improved assistance and temporal mask propagation dropped annotation time to as low as <strong>4.5 seconds per frame</strong>, representing an <strong>8.4x speedup</strong>. This improvement means that creating large, labeled video datasets is faster and easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*JkQhivYi5Vkl8TyZ9eJ-4Q.png" /><figcaption><em>Figure 6: Performance Benchmarks of SAM vs. SAM2 (Average annotation time per frame)</em></figcaption></figure><p><strong>Inference Speed:</strong></p><p>Figure 7 provides a comparative view of SAM and SAM2’s performance across datasets, underscoring SAM2’s advances in accuracy, especially in zero-shot segmentation tasks. SAM2 runs up to <strong>6 times faster</strong> in image segmentation tasks, processing images at <strong>130 frames per second (fps)</strong>, compared to SAM’s <strong>21.7 fps</strong>, making it much more efficient for real-time applications. Additionally, in video segmentation tasks, SAM2 achieves an impressive <strong>44 fps</strong>, enabling real-time video processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*RGl8-uU6Lvc3967yZkmAdQ.png" /><figcaption><em>Figure 7: Performance Benchmarks of SAM vs. SAM2 (Zero-shot accuracy on the Segment Anything (SA) task across 37 datasets)</em></figcaption></figure><p><strong>Model Size</strong>:</p><p>When comparing models of similar size, SAM2 is generally <strong>lighter</strong> and more efficient. For example, <strong>SAM Base</strong> has <strong>94.7 million parameters</strong>, whereas the <strong>SAM2 Hiera Base Plus</strong> model has only <strong>80.8 million parameters</strong>, making SAM2 lighter while also delivering faster performance in both image and video tasks.</p><h4>Training and Data Efficiency</h4><p>SAM2 employs an <strong>iterative refinement training process</strong>, beginning with initial prompts and progressively refining masks by sampling points from error regions. This approach enhances the model’s ability to correct false positives and negatives, improving the accuracy and reliability of segmentation outcomes. The integration of <strong>video data</strong> during training further allows SAM2 to better capture temporal relationships and motion patterns, significantly enhancing its performance in real-world driving scenarios.</p><h3>Applications of SAM2 in Autonomous Vehicles</h3><p>SAM2’s advanced segmentation capabilities translate into several critical applications within autonomous vehicle systems:</p><h4>Improved Object Detection</h4><p>Accurate segmentation allows for precise identification and localization of objects, enhancing the vehicle’s ability to recognize and respond to pedestrians, other vehicles, and obstacles in real-time.</p><h4>Enhanced Scene Segmentation</h4><p>In Figure 8, we can see an example of SAM2’s scene segmentation output, where its detailed segmentation helps differentiate between complex elements in a driving scene. By effectively differentiating between various elements of the environment, SAM2 facilitates a comprehensive understanding of the driving scene, enabling better decision-making and navigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*49XDLHrXS7YnRjyd1OWGuw.gif" /><figcaption><em>Figure 8: Scene Segmentation Output by SAM2</em></figcaption></figure><h4><strong>Increased Vehicular Safety</strong></h4><p>Reliable segmentation contributes to safer autonomous driving by ensuring that the vehicle can accurately interpret its surroundings, reducing the risk of accidents caused by misidentification or overlooked obstacles.</p><h4>Seamless Integration with LiDAR and Radar (3D Application)</h4><p>While LiDAR and radar provide depth and motion information, SAM2’s 2D vision capabilities complement these sensors by offering detailed segmentation and object recognition, creating a more holistic perception system. The addition of video input further enhances this integration by allowing continuous monitoring and tracking of objects over time.</p><p>In addition to traditional 2D applications, SAM2 has been extended to 3D segmentation tasks through innovative research. A notable contribution is the paper <a href="https://arxiv.org/pdf/2408.16768"><strong>“SAM2POINT: SEGMENT ANY 3D AS VIDEOS IN ZERO-SHOT AND PROMPTABLE MANNERS”</strong></a>, which leverages SAM2 for 3D segmentation from LiDAR data. This approach integrates SAM2’s robust 2D segmentation capabilities with LiDAR’s depth information, enabling precise 3D object recognition and tracking in autonomous vehicles. By utilizing SAM2POINT, autonomous systems can achieve enhanced spatial awareness and improved object localization, further boosting vehicular safety and navigation accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*U1-HX7kmLBJcVfQQFCCSHg.png" /><figcaption><em>Figure 9: Integration of SAM2 with LiDAR and Radar Systems (SAM2POINT: Convert any input 3D data into voxelized representations, and utilize user-provided 3D prompt to divide the 3D space along six directions, effectively simulating six different videos for SAM 2 to perform zero-shot segmentation.</em></figcaption></figure><h3>SAM2 Prediction Examples</h3><p><strong>SAM2</strong> is a versatile tool applicable across a broad spectrum of tasks, including real-time video editing, medical imaging, and autonomous systems. Its ability to segment both static and dynamic visual data makes it an invaluable asset for researchers and developers alike.</p><h4>Segment with Prompts</h4><p>SAM2 enables users to segment specific objects within images or videos by providing various prompts such as bounding boxes or points. Below are Python examples demonstrating how to utilize these features effectively:</p><p><strong>Python Example:</strong></p><pre>from ultralytics import SAM<br><br># Initialize the SAM2 model with the specified weights<br>model = SAM(&quot;sam2.1_b.pt&quot;)<br><br># Optionally, display model information<br>model.info()<br><br># Set image path<br>image_path = &quot;path/to/image.jpg&quot;,<br><br># Inference with a bounding box prompt<br>bounding_box_results = model(image_path,<br>                             # [x_min, y_min, x_max, y_max]<br>                             bboxes=[[100, 100, 200, 200]]<br>                             )<br><br># Inference with a single point prompt<br>single_point_results = model(image_path,<br>                             points=[[900, 370]],  # [x, y] coordinates<br>                             labels=[1]  # Label indicating the object class<br>                             )<br><br># Inference with multiple point prompts<br>multiple_points_results = model(image_path,<br>                                points=[[400, 370], [900, 370]],<br>                                labels=[1, 1]<br>                                )<br><br># Inference with multiple points per object<br>multi_object_points_results = model(image_path,<br>                                    points=[[[400, 370], [900, 370]]],<br>                                    labels=[[1, 1]]<br>                                    )<br><br># Inference with negative point prompts to exclude certain areas<br>negative_points_results = model(image_path,<br>                                points=[[[400, 370], [900, 370]]],<br>                                # 1 for inclusion, 0 for exclusion<br>                                labels=[[1, 0]]<br>                                )</pre><p><strong>Explanation:</strong></p><ul><li><strong>Bounding Box Prompt:</strong> Segments objects within the specified bounding box coordinates.</li><li><strong>Single Point Prompt:</strong> Segments the object at the given (x, y) coordinate.</li><li><strong>Multiple Points Prompt:</strong> Segment multiple objects based on the provided points.</li><li><strong>Multiple Points per Object:</strong> Segments complex objects requiring multiple points for accurate segmentation.</li><li><strong>Negative Point Prompt:</strong> Excludes certain areas from segmentation by labeling points as negative.</li></ul><h3>Segment Everything</h3><p>SAM2 can also segment the entire content of an image or video without any specific prompts. This feature is particularly useful for applications requiring comprehensive segmentation without predefined regions of interest.</p><p><strong>Python Example:</strong></p><pre># Initialize the SAM2 model with the specified weights<br>model = SAM(&quot;sam2.1_b.pt&quot;)<br><br># Optionally, display model information<br>model.info()<br><br># Perform segmentation on the entire video without any prompts<br>full_segmentation_results = model(&quot;path/to/video.mp4&quot;)</pre><p><strong>CLI Example:</strong></p><pre># Segment the entire video without specific prompts using the command-line interface<br>sam2_segment path/to/video.mp4</pre><p><strong>Explanation:</strong></p><ul><li><strong>Python Example:</strong> Automatically segments all objects within the provided video file without requiring any bounding boxes, points, or masks.</li><li><strong>CLI Example:</strong> Utilizes SAM2’s command-line interface to perform full segmentation on a video, streamlining the process for users who prefer terminal operations.</li></ul><p><strong>Additional Tips:</strong></p><ul><li><strong>Model Optimization:</strong> Ensure that the model weights (sam2.1_b.pt) are correctly specified and compatible with your environment.</li><li><strong>Performance Monitoring:</strong> Monitor inference times, especially when processing high-resolution videos, to maintain real-time performance.</li><li><strong>Error Handling:</strong> Implement error handling to manage scenarios where prompts may not correspond to any detectable objects.</li></ul><h3>Automated Mask Generation</h3><p>A notable feature of SAM2 is its capacity for <strong>automated mask generation</strong>, which allows comprehensive segmentation of all detectable objects within an image or video without the need for specific prompts. This enhancement is particularly relevant in autonomous vehicle contexts, where AV systems benefit from quickly identifying every visible object in a scene. Automated segmentation aids large-scale data labeling, video analysis, and continuous scene parsing, providing AV systems with detailed environmental maps that improve situational awareness and decision-making.</p><p>However, it’s important to note that SAM, and by extension SAM2, <strong>does not inherently “understand” object semantics</strong> — meaning it doesn’t recognize categories like “car” or “pedestrian” without external context. Instead, SAM2 identifies visually distinct regions based on shapes, textures, or boundaries. While this approach can sometimes yield subparts of objects that might not align with human intuition, SAM2’s advanced hyperparameters allow users to fine-tune segmentation detail, controlling the level of granularity through adjustable parameters like point count per mask.</p><p>This flexibility not only enhances SAM2’s practical use across varied AV applications but also highlights a refinement over SAM, whose segmentation lacked this depth of customization. Automated mask generation, visualized in Figure 10, demonstrates SAM2’s ability to segment scenes comprehensively, helping AV systems accurately parse diverse driving environments in real time.</p><p><strong>Visual Example</strong>:<br>To see SAM2 in action, an image fully segmented using automated mask generation could show all objects in a scene, from cars and pedestrians to buildings and street signs, with each element clearly defined by its own mask. This visual representation highlights SAM2’s ability to segment an entire environment comprehensively and efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*tscaDfOCkxKYX7XFkiXCSA.png" /><figcaption><em>Figure 10: Segment Everything with SAM2</em></figcaption></figure><p><strong>Python Implementation:</strong></p><pre># Environment Set-up<br>import sys<br>import matplotlib.pyplot as plt<br>sys.path.append(&#39;.&#39;)<br><br>from segment_anything import sam_model_registry, SamAutomaticMaskGenerator, SamPredictor<br><br># SAM checkpoint<br>sam_checkpoint = &quot;sam_vit_h_4b8939.pth&quot;<br>model_type = &quot;vit_h&quot;<br>device = &quot;cuda&quot;<br><br># Load the SAM model<br>sam = sam_model_registry[model_type](checkpoint=sam_checkpoint)<br>sam.to(device=device)<br><br># Initialize the automatic mask generator<br>mask_generator = SamAutomaticMaskGenerator(sam)<br><br># To run automatic mask generation, provide a SAM model to the SamAutomaticGenerator class<br># To generate masks, just run generate on an image<br>masks = mask_generator.generate(image)<br><br># Mask generation returns a list over masks, where each mask is a dictionary containing various data about the mask.<br># Keys: segmentation, area, bbox, predicted_iou, point_coords, stability_score, crop_box<br><br># Show all masks overlaid on the image<br>plt.figure(figsize=(20, 20))<br>plt.imshow(image)<br>plt.show(masks)<br>plt.axis(&#39;off&#39;)<br>plt.show()</pre><p><strong>Explanation:</strong></p><ul><li><strong>Environment Set-up: </strong>Import necessary libraries and append the current directory to sys.path to ensure module accessibility.</li><li><strong>Model Initialization:<br>- Checkpoint and Model Type:</strong> Specify the SAM checkpoint file and model type (vit_h in this case).<br>- <strong>Device Configuration:</strong> Set the device to cuda for GPU acceleration.<br>- <strong>Load SAM Model:</strong> Use sam_model_registry to load the specified SAM model and transfer it to the designated device.</li><li><strong>Automatic Mask Generator Initialization: </strong>Instantiate the SamAutomaticMaskGenerator with the loaded SAM model, enabling automated mask generation without manual prompts.</li><li><strong>Image Loading: </strong>Use OpenCV (cv2) to load an image and convert it from BGR to RGB format for compatibility with matplotlib.</li><li><strong>Mask Generation: </strong>Call the generate method on the mask_generator with the loaded image to produce a list of masks. Each mask is a dictionary containing various attributes like segmentation, area, bounding box, predicted IoU, point coordinates, stability score, and crop box.</li><li><strong>Mask Visualization:<br>- Display Image:</strong> Initialize a matplotlib figure and display the original image.<br>- <strong>Overlay Masks:</strong> Iterate through the generated masks and overlay each mask onto the image with transparency (alpha=0.5) for visual distinction.<br>- <strong>Final Display:</strong> Remove axis ticks and render the combined image with masks.</li></ul><h3>Practical Use Cases</h3><ul><li><strong>Real-Time Video Editing:</strong> Automatically isolate and manipulate objects within live video feeds.</li><li><strong>Medical Imaging:</strong> Segment anatomical structures in medical scans for diagnostic purposes.</li><li><strong>Autonomous Systems:</strong> Enhance environmental perception by accurately identifying and tracking objects in real time.</li></ul><h3>Case Studies and Future Prospects</h3><h4>Real-World Implementations</h4><p>Several leading autonomous vehicle manufacturers and research institutions have begun integrating SAM2 into their perception systems. In pilot projects, SAM2 has demonstrated remarkable accuracy in diverse environments, from urban settings with complex traffic patterns to rural areas with less predictable obstacles. Notably, the video input capability has enabled these systems to maintain consistent segmentation across moving frames, significantly improving navigation and response times.</p><h4>Long-Term Impact on the Autonomous Vehicle Industry</h4><p>SAM2’s advancements are poised to accelerate the deployment of autonomous vehicles by enhancing perception systems’ reliability and efficiency. The ability to process video inputs ensures that vehicles can better anticipate and react to dynamic changes in their environment, a crucial factor for widespread adoption. As SAM2 continues to evolve, it is expected to become a cornerstone technology in next-generation self-driving cars, contributing to broader adoption and safer roads.</p><h4>Future Enhancements</h4><p>Although SAM2 has made significant strides in 2D vision, its <strong>object tracking</strong> still needs refinement, as consistency can falter in dynamic or complex scenes. Improving this will enhance reliability in real-world applications like autonomous driving.</p><p>Looking forward, SAM2 could integrate with <strong>predictive analytics</strong> and <strong>real-time decision-making</strong>, enabling better anticipation of object movements. Further advances in video input processing and training efficiency will also improve its performance, making it an indispensable tool for future autonomous systems.</p><h3>Conclusion</h3><p><strong>SAM2 (Segment Anything Model 2)</strong> represents a significant leap forward in 2D computer vision, offering enhanced segmentation capabilities that are crucial for the advancement of autonomous vehicle technologies. By building upon the robust foundation of SAM, SAM2 delivers more precise and reliable vision systems, addressing the complex challenges inherent in self-driving environments. Its ability to handle video inputs and incorporate a sophisticated memory bank marks pivotal advancements, ensuring temporal consistency and better motion understanding. As autonomous vehicles continue to evolve, models like SAM2 will play a pivotal role in ensuring safety, efficiency, and seamless integration of perception systems.</p><p>Stay tuned for more insights into the cutting-edge deep-learning architectures shaping the future of autonomous driving!</p><p><strong>Experience SAM2 Yourself:<br></strong>To explore SAM2’s capabilities firsthand and see how it can revolutionize autonomous vehicle systems, visit<a href="https://ai.meta.com/sam2/"> SAM2’s official website</a>.</p><h3>Final Remarks</h3><p>This article effectively encapsulates the essential advancements, technical details, and practical applications of <strong>SAM2</strong> as presented in the original paper. It maintains factual accuracy, highlights the model’s significant contributions to both image and video segmentation, and acknowledges its pivotal role in advancing autonomous vehicle technologies. By integrating video input capabilities and a robust memory bank, SAM2 addresses the complex, dynamic challenges inherent in real-world driving environments, setting a new benchmark for 2D vision models in the automotive industry.</p><p>If you have any specific aspects you’d like to delve deeper into or require further clarification on, feel free to ask!</p><h3>References:</h3><ul><li>Meta AI Research, Segment Anything Model (SAM) Overview and Technical Documentation.<br><a href="https://ai.facebook.com/research/publications/segment-anything/">https://ai.facebook.com/research/publications/segment-anything/</a></li><li>Meta AI’s Segment Anything Model: “Segment Anything” GitHub Repository for SAM and SAM2.<br><a href="https://github.com/facebookresearch/segment-anything">https://github.com/facebookresearch/segment-anything</a></li><li>Segment Anything Model Performance Benchmarks Comparison.<br>https://<a href="https://docs.ultralytics.com/models/sam-2/#what-datasets-are-used-to-train-sam-2-and-how-do-they-enhance-its-performance">www.marktechpost.com/2023/05/segment-anything-model-sam-2-performance-compa</a><a href="https://docs.ultralytics.com/models/sam-2/#what-datasets-are-used-to-train-sam-2-and-how-do-they-enhance-its-performance">https://docs.ultralytics.com/models/sam-2/#what-datasets-are-used-to-train-sam-2-and-how-do-they-enhance-its-performance</a></li><li>SAM2POINT: Segment Any 3D as Videos in Zero-shot and Promptable Manners.<br><a href="https://arxiv.org/abs/2408.16768">https://arxiv.org/abs/2408.16768</a></li><li>Mask2Former: Advanced Mask Generation Techniques and SAM2 Adaptation.<br><a href="https://arxiv.org/abs/2112.01527">https://arxiv.org/abs/2112.01527</a></li><li>Official Medium Post and Blog on SAM and SAM2 from Meta’s AI team.<br><a href="https://ai.facebook.com/blog/segment-anything-model-and-sam2">https://ai.facebook.com/blog/segment-anything-model-and-sam2</a></li><li>Ultralytics Documentation on SAM2 — Datasets for Training SAM2.<br><a href="https://docs.ultralytics.com/models/sam-2/#what-datasets-are-used-to-train-sam-2-and-how-do-they-enhance-its-performance">https://docs.ultralytics.com/models/sam-2/#what-datasets-are-used-to-train-sam-2-and-how-do-they-enhance-its-performance</a></li><li>Ultralytics Documentation on SAM2 — Core Components.<br><a href="https://docs.ultralytics.com/models/sam-2/#core-components">https://docs.ultralytics.com/models/sam-2/#core-components</a></li><li>Ultralytics Documentation on SAM2 — Segment with Prompts.<br><a href="https://docs.ultralytics.com/models/sam-2/#segment-with-prompts">https://docs.ultralytics.com/models/sam-2/#segment-with-prompts</a></li><li>Nandini Reddy’s Medium Post on SAM2’s Video Segmentation Potential.<br><a href="https://medium.com/@nandinilreddy/exploring-sam2-advanced-video-segmentation-and-its-potential-269a3e8317e2">https://medium.com/@nandinilreddy/exploring-sam2-advanced-video-segmentation-and-its-potential-269a3e8317e2</a></li><li>GitHub Repository by Nandini Reddy for SAM2 Implementation.<br><a href="https://github.com/NandiniLReddy/SAM2/blob/main/SAM2.ipynb">https://github.com/NandiniLReddy/SAM2/blob/main/SAM2.ipynb</a></li><li>Meta AI Hiera GitHub Repository for SAM2’s Hierarchical Vision Transformer.<br><a href="https://github.com/facebookresearch/hiera">https://github.com/facebookresearch/hiera</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2387654ce194" width="1" height="1" alt=""><hr><p><a href="https://medium.com/demistify/av-vol-1-sam2-unveiled-revolutionizing-2d-vision-in-autonomous-vehicles-2387654ce194">[AV Vol.1] SAM2 Unveiled: Revolutionizing 2D Vision in Autonomous Vehicles</a> was originally published in <a href="https://medium.com/demistify">deMISTify</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unpacking the Advanced Features of SAM2]]></title>
            <link>https://medium.com/@adam.roberge/unpacking-the-advanced-features-of-sam2-d7d6e154ac7a?source=rss-f9b05f8858e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7d6e154ac7a</guid>
            <category><![CDATA[sam2]]></category>
            <category><![CDATA[autonomous-vehicles]]></category>
            <category><![CDATA[segment-anything-model]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Adam Roberge]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 06:34:22 GMT</pubDate>
            <atom:updated>2024-11-01T04:21:13.756Z</atom:updated>
            <content:encoded><![CDATA[<p>Exploring SAM2’s Key Architectural Innovations such as Enhanced Image Encoding, Dynamic Masking, and Real-Time Video Processing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BrTxJmxp6_Ntc0Hl.png" /><figcaption>SAM2 Architecture</figcaption></figure><p>SAM2 builds on the foundation of SAM (for a better understanding of SAM, check out <a href="https://www.youtube.com/watch?v=OhxJkqD1vuE">this video</a> by <a href="https://www.youtube.com/@avb_fj/videos">Neural Breakdown with AVB</a>), but it introduces several key improvements that make it better suited for the complex demands of autonomous vehicles.</p><h3>Enhanced Image Encoder</h3><p>SAM2 utilizes a <strong>Hiera image encoder</strong>, a hierarchical Vision Transformer (ViT) architecture pre-trained with a <strong>Masked Autoencoder (MAE)</strong> approach. This encoder employs a <strong>Feature Pyramid Network (FPN)</strong> to fuse multiscale features from different stages, specifically integrating stride 16 and 32 features from Stages 3 and 4 to generate rich, detailed image embeddings essential for accurate segmentation. Additionally, higher-resolution stride 4 and 8 features from Stages 1 and 2 are incorporated into the mask decoder’s upsampling layers, enabling the production of high-resolution segmentation details. SAM2 adopts <strong>windowed absolute positional embeddings</strong> with interpolated global positional information, ensuring robust spatial awareness without relying on relative positional encoding. Models are trained with varying encoder sizes (T, S, B+, L) and utilize global attention in selected encoder layers, enhancing feature representation while maintaining computational efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vTcX05kRm5Q3BAdhgmfs3g.png" /><figcaption>Hiera Architecture</figcaption></figure><h3>Advanced Prompt Encoding</h3><p>SAM2’s prompt encoder is designed to handle a range of input types — such as points, bounding boxes, and masks — ensuring versatile and interactive segmentation across diverse scenarios. Each type of prompt undergoes a <strong>positional encoding</strong> process, where SAM2 spatially encodes the location of each prompt to anchor it within the image grid. This encoding allows SAM2 to accurately map each prompt type in a spatially aware way, capturing detailed location information crucial for precise segmentation, even in complex or cluttered scenes.</p><p>For improved prompt flexibility, SAM2 incorporates <strong>convolutional layers</strong> that integrate prompt information across layers, allowing the model to distinguish between distinct prompts (e.g., points or boxes) and adjust segmentation outputs accordingly.</p><p>A distinctive feature is SAM2’s <strong>object pointer token</strong>, which associates each generated mask with its corresponding prompt. This token is then stored in a <strong>memory bank</strong> that links previous frame prompts to subsequent segmentation tasks, allowing SAM2 to track objects across frames with temporal coherence. This object-pointer-based memory ensures that each mask aligns accurately with the input prompt, allowing for consistent and contextually aware segmentation over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iTYHJwDAffYY680w.png" /><figcaption>SAM2 Model Workflow</figcaption></figure><h3>Positional Encoding in SAM2</h3><p>In SAM2, positional encoding is crucial for achieving spatial awareness across both static and dynamic scenes. SAM2 utilizes <strong>windowed absolute positional embeddings</strong> combined with interpolated global positional information, which provides the model with a precise understanding of spatial locations within each frame. This design allows SAM2 to encode the position of each pixel or object within an image or video frame accurately, enhancing its ability to interpret prompts (such as points, boxes, or masks) within the specific spatial context of the scene.</p><p>In static images, positional encoding ensures that SAM2 can distinguish between objects even if they have similar visual features but are located in different parts of the image. In video processing, SAM2’s positional encoding becomes even more critical. By consistently encoding spatial positions across frames, the model can maintain <strong>temporal coherence</strong> — meaning it can track an object’s position and movement over time, even if the object’s appearance changes slightly or is partially occluded.</p><p>This form of positional encoding ensures SAM2 can precisely align its predictions with real-world positions, providing reliable segmentation in complex, dynamic scenes. In autonomous vehicles, for instance, this translates to SAM2 reliably identifying and tracking pedestrians, vehicles, or other objects across frames, contributing to safer and more responsive navigation.</p><h3>Dynamic Mask Decoder</h3><p><strong>SAM2’s dynamic mask decoder</strong> leverages a sophisticated transformer-based architecture featuring multi-head self-attention and cross-attention mechanisms. These layers enable the decoder to capture both local details and global context of the input’s representation, seamlessly integrating prompt information such as points and bounding boxes. This allows the model to understand complex relationships and contextual nuances within the image, leading to precise mask generation. Enhanced by feed-forward neural networks (FFN), layer normalization, and residual connections, the decoder maintains stable training and learns intricate patterns despite increasing network complexity. A key innovation is SAM2’s ability to generate three mask candidates (‘whole,’ ‘part,’ and ‘subpart’) for point prompts, which are ranked based on their <strong>Intersection over Union (IoU)</strong> with ground truth masks. For bounding boxes and segmentation prompts, SAM2 outputs a single mask, as these inputs are less ambiguous. This ensures the selection of the most accurate mask during training (but at inference, a single mask is generated per prompt for efficiency and accuracy). Additionally, the integration of a <strong>memory bank</strong> retains feature embeddings from previous frames, promoting temporal coherence and consistent object tracking across video sequences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vQIHpZqY_OUzcKn0" /><figcaption><em>Detailed Mask Decoder Architecture</em></figcaption></figure><h3>Memory Bank</h3><p>A pivotal component contributing to SAM2’s enhanced performance is its <strong>memory bank</strong>. The memory bank serves as a repository of feature embeddings from previous frames, enabling the model to retain and utilize contextual information over time. SAM2’s memory encoder reuses image embeddings produced by the Hiera encoder, fusing them with predicted mask information to generate memory features. These features are projected to a dimension of 64 and split into four 64-dimensional tokens for cross-attention with the memory bank. By effectively managing and accessing this stored data, SAM2 maintains temporal coherence and improves segmentation accuracy across frames, handling occlusions and tracking moving objects reliably. This design allows SAM2 to leverage strong representations from larger image encoders, enhancing overall perception capabilities in autonomous systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yOyM-vWNQmhHMme4.png" /><figcaption>Highlighting Memory Bank in SAM2</figcaption></figure><h3>Video Input Capability</h3><p>One of SAM2’s standout features is its ability to process <strong>video inputs</strong>, allowing for continuous segmentation across frames. This capability ensures temporal consistency and enhances the model’s understanding of motion, which is essential for real-time navigation in autonomous vehicles. By maintaining temporal coherence, SAM2 can better predict and respond to dynamic changes in the environment, such as moving pedestrians or vehicles. The model handles multiple objects by performing inference on each object independently, sharing visual features from the image encoder while running other components like the memory bank and mask decoder separately for each object. This approach ensures accurate and consistent segmentation in complex, dynamic scenarios typical of autonomous driving environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*49XDLHrXS7YnRjyd1OWGuw.gif" /><figcaption><em>Scene Segmentation Output by SAM2 for Video Input</em></figcaption></figure><h3>Ambiguity Handling</h3><p>To tackle segmentation ambiguities, SAM2 generates multiple mask candidates (‘whole,’ ‘part,’ and ‘subpart’) for each prompt and ranks them based on their <strong>Intersection over Union (IoU)</strong> score relative to ground truth data. This method ensures the selection of the most accurate mask and enhances reliability in complex scenes with multiple or overlapping objects. Specifically, SAM2’s ambiguity-handling mechanism is beneficial in scenarios with occlusions or partial visibility, such as when objects are only partially visible across video frames.</p><p>In video sequences, where frames often show varying portions of an object, SAM2 can produce several plausible masks and then refine the selection by prioritizing masks with higher IoU scores based on contextual relevance. This technique allows SAM2 to maintain consistency and precision, crucial for accurate perception in autonomous vehicle systems, where real-time segmentation is essential for navigating dynamic environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMiCeqP0SaahpcB1sH_Prw.png" /><figcaption>‘Whole,’ ‘Part,’ and ‘Subpart’ Masks For The Same Image Input</figcaption></figure><h3>Conclusion</h3><p>SAM2 represents a groundbreaking advancement in segmentation technology<strong>,</strong> building on SAM’s foundational architecture while introducing innovations uniquely tailored to the challenges of real-time, autonomous systems. With an enhanced image encoder, dynamic mask decoder, and an advanced prompt encoding process, SAM2 offers flexibility and precision in segmenting complex scenes across static images and video frames alike. Its memory bank and video input capabilities bring critical enhancements in tracking objects consistently over time, crucial for applications like autonomous vehicles, where even momentary lapses in perception could impact safety.</p><p>The SAM2 architecture’s ability to handle occlusions, ambiguities, and dynamic changes in video scenes solidifies its role as an invaluable tool for real-time vision systems. SAM2’s precision in segmentation, temporal coherence, and ability to address ambiguous inputs empowers it to transform both the automotive sector and other industries reliant on detailed, consistent object recognition.</p><p>As the technology continues to evolve, SAM2 holds the potential to be integrated with predictive modeling, further enhancing decision-making in autonomous systems. This blend of high-performance, efficient processing, and reliable segmentation makes SAM2 an exciting and essential addition to the landscape of advanced computer vision tools, setting the stage for even more sophisticated autonomous systems.</p><h3>Final Remarks</h3><p>If you have any specific aspects you’d like to delve deeper into or require further clarification on, feel free to ask!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7d6e154ac7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3Doodle: Revolutionizing Object Representation with Compact 3D Strokes]]></title>
            <link>https://medium.com/@adam.roberge/3doodle-revolutionizing-object-representation-with-compact-3d-strokes-683e4b1e7fec?source=rss-f9b05f8858e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/683e4b1e7fec</guid>
            <category><![CDATA[3d-reconstruction]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[3d-rendering]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Adam Roberge]]></dc:creator>
            <pubDate>Wed, 02 Oct 2024 06:16:34 GMT</pubDate>
            <atom:updated>2024-10-02T06:16:34.806Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Transforming Multi-View Inputs into Expressive and Consistent 3D Sketches</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bJ68KXyBBiJeRYtyRDqbEw.png" /></figure><p><strong>Introduction</strong></p><p>Imagine capturing the essence of any object with just a handful of 3D strokes, effortlessly translating multi-view images into expressive, view-consistent sketches. Welcome to the world of <strong>3Doodle</strong>! Developed by Changwoon Choi, Jaeah Lee, Jaesik Park, and Young Min Kim from Seoul National University, 3Doodle is set to transform how we abstract and visualize objects in three dimensions. Whether you’re a digital artist, a VR enthusiast, or a researcher in computer vision, <strong>keep reading to explore how 3Doodle works and experience an interactive demo at the end!</strong></p><p><strong>The Challenge of 3D Representation in Sketching</strong></p><p>Free-hand sketching has always been a powerful tool for visual communication, allowing artists and designers to convey complex ideas with simplicity. However, traditional sketches are inherently subjective and often lack consistency across different viewpoints, making it difficult to accurately represent 3D shapes. Existing methods either rely on detailed 3D models, which are not always accessible, or produce dense, unrealistic sketches that stray from the abstract nature of human drawings.</p><p><strong>Introducing 3Doodle</strong></p><p><strong>3Doodle</strong> bridges this gap by generating descriptive and view-consistent sketch images from multi-view inputs. Unlike conventional sketching methods that depend on full 3D models or data-driven training, 3Doodle leverages a compact set of 3D geometric primitives to abstract objects efficiently. This approach ensures that the resulting sketches are both expressive and consistent, maintaining the essential 3D characteristics of the target object across various viewpoints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p787BnMv0rVzORgkm-41ag.png" /><figcaption>Comparison between traditional sketching methods and 3Doodle’s 3D stroke-based approach</figcaption></figure><p><strong>Key Components of 3Doodle</strong></p><p>3Doodle is composed of two primary components that work synergistically to produce high-quality sketches:</p><p><strong>1. 3D Geometric Primitives:</strong></p><ul><li><strong>View-Independent Strokes:</strong> Represented by 3D cubic Bézier curves, these strokes capture the essential feature lines of an object’s geometry, such as texture edges and sharp contours.</li><li><strong>View-Dependent Strokes:</strong> Encapsulated by superquadrics, these strokes define the smooth outlines of an object’s volume, adapting to different viewpoints to maintain consistency.</li></ul><p><strong>2. Differentiable Rendering Pipeline:</strong></p><ul><li><strong>Function:</strong> Converts the 3D strokes into 2D sketch images that are coherent across multiple views.</li><li><strong>Innovation:</strong> By making the rendering process fully differentiable, 3Doodle can directly optimize the parameters of the 3D strokes to minimize perceptual losses, ensuring that the sketches accurately reflect the original multi-view images.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fv0G1Y0zjiztEaXe2KiQoQ.png" /><figcaption>Overview of 3Doodle framework illustrating the generation of 3D strokes from multi-view images</figcaption></figure><p><strong>Unmatched Compactness and Expressiveness</strong></p><p>One of 3Doodle’s standout features is its ability to represent complex 3D structures with an exceptionally compact set of primitives — each sketch consumes less than 1.5KB. This compactness does not compromise expressiveness; instead, it ensures that the sketches remain abstract yet semantically rich, capturing the essential forms and contours of various objects with minimal strokes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8B47GdBupZrA6aVTcbV-TA.png" /><figcaption>showcasing 3Doodle’s compact representation compared to other sketch generation methods</figcaption></figure><p><strong>Versatility Across Diverse Objects</strong></p><p>While 3Doodle excels in representing a wide range of objects — from everyday items like chairs and toys to more complex shapes like ships and snowmen — it also demonstrates robustness in handling real-world scenes. Its ability to generate consistent sketches from a limited number of views (as few as 15) makes it highly adaptable for applications where data may be scarce or computational resources are limited.</p><p><strong>Applications and Impact</strong></p><p>3Doodle’s innovative approach opens up numerous possibilities across various domains:</p><ul><li><strong>Digital Art and Design:</strong> Empower artists to create detailed 3D sketches with ease, facilitating rapid prototyping and creative exploration.</li><li><strong>Virtual and Augmented Reality:</strong> Enhance user experiences by providing intuitive tools for object manipulation and visualization in 3D environments.</li><li><strong>Education and Training:</strong> Serve as an effective tool for teaching concepts of 3D geometry and sketching, making learning more interactive and engaging.</li><li><strong>3D Modeling and Reconstruction:</strong> Assist in generating preliminary sketches that can be further refined into detailed 3D models, streamlining the modeling workflow.</li></ul><p><strong>Demo: Experience 3Doodle in Action</strong></p><p>Ready to see 3Doodle transform multi-view images into stunning 3D sketches? Follow the steps in their GitHub repository to set up an interactive demo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*LdUiNDlmVZusYcNloft1bA.gif" /><figcaption>Demo for 3Doodle</figcaption></figure><p><strong>Conclusion</strong></p><p><strong>3Doodle</strong> marks a significant leap forward in the realm of 3D object representation and sketch generation. By leveraging a compact set of 3D geometric primitives and a fully differentiable rendering pipeline, 3Doodle delivers expressive, view-consistent sketches that faithfully capture the essence of diverse objects. Its ability to operate without extensive training data or detailed 3D models makes it a versatile tool with broad applications across digital art, VR/AR, education, and beyond.</p><p>As the demand for intuitive and efficient 3D visualization tools grows, 3Doodle stands out as a promising solution that combines simplicity with sophistication. Whether you’re looking to streamline your creative workflow or explore new avenues in computer vision research, 3Doodle offers the capabilities and flexibility to bring your ideas to life.</p><p><strong>Call to Action</strong></p><p>Eager to explore the capabilities of 3Doodle? Visit the <a href="https://github.com/changwoonchoi/3Doodle">3Doodle GitHub repository</a> to access the code, detailed documentation, and additional resources. Try out the interactive demo, experiment with different objects and viewpoints, and witness firsthand how 3Doodle can transform your multi-view images into stunning 3D sketches. Embrace the future of object abstraction and unleash your creativity with 3Doodle today!</p><p><strong>References</strong></p><ul><li><a href="https://dl.acm.org/doi/10.1145/3658156">Changwoon Choi, Jaeah Lee, Jaesik Park, and Young Min Kim. 2024. 3Doodle: Compact Abstraction of Objects with 3D Strokes. <em>ACM Transactions on Graphics</em>, 43(4), Article 107.</a></li><li><a href="https://openaccess.thecvf.com/content/ICCV2023/papers/Alaniz_Iterative_Superquadric_Recomposition_of_3D_Objects_from_Multiple_Views_ICCV_2023_paper.pdf">Stephan Alaniz, Massimiliano Mancini, and Zeynep Akata. 2023. Iterative Superquadric Recomposition of 3D Objects from Multiple Views. In <em>Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)</em>, 18013–18023.</a></li><li><a href="https://arxiv.org/pdf/2312.04043">Hmrishav Bandyopadhyay, Subhadeep Koley, Ayan Das, et al. 2023. Doodle Your 3D: From Abstract Freehand Sketches to Precise 3D Shapes. <em>arXiv preprint arXiv:2312.04043</em>.</a></li><li><a href="https://openaccess.thecvf.com/content_CVPR_2019/html/Barron_A_General_and_Adaptive_Robust_Loss_Function_CVPR_2019_paper.html">Jonathan T. Barron. 2019. A general and adaptive robust loss function. In <em>Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition</em>, 4331–4339.</a></li><li><a href="https://arxiv.org/abs/2108.07009">Z. Su <em>et al</em>., “Pixel Difference Networks for Efficient Edge Detection,” <em>2021 IEEE/CVF International Conference on Computer Vision (ICCV)</em>, Montreal, QC, Canada, 2021, pp. 5097–5107</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=683e4b1e7fec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[InstantDrag: Revolutionizing Drag-Based Image Editing with Speed and Precision]]></title>
            <link>https://medium.com/@adam.roberge/instantdrag-revolutionizing-drag-based-image-editing-with-speed-and-precision-97d470509eb0?source=rss-f9b05f8858e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/97d470509eb0</guid>
            <category><![CDATA[gans]]></category>
            <category><![CDATA[image-manipulation]]></category>
            <category><![CDATA[diffusion-models]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Adam Roberge]]></dc:creator>
            <pubDate>Wed, 02 Oct 2024 03:58:44 GMT</pubDate>
            <atom:updated>2024-10-02T04:04:23.989Z</atom:updated>
            <content:encoded><![CDATA[<h4>Bridging the Gap Between Precision and Real-Time Editing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxL9Aexks9_WjJh-FYUEoQ.png" /><figcaption>InstantDrag: an efficient framework that combines an optical flow generator with a motion-conditioned diffusion model.</figcaption></figure><p><strong>Introduction</strong></p><p>Imagine effortlessly tweaking your photos by simply dragging points to your desired locations, witnessing instant, high-quality transformations in real-time. Sounds like magic? Welcome to the world of <strong>InstantDrag</strong>! This groundbreaking framework, introduced by researchers Joonghyuk Shin, Daehyeon Choi, and Jaesik Park from Seoul National University and POSTECH, is set to revolutionize the way we interact with digital images. Whether you’re a professional photographer, a digital artist, or just someone who loves playing with images, InstantDrag offers an intuitive and lightning-fast editing experience. <strong>Keep reading to discover how InstantDrag works and try out an interactive demo at the end!</strong></p><p><strong>The Evolution of Image Editing</strong></p><p>Image editing has long been dominated by tools like Adobe Photoshop, which, while powerful, can be overwhelming for casual users. Recent advancements in machine learning and deep learning have paved the way for more accessible editing solutions. Text-to-image models, for instance, allow users to generate images from simple textual descriptions. However, when it comes to editing existing images with fine-grained control, these models often fall short in terms of speed and accuracy.</p><p><strong>Introducing InstantDrag</strong></p><p><strong>InstantDrag</strong> addresses these limitations by focusing on <strong>drag-based image editing</strong>, where users can interactively manipulate images by dragging specific points or regions. Unlike text-guided methods that offer broad modifications, drag-based editing provides precise control over low-frequency features and structural changes within an image. InstantDrag achieves this through a novel, optimization-free pipeline that significantly enhances both the speed and interactivity of the editing process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zEx4raGDY4v9_XrGbfGfvA.png" /><figcaption>InstantDrag pipeline — integration of FlowGen and FlowDiffusion</figcaption></figure><p><strong>Key Components of InstantDrag</strong></p><p>InstantDrag is composed of two specialized networks designed to handle distinct aspects of the drag-editing task:</p><p><strong>1. FlowGen (Flow Generator):</strong></p><ul><li><strong>Function:</strong> Generates dense optical flow from sparse user drag instructions.</li><li><strong>Architecture:</strong> A lightweight GAN-based model inspired by Pix2Pix, FlowGen efficiently translates user inputs into comprehensive motion dynamics without the need for iterative optimization.</li><li><strong>Training:</strong> Leveraging large-scale real-world video datasets, FlowGen learns to interpret various drag instructions, ensuring robust and accurate motion generation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MVWssBqP8YdzfoMY0Bao1A.png" /><figcaption>Architecture of FlowGen</figcaption></figure><p><strong>2. FlowDiffusion (Flow-Conditioned Diffusion Model):</strong></p><ul><li><strong>Function:</strong> Performs high-quality image edits based on the optical flow generated by FlowGen.</li><li><strong>Architecture:</strong> An optimized diffusion model that accepts flow conditions, enabling seamless and photo-realistic edits within approximately one second.</li><li><strong>Innovation:</strong> By integrating flow guidance directly into the denoising process, FlowDiffusion eliminates the reliance on text prompts and masks, streamlining the editing workflow.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AM6cgeXfjeTubsd3KobTRw.png" /><figcaption>Architecture of FlowDiffusion</figcaption></figure><p><strong>Unmatched Speed and Efficiency</strong></p><p>One of InstantDrag’s standout features is its remarkable speed. Traditional drag-based editing frameworks can take anywhere from tens of seconds to minutes to process an edit, largely due to multiple optimization steps. In stark contrast, InstantDrag delivers high-quality edits in roughly a second, making real-time interaction not just a possibility but a reality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*pJtz72pBGapEhoSXXJqUQQ.png" /><figcaption>Comparison chart showing InstantDrag’s processing time and memory usage versus other drag-based editing methods, highlighting InstantDrag’s superior speed and small memory.</figcaption></figure><p><strong>Preserving Image Quality and Consistency</strong></p><p>Maintaining the integrity and high-frequency details of the original image during edits is a critical challenge. InstantDrag excels in this area by leveraging its two-network approach. FlowGen ensures accurate motion generation, while FlowDiffusion maintains the image’s consistency and realism without introducing artifacts. This dual mechanism allows users to perform precise and natural edits, whether adjusting facial expressions or manipulating complex backgrounds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U5SGx0vhEWII45UdCnd6xQ.png" /><figcaption>InstantDrag comparision with other drag-based image editing models</figcaption></figure><p><strong>Versatility Across Domains</strong></p><p>While InstantDrag is primarily trained on facial video datasets, its design ensures impressive generalization capabilities. The framework successfully extends its drag-based editing prowess to diverse domains, including drawings, cartoons, and general scenes. This adaptability underscores InstantDrag’s potential as a versatile tool for a wide range of applications, from professional photo editing to creative digital art.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8O0C-HrimkAJ8_7ViRDkFw.png" /><figcaption>InstantDrag’s ability to edit general scenes with high precision and realism</figcaption></figure><p><strong>Applications and Impact</strong></p><p>InstantDrag’s real-time editing capabilities open up numerous possibilities across various fields:</p><ul><li><strong>Photography and Videography:</strong> Streamline post-processing workflows by making quick adjustments to facial expressions, backgrounds, and other elements.</li><li><strong>Digital Art and Design:</strong> Enable artists to experiment with different styles and compositions effortlessly.</li><li><strong>Gaming and Animation:</strong> Facilitate the creation of dynamic characters and environments with intuitive controls.</li><li><strong>Education and Training:</strong> Serve as a powerful tool for teaching image manipulation concepts interactively.</li></ul><p><strong>Demo: Experiencing InstantDrag in Action</strong></p><p>To witness InstantDrag’s capabilities firsthand, you can set up a simple interactive demo using the provided <a href="https://github.com/SNU-VGILab/InstantDrag">GitHub repository</a>. Below is a concise example to get you started:</p><pre># run_demo.py<br>import os<br>import torch<br>import gradio as gr<br>from huggingface_hub import snapshot_download<br>from demo_utils import InstantDragPipeline, process_img, get_points, undo_points_image, clear_all<br><br># Download pre-trained models<br>os.makedirs(&quot;checkpoints&quot;, exist_ok=True)<br>snapshot_download(&quot;alex4727/InstantDrag&quot;, local_dir=&quot;./checkpoints&quot;)<br><br># Initialize the pipeline<br>pipeline = InstantDragPipeline(seed=42, device=&quot;cuda&quot;, dtype=torch.float16)<br><br>def run_edit(original_image, selected_points, flowgen_ckpt, flowdiffusion_ckpt, image_guidance, flow_guidance, flowgen_output_scale, num_steps, save_results):<br>    pipeline.model_config = {<br>        &quot;flowgen_ckpt&quot;: flowgen_ckpt,<br>        &quot;flowdiffusion_ckpt&quot;: flowdiffusion_ckpt,<br>        &quot;image_guidance&quot;: image_guidance,<br>        &quot;flow_guidance&quot;: flow_guidance,<br>        &quot;flowgen_output_scale&quot;: flowgen_output_scale,<br>        &quot;n_inference_step&quot;: num_steps<br>    }<br>    pipeline.build_model()<br>    edited_image = pipeline.drag(original_image, selected_points, save_results)<br>    return edited_image<br><br># Gradio Interface<br>with gr.Blocks() as demo:<br>    gr.Markdown(&quot;# InstantDrag Demo: Real-Time Drag-Based Image Editing&quot;)<br>    with gr.Row():<br>        with gr.Column():<br>            canvas = gr.ImageEditor(label=&quot;Upload Image&quot;, type=&quot;numpy&quot;, tool=&quot;point&quot;)<br>            run_btn = gr.Button(&quot;Run Edit&quot;)<br>        with gr.Column():<br>            edited_image = gr.Image(label=&quot;Edited Image&quot;)<br>    run_btn.click(run_edit, inputs=[canvas, &quot;selected_points&quot;, &quot;flowgen_ckpt&quot;, &quot;flowdiffusion_ckpt&quot;, &quot;image_guidance&quot;, &quot;flow_guidance&quot;, &quot;flowgen_output_scale&quot;, &quot;num_steps&quot;, &quot;save_results&quot;], outputs=edited_image)<br><br>demo.launch()</pre><p><strong>Steps to Run the Demo:</strong></p><p><strong>1. Clone the Repository:</strong></p><pre>git clone https://github.com/alex4727/InstantDrag.git<br>cd InstantDrag</pre><p><strong>2. Set Up the Environment:</strong></p><pre>conda create -n instantdrag python=3.10 -y<br>conda activate instantdrag<br>pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cu121<br>pip install transformers==4.44.2 diffusers==0.30.1 accelerate==0.33.0 gradio==4.44.0 opencv-python</pre><p><strong>3. Run the demo:</strong></p><pre>cd demo/<br>CUDA_VISIBLE_DEVICES=0 python run_demo.py</pre><p><strong>Interact with the Interface:</strong></p><ul><li><strong>Upload an Image:</strong> Select an image to edit.</li><li><strong>Define Drag Points:</strong> Click and drag points on the image to specify source and target regions.</li><li><strong>Run Edit:</strong> Click the “Run Edit” button to see real-time changes.</li><li><strong>View Results:</strong> The edited image will appear instantly, showcasing the changes based on your drag instructions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*eBQpE9v4AwWvtVYBNheGwg.gif" /><figcaption>InstantDrag demo</figcaption></figure><p><strong>Conclusion</strong></p><p><strong>InstantDrag</strong> marks a significant advancement in the realm of interactive image editing. By seamlessly integrating GAN-based motion generation with diffusion models, it offers users a powerful yet intuitive tool for real-time image manipulation. Its ability to deliver high-quality edits in under a second, coupled with its versatility across various domains, makes InstantDrag a promising solution for both professionals and enthusiasts alike.</p><p>As digital content creation continues to evolve, tools like InstantDrag will play a crucial role in democratizing advanced editing capabilities, making them accessible and efficient for a broader audience. Whether you’re looking to enhance your photography, create stunning digital art, or streamline your editing workflow, InstantDrag provides the speed and precision needed to bring your creative visions to life.</p><p><strong>Call to Action</strong></p><p>Ready to revolutionize your image editing experience? Explore InstantDrag today by visiting its <a href="https://github.com/SNU-VGILab/InstantDrag">GitHub repository</a> and try out the interactive demo. Experience the future of drag-based image editing and unleash your creativity with unmatched speed and precision.</p><p><strong>References</strong></p><ul><li>Shin, J., Choi, D., &amp; Park, J. (2024). <a href="https://arxiv.org/abs/2409.08857">InstantDrag: Improving Interactivity in Drag-based Image Editing</a>. In <em>ACM SIGGRAPH Asia 2024 Conference Proceedings</em> (SA Conference Papers ’24), December 3–6, 2024, Tokyo, Japan. ACM.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97d470509eb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>