ArticleslgStudy

computer science

You Only Look Once

You Only Look Once is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand You Only Look Once rather than just read about it. In short: You Only Look Once (YOLO) is a series of real-time object detection systems based on convolutional neural networks. First introduced by Joseph Redmon et al. in 2015, YOLO has undergone several iterations and improvements, becoming one of the most popular object detection frameworks.

You Only Look Once — main illustration
You Only Look Once — illustration

Key takeaways

  • You Only Look Once belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect You Only Look Once to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of You Only Look Once from memory before moving on to harder problems.

Reference excerpt

You Only Look Once (YOLO) is a series of real-time object detection systems based on convolutional neural networks. First introduced by Joseph Redmon et al. in 2015, YOLO has undergone several iterations and improvements, becoming one of the most popular object detection frameworks. The name "You Only Look Once" refers to the fact that the algorithm requires only one forward propagation pass through the neural network to make predictions, unlike previous region proposal-based techniques like R-CNN that require thousands for a single image.

Overview Compared to previous methods like R-CNN and OverFeat, instead of applying the model to an image at multiple locations and scales, YOLO applies a single neural network to the full image. This network divides the image into regions and predicts bounding boxes and probabilities for each region. These bounding boxes are weighted by the predicted probabilities.

OverFeat OverFeat was an early influential model for simultaneous object classification and localization. Its architecture is as follows:

Train a neural network for image classification only ("classification-trained network"). This could be one like the AlexNet. The last layer of the trained network is removed, and for every possible object class, initialize a network module at the last layer ("regression network"). The base network has its parameters frozen. The regression network is trained to predict the (x,y) coordinates of two corners of the object's bounding box. During inference time, the classification-trained network is run over the same image over many different zoom levels and croppings. For each, it outputs a class label and a probability for that class label. Each output is then processed by the regression network of the corresponding class. This results in thousands of bounding boxes with class labels and probability. These boxes are merged until only one single box with a single class label remains.

Versions There are two parts to the YOLO series. The original part contained YOLOv1, v2, and v3, all released on a website maintained by Joseph Redmon.

YOLOv1 The original YOLO algorithm, introduced in 2015, divides the image into an S×S grid of cells. If the center of an object's bounding box falls into a grid cell, that cell is said to "contain" that object. Each grid cell predicts B bounding boxes and confidence scores for those boxes. These confidence scores reflect how confident the model is that the box contains an object and how accurate it thinks the box is that it predicts. In more detail, the network performs the same convolutional operation over each of the S2patches. The output of the network on each patch is a tuple as follows:(p1,…,pC,c1,x1,y1,w1,h1,…,cB,xB,yB,wB,hB)where

pi is the conditional probability that the cell contains an object of class i, conditional on the cell containing at least one object. xj,yj,wj,hj are the center coordinates, width, and height of the j-th predicted bounding box that is centered in the cell. Multiple bounding boxes are predicted to allow each prediction to specialize in one kind of bounding box. For example, slender objects might be predicted by j=2 while stout objects might be predicted by j=1. cj is the predicted intersection over union (IoU) of each bounding box with its corresponding ground truth. The network architecture has 24 convolutional layers followed by 2 fully connected layers. During training, for each cell, if it contains a ground truth bounding box, then only the predicted bounding boxes with the highest IoU with the ground truth bounding boxes is used for gradient descent. Concretely, let j be that predicted bounding box, and let i be the ground truth class label, then xj,yj,wj,hj are trained by gradient descent to approach the ground truth, pi is trained towards 1, other pi′ are trained towards zero. If a cell contains no ground truth, then only c1,c2,…,cB are trained by gradient descent to approach zero.

YOLOv2 Released in 2016, YOLOv2 (also known as YOLO9000) improved upon the original model by incorporating batch normalization, a higher resolution classifier, and using anchor boxes to predict bounding boxes. It could detect over 9000 object categories. It was also released on GitHub under the Apache 2.0 license.

YOLOv3 YOLOv3, introduced in 2018, contained only "incremental" improvements, including the use of a more complex backbone network, multiple scales for detection, and a more sophisticated loss function.

YOLOv4 and beyond Subsequent versions of YOLO (v4, v5, etc.) have been developed by different researchers, further improving performance and introducing new features. These versions are not officially associated with the original YOLO authors but build upon their work. As of 2026, versions up to YOLO26 have been released.

See also Computer vision Object detection Convolutional neural network R-CNN SqueezeNet MobileNet EfficientNet

References

External links Official YOLO website YOLO implementation in Darknet

Illustrations

You Only Look Once: Objects detected with OpenCV's Deep Neural Network module by using a YOLOv3 model trained on COCO dataset capable to detect objects of 80 common classes
Objects detected with OpenCV's Deep Neural Network module by using a YOLOv3 model trained on COCO dataset capable to detect objects of 80 common classes

Worked examples

Example 1 — a first encounter with You Only Look Once

Start with the simplest possible case. Write down what You Only Look Once claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to You Only Look Once before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about You Only Look Once ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of You Only Look Once

In research
You Only Look Once appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses You Only Look Once in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
You Only Look Once is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer vision, Deep learning, Neural networks, so understanding it makes those chapters shorter.
In everyday life
Look for You Only Look Once outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “You Only Look Once” →

How to study You Only Look Once in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what You Only Look Once means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain You Only Look Once out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is You Only Look Once in simple terms?

You Only Look Once (YOLO) is a series of real-time object detection systems based on convolutional neural networks. First introduced by Joseph Redmon et al. in 2015, YOLO has undergone several iterations and improvements, becoming one of the most popular object detection frameworks.

Why does You Only Look Once matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study You Only Look Once?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on You Only Look Once.

Tags

  • Computer vision
  • Deep learning
  • Neural networks

Keep exploring