YOLO 系列:格子、训练责任与不断变化的检测头
The YOLO family
推导初版 YOLO 的格子与损失,运行可检查的检测头和 v3 解码,再沿固定版本比较家族分支。
yolo谁来预测这辆自行车?
设想一张同时有自行车和行人的街景图。检测器需要认出它们,并画出边界框。R-CNN 系列把候选区域作为显式环节;初版 YOLO 则让整张图一次产生一组固定数量的框与类别输出。YOLO 是 You Only Look Once 的缩写,指检测器从整图网络前向中做预测,不意味着没有训练、特征提取或后处理。
把图像划成 S×S 个格子。目标中心落在哪个格子,就由哪个格子承担该目标的训练责任。一辆大自行车可能横跨许多格子,但中心仍决定责任格子。每格预测 B 个框,却只共享一组 K 个类别值;每框有四个几何输出和一个置信输出。因此,标量输出总数为
CVPR2016 论文采用 S=7、B=2、K=20:共 1,470 个标量,描述 98 个候选框。这并非 98 个可以独立分类的区域。同格两个框共享类别值,这种区别同时解释了表示为何紧凑,以及拥挤格子为何难处理。YOLOv1 第2节
如今,YOLO 名称覆盖多条研究和软件分支,数字并不是同一团队连续发布的统一版本序列。先理解初版机制,再问后续系统究竟改了什么:输出表示、特征、目标分配、训练损失,还是推理流程。
从格子输出到框与训练信号
解码初版表示
行 r、列 c 都从零开始计数。初版 x/y 输出表示格子内偏移,宽高相对于整张图像。下面的实现保存带符号的根尺寸输出 s_w、s_h;解码后的归一化中心和尺寸为
中心减去、加上半个尺寸便得到两个角点。需要像素坐标时,横坐标乘图像宽度,纵坐标乘图像高度。初版论文的末层是线性的,不能把它误读成 sigmoid 对偏移或分数在零到一之间的保证。根输出约定对应固定 Darknet 实现中的 sqrt=1。初版架构与训练、固定训练与解码实现
用 a 表示框置信值,p_k 表示格子的类别值。置信值的目标含义是目标存在性与定位质量的乘积,而 p_k 表示有目标条件下的类别。类别检测分数将两者相乘:
假设某格的类别值为 [0.8,0.2],两个框的置信值为 [0.7,0.2],分数行便是 [0.56,0.14] 与 [0.16,0.04]。它们共享相对类别偏好。这种秩为一的分数结构无法独立表达“第一个框是自行车,第二个框是行人”。线性原始输出也未必是校准概率。YOLOv1 第2节
先分配责任,再求梯度
对每个目标,在其中心所在格子中,将 B 个解码框分别与真实框计算交并比(IoU)。论文把责任交给当前 IoU 最大的预测器。固定 Darknet 实现在所有 IoU 都为零时,用中心与尺寸距离兜底。教学实现遇到完全相同的候选时选第一个;同一格子里有两个目标则明确拒绝,不悄悄丢弃其中一个。责任与损失、实现细节
令 R 是负责的“格子—预测器”对集合,O 是有目标的格子集合。u 包含四个原始几何输出,u* 是编码后的目标,q 是负责框当前的 IoU,y 是格子的独热类别目标。对本次更新固定责任与 q 后,示例明确计算以下平方误差目标:
编码目标依次是格子内 x 偏移、y 偏移、宽度的正平方根、高度的正平方根。有目标格子中的非负责框仍受到无物体置信惩罚。背景格子有置信监督,却没有框坐标或类别目标。这组掩码遵循固定实现,“no object”不能被理解成“只对没有目标的格子生效”。论文公式3、置信初始化与负责框替换
对于负责框,这个显式目标的导数为
这些是对所示输出槽位的真实导数,不穿过离散责任选择,也不穿过 q 求导。如果扰动坐标时重新计算 IoU,就在检查另一个函数。原 Darknet 手工更新使用按比例的“目标减输出”,符号和因子约定不同;其最终 cost 还被这些更新量的平方范数覆盖,不能直接拿这个诊断数值与上式对账。固定实现
平方根表示也有一个容易忽略的结果:原始根 +0.5 和 −0.5 都解码成宽度 0.25,但对目标根 +0.5,它们的坐标误差不同。解码框相同不意味着训练损失相同。差异来自参数化,而非 IoU 不同。
v2 与 v3 改了什么
YOLOv2 移除全连接检测层,相对于 anchor 形状预测框。它以 1−IoU 为距离对训练框尺寸聚类,为每个 anchor 预测类别,不再由格子共享类别向量。它还加入批归一化,将较高分辨率的特征引入检测图,并在训练中改变输入分辨率。YOLO9000 是相关的检测与分类联合训练系统,不能把每个 YOLOv2 模型都称作同一个 YOLO9000 模型。YOLO9000 v1 第2节与引言
设特征格子偏移为 c、r,原始输出为 t,anchor 尺寸为 p_w、p_h。v2/v3 用 sigmoid 解码中心,用指数表示相对尺寸。下面把格子设为 H×W,并约定 anchor 尺寸已经相对于图像归一化:
尺寸 logit 为零时保留 anchor 尺寸,为 ln 2 时尺寸翻倍。中心 logit 为零时,中心位于格子正中。与初版线性中心输出不同,在数学上,有限 logit 经 sigmoid 后让中心留在预测它的格子内;浮点饱和可能达到端点。YOLOv2 直接位置预测、YOLOv3 第2.1节
YOLOv3 用独立 sigmoid 与二元交叉熵预测类别,允许标签重叠,而不是要求 softmax 选一个互斥类别。它的 objectness 目标约定也不同于初版用 IoU 重打分的置信值。论文描述三个检测尺度,通过上采样与拼接,把较粗的语义特征和较细的空间特征结合起来;Darknet-53 特征提取器使用残差连接。因此,“anchor-free”并不是所有 YOLO 都具有的属性。YOLOv3 第2.1—2.4节
v3 每个尺度有 H×W×A×(5+K) 个输出,A 是每格 anchor 数。假设三个特征图为 13×13、26×26、52×52,每格三个 anchor、80 类,就得到 10,647 个框和 904,995 个标量。这是根据给定形状算出的数量,不是测得的精度或主干计算成本。
看清分支,而不是排版本榜
下表定位本版范围内的主要分支。原始资料支持所述研究方向;只核读概览的记录不证明所有内部细节,也不代表复现了作者报告的收益。
| 分支与时期 | 值得追问的变化 | 依据 |
|---|---|---|
| YOLOv4,2020;Bochkovskiy、Wang、Liao | 组合架构、数据增强和训练选择,包括 Mosaic 与自对抗训练;改进不一定来自某一个新层 | 原始摘要 |
| YOLOv5,2020 起;Ultralytics | 原 v1.0 配置有三组 anchor 和多尺度输出;后来的 YOLOv5u 文档描述无预设 anchor、无独立 objectness 的分离头,不能混用两者模型格式 | 原配置、v5u 文档 |
| YOLOX,2021;Ge 等 | anchor-free、分离预测分支和 SimOTA 目标分配;输出几何与选择哪些正训练候选是不同问题 | 原始摘要 |
| YOLOv6,2022;Li 等 | 工业部署、训练方法与量化;网络之外,还要检查部署表示和运行时 | 原始摘要 |
| YOLOv7,2022;Wang、Bochkovskiy、Liao | 改善实时检测器的训练技术;应区分哪些变化作用于训练,哪些作用于推理 | 原始摘要与标题 |
| YOLOv8,2023;Ultralytics | anchor-free 分离预测头;文档记载发布日期为2023年1月10日 | 固定官方概览 |
| YOLOv9,2024;Wang、Yeh、Liao | 可编程梯度信息 PGI 与 GELAN:把训练梯度路径和网络聚合作为明确设计对象 | 原始摘要 |
| YOLOv10,2024;Wang 等 | 一致性双重分配旨在让推理不再需要独立 NMS 步骤;这是具体的训练与推理设计 | 原始摘要 |
| YOLO11,2024;Ultralytics | 继续改变特征与训练;固定配置保留 P3/P4/P5 输出,列出 C3k2 与 C2PSA 模块 | 官方概览、配置 |
| YOLOv12,2025;Tian、Ye、Doermann | 在实时计算约束下,将注意力作为检测器的核心设计选择 | 原始摘要 |
| YOLOv13,2025;Lei 等 | 作者提出 HyperACE 与 FullPAD,研究高阶特征关系及跨网络信息分配 | 原始摘要 |
| YOLO26,2026;Ultralytics | 截点文档描述默认一对一、免 NMS 路径,移除 Distribution Focal Loss,以及 MuSGD/Progressive Loss/STAL 训练配方 | 固定官方文档 |
这张图谱没有穷举每个使用 YOLO 名称的派生项目。“数字更高”也不证明发表更晚或性能更好:v7 首篇报告是2022年7月,所引 v6 报告则是同年9月。比较必须说清仓库、版本、模型尺寸、任务、数据和推理配置;名称本身不提供这些条件。
一个可以逐项核对数字的小检测头
下面的原创 NumPy 程序从给定特征向量运行完整的小线性输出头,分配目标,计算四项损失及输出梯度,做一次权重更新,再解码框和类别分数。第二个解码器演示 v3 的 anchor 与独立类别表示。程序不含 CNN 主干、图像识别训练、v3 训练或 NMS。候选打分后,可继续阅读已有的 NMS 章。
手工选择的初值使第一个负责框完全准确。其置信值为 0.7,而目标 IoU 为 1,所以贡献 0.09。另一框的置信值贡献 0.5×0.2²=0.02。类别值 [0.8,0.2] 对目标 [1,0] 的误差为 0.08,总损失为 0.19。特征向量的范数为一,让步长 0.1 的权重更新对应简单的输出空间更新;固定目标的损失变为 0.125。
"""Original YOLO-v1-style grid-head surrogate; structured slots, not a Darknet binary layout."""
import numpy as np
def inspect(prediction, boxes_per_cell):
p = np.asarray(prediction, dtype=float)
if type(boxes_per_cell) is not int or boxes_per_cell < 1:
raise ValueError('boxes_per_cell must be a positive integer')
if p.ndim != 3 or p.shape[0] < 1 or p.shape[0] != p.shape[1]:
raise ValueError('prediction must be an S-by-S-by-P grid')
classes = p.shape[2] - 5*boxes_per_cell
if classes < 1 or not np.isfinite(p).all():
raise ValueError('finite box/confidence slots and at least one class required')
return p, p.shape[0], classes
def decode(prediction, boxes_per_cell=2):
"""Slots per box: cell x/y offsets, signed root width/height, confidence."""
p, side, classes = inspect(prediction, boxes_per_cell)
raw = p[..., :5*boxes_per_cell].reshape(side, side, boxes_per_cell, 5)
row, col = np.indices((side, side))
xy = (raw[..., :2] + np.stack([col, row], axis=-1)[..., None, :])/side
with np.errstate(over='ignore', invalid='ignore'):
size = raw[..., 2:4]**2
corners = np.concatenate([xy-size/2, xy+size/2], axis=-1)
scores = raw[..., 4, None] * p[..., None, 5*boxes_per_cell:]
if not np.isfinite(corners).all() or not np.isfinite(scores).all():
raise ValueError('decoded outputs exceed numerical range')
return corners, scores
def overlap(a, b):
"""Half-open xyxy; predicted zero area is allowed, truth has positive area."""
lengths = np.r_[a[2:]-a[:2], b[2:]-b[:2]]
scale = lengths.max()
if scale <= 0 or not np.isfinite(lengths).all() or (lengths < 0).any():
raise ValueError('invalid box lengths')
lengths /= scale
intersection = (np.maximum(0, np.minimum(a[2:],b[2:])-np.maximum(a[:2],b[:2]))/scale).prod()
union = lengths[:2].prod()+lengths[2:].prod()-intersection
if union <= 0 or not np.isfinite(union):
raise ValueError('invalid union area')
return float(intersection/union)
def assign(prediction, truth, boxes_per_cell=2):
"""Freeze assignment and IoU targets. Truth rows: (class, cx, cy, width, height)."""
p, side, classes = inspect(prediction, boxes_per_cell)
corners, _ = decode(p, boxes_per_cell)
records, occupied = [], set()
for class_id, cx, cy, width, height in truth:
if type(class_id) is not int or not 0 <= class_id < classes:
raise ValueError('invalid class id')
target = np.array([cx, cy, width, height], dtype=float)
if not np.isfinite(target).all() or not (0 <= cx < 1 and 0 <= cy < 1 and 0 < width <= 1 and 0 < height <= 1):
raise ValueError('truth needs normalized centers and positive sizes at most one')
row, col = int(cy*side), int(cx*side)
if (row,col) in occupied:
raise ValueError('two truth objects in one cell cannot fit this target representation')
occupied.add((row,col))
gt = np.r_[target[:2]-target[2:]/2, target[:2]+target[2:]/2]
ious = np.array([overlap(b,gt) for b in corners[row,col]])
if ious.max() > 0:
winner = int(np.argmax(ious))
else:
b = corners[row,col]
center_size = np.c_[(b[:,:2]+b[:,2:])/2, b[:,2:]-b[:,:2]]
winner = int(np.argmin(np.linalg.norm(center_size-target,axis=1)))
encoded = np.array([cx*side-col, cy*side-row, np.sqrt(width), np.sqrt(height)])
records.append((row,col,winner,class_id,encoded,float(ious[winner])))
return records
def objective(prediction, plan, boxes_per_cell=2, coord_weight=5., noobject_weight=.5):
"""Explicit SSE surrogate and its true gradient, with the supplied plan held fixed."""
p, side, classes = inspect(prediction, boxes_per_cell)
if not np.isfinite([coord_weight,noobject_weight]).all() or min(coord_weight,noobject_weight) < 0:
raise ValueError('weights must be finite and nonnegative')
raw = p[...,:5*boxes_per_cell].reshape(side,side,boxes_per_cell,5)
gradient = np.zeros_like(p)
gbox = gradient[...,:5*boxes_per_cell].reshape(side,side,boxes_per_cell,5)
conf = raw[...,4]
gbox[...,4] = 2*noobject_weight*conf
parts = {'coordinate':0., 'object':0., 'noobject':float(noobject_weight*np.sum(conf**2)), 'class':0.}
used = set()
for row,col,winner,class_id,target,iou_target in plan:
if not (0 <= row < side and 0 <= col < side and 0 <= winner < boxes_per_cell and 0 <= class_id < classes):
raise ValueError('plan indices outside grid')
if (row,col) in used:
raise ValueError('duplicate cell in plan')
used.add((row,col))
target = np.asarray(target,float)
if target.shape != (4,) or not np.isfinite(target).all() or not np.isfinite(iou_target) or not 0 <= iou_target <= 1:
raise ValueError('invalid frozen target')
error = raw[row,col,winner,:4]-target
parts['coordinate'] += float(coord_weight*np.sum(error**2))
gbox[row,col,winner,:4] = 2*coord_weight*error
value = conf[row,col,winner]
parts['noobject'] -= float(noobject_weight*value**2)
parts['object'] += float((value-iou_target)**2)
gbox[row,col,winner,4] = 2*(value-iou_target)
expected = np.zeros(classes)
expected[class_id] = 1.
error = p[row,col,5*boxes_per_cell:] - expected
parts['class'] += float(np.sum(error**2))
gradient[row,col,5*boxes_per_cell:] = 2*error
return float(sum(parts.values())), parts, gradient
def linear_head(features, weights, side, boxes_per_cell, classes):
"""All grid slots see the same full-image feature vector; no CNN backbone here."""
x, w = np.asarray(features,float), np.asarray(weights,float)
if any(type(n) is not int or n < 1 for n in [side,boxes_per_cell,classes]):
raise ValueError('head dimensions must be positive integers')
count = side*side*(5*boxes_per_cell+classes)
if x.ndim != 1 or w.shape != (len(x),count) or not np.isfinite(x).all() or not np.isfinite(w).all():
raise ValueError('invalid feature/weight shapes or values')
return (x @ w).reshape(side,side,5*boxes_per_cell+classes)
def decode_v3(prediction, anchors):
"""H x W x A x (5+C) logits; anchor widths/heights are image-normalized."""
p, a = np.asarray(prediction,float), np.asarray(anchors,float)
if (p.ndim != 4 or min(p.shape[:3]) < 1 or p.shape[-1] < 6
or a.shape != (p.shape[2],2) or not np.isfinite(p).all()
or not np.isfinite(a).all() or (a <= 0).any()):
raise ValueError('finite grid logits and positive A-by-2 anchors required')
height, width = p.shape[:2]
row, col = np.indices((height,width))
def sigmoid(x):
e = np.exp(-np.abs(x))
return np.where(x >= 0, 1/(1+e), e/(1+e))
xy = (sigmoid(p[...,:2])+np.stack([col,row],axis=-1)[...,None,:2])/[width,height]
with np.errstate(over='ignore',invalid='ignore'):
size = a*np.exp(p[...,2:4])
corners = np.concatenate([xy-size/2,xy+size/2],axis=-1)
if not np.isfinite(corners).all():
raise ValueError('decoded outputs exceed numerical range')
scores = sigmoid(p[...,4,None])*sigmoid(p[...,5:])
return corners, scores
if __name__ == '__main__':
# Initial weights are chosen for hand-computable outputs, not learned recognition.
desired = np.array([.5,.5,np.sqrt(.4),np.sqrt(.2),.7, .1,.1,.2,.2,.2, .8,.2])
image_features = np.r_[np.arange(1,5.)/4, 1.]
image_features /= np.linalg.norm(image_features)
weights = np.outer(image_features,desired)
p = linear_head(image_features,weights,1,2,2)
truth = [(0,.5,.5,.4,.2)]
plan = assign(p,truth)
value, parts, gradient = objective(p,plan)
updated = weights-.1*np.outer(image_features,gradient.ravel())
next_p = linear_head(image_features,updated,1,2,2)
print('responsible box:',plan[0][2])
print('loss parts:',{k:round(v,6) for k,v in parts.items()})
print('fixed-plan loss:',round(value,6),'->',round(objective(next_p,plan)[0],6))
print('class-0 scores:',np.round(decode(p)[1][0,0,:,0],6).tolist())
v3_boxes, v3_scores = decode_v3(np.zeros((1,1,1,7)), [[.4,.2]])
print('v3 zero-logit box:',np.round(v3_boxes[0,0,0],6).tolist())
print('v3 independent-class scores:',v3_scores[0,0,0].tolist())
在记录中的 Python 3.12 / NumPy 1.26.4 环境实际输出:
responsible box: 0
loss parts: {'coordinate': 0.0, 'object': 0.09, 'noobject': 0.02, 'class': 0.08}
fixed-plan loss: 0.19 -> 0.125
class-0 scores: [0.56, 0.16]
v3 zero-logit box: [0.3, 0.4, 0.7, 0.6]
v3 independent-class scores: [0.25, 0.25]
若给定特征数为 F、输出槽数为 N,稠密头耗时 O(FN),保存 FN 个权重。初版风格解码耗时 O(S²BK),随后匹配 M 个目标耗时 O(MB);assign 函数会先解码格子,所以其完整成本包含这两项。损失与梯度计算为 O(S²(B+K))。这些成本不含特征提取器。v3 解码与提供的框—类别输出数成线性关系;即使 Python 函数不变,提高格子分辨率也会增加计算。
实现边界需要说清。逐格打包的数组不是 Darknet 的扁平内存布局;代码采用论文的 B=2,固定 yolov1.cfg 则是 B=3、1,715 输出。距离兜底总会选最近框,不复刻原代码初始距离上界20或可选 forced/random 分支。归一化目标中心在图内时,框的一部分仍可能伸出图像;示例不裁剪框。固定配置、实现
配套检查在多个格子与不同数组布局上用有限差分核对所有输出导数,验证线性头权重梯度,并检查背景、同分、零面积预测、目标碰撞、负根与 v3 解码。它们证明小程序的行为,不证明真实照片上的检测精度。
输出设计只是检测器的一部分
初版共享类别向量限制了拥挤格子的表示,粗网格也可能难以区分相邻小目标。后续逐 anchor 或 anchor-free 输出改变了瓶颈,却没有让小目标数据、目标分配或特征分辨率失去意义。“Anchor-free”表示该设计不使用预设 anchor 形状,不表示没有空间坐标或无需正目标分配。
一次网络前向仍可能产生重复框。初版 YOLO 讨论了 NMS;免 NMS 的说法属于特定后续设计与配置。本版关于 YOLO26 的表述绑定2026年9月4日截点的官方仓库。之后访问的实时文档对默认和可选路径使用了不同措辞,因此不能悄悄替换固定版本。初版推理、截点文档
做实际应用时,先定义哪些漏检和误报代价最大。评估要使用相同数据划分、标签政策与 IoU 指标,说明输入尺寸、模型大小、硬件、精度、batch size,以及计时是否包含前后处理;还要在实际部署路径记录延迟分布和内存。另一套环境公布的 FPS 无法替你决定部署方案。参见目标检测评测。
从四个角度检查机制
1. 数清真正独立的输出
初版风格检测器取 S=7、B=2、K=20。它产生多少框、多少标量?同格两个框能否独立选择类别偏好?
答案:共有49×2=98个框、49×(10+20)=1,470个标量。类别向量由格子共享;乘以两个不同置信值只能改变分数尺度,不能改变类别之间的相对偏好。
2. 改动非负责框的置信值
保持示例中的负责框与类别值不变,将另一框的置信值从0.2提高到0.4。总损失如何变化?
答案:该项从0.5×0.2²=0.02变为0.5×0.4²=0.08,总损失从0.19增至0.25。虽然它位于有目标的格子,仍因不承担责任而具有无物体置信目标。
3. 同一个框,不同的梯度
两个输出分别使用宽度根+0.5与−0.5,目标根为+0.5。解码宽度和坐标惩罚分别是否相同?宽度根坐标项的导数各是多少?
答案:宽度都是0.25;加权惩罚分别为0与5×(−1)²=5,导数分别为0与−10。解码中的平方不意味着训练目标忽略根的符号。
4. 把计算迁移到 anchor 头
H=2、W=3的格子在第1行、第2列预测一个框,中心logit为零。归一化anchor尺寸为[0.1,0.3],尺寸logit为[ln 2,ln 0.5]。中心和尺寸是多少?只知道模型叫“YOLO”,能否判断推理需要NMS?
答案:中心为[2.5/3,1.5/2]=[5/6,0.75],尺寸为[0.2,0.15]。家族名称不能确定后处理路径,要查看具体版本与推理配置;解码器本身不会消除重复框。
通过接口约定阅读检测架构
读每篇论文或仓库时,记下五件事:每个输出表示什么,目标怎样选择正输出,哪些损失作用到哪些输出,原始值怎样变成框与分数,推理怎样处理重复候选。这比堆叠模块名称更有助于比较方法。
先读初版表示与损失,再读v2的anchor参数化、v3的逐框类别与尺度部分,随后用分支图谱定位下一条研究线索。较新论文条目是基于摘要的限定介绍,不是完整论文导读、独立核实的性能排名,也不表示本章实现了每个具名架构。上文程序、公式与习题答案对应实际展示的计算范围。
先判断,再看解释
初版风格B=2示例中,一个预测框负责目标;同格另一个框受到哪种训练信号?
学习目标
- 推导初版格子输出、责任分配及掩码平方误差梯度。
- 比较格子共享类别与逐anchor类别,并解码多尺度YOLOv3检测头。
- 用固定版本追踪主要YOLO分支,通过评测条件而非版本号选择方法。
先修与延伸
查看知识关联图 →参考文献
- You Only Look Once: Unified, Real-Time Object Detection — CVPR2016 method
Joseph Redmon; Santosh Divvala; Ross Girshick; Ali Farhadi · 2016 - Darknet detection layer — fixed implementation profile
Joseph Redmon and Darknet contributors · 2022 - Darknet yolov1.cfg — S=7, B=3, 1715 outputs
Darknet contributors · 2022 - YOLO9000: Better, Faster, Stronger
Joseph Redmon , Ali Farhadi · 2016 - YOLOv3: An Incremental Improvement
Joseph Redmon , Ali Farhadi · 2018 - YOLOv4: Optimal Speed and Accuracy of Object Detection
Alexey Bochkovskiy , Chien-Yao Wang , Hong-Yuan Mark Liao · 2020 - YOLOX: Exceeding YOLO Series in 2021
Zheng Ge , Songtao Liu , Feng Wang , Zeming Li , Jian Sun · 2021 - YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications
Chuyi Li , Lulu Li , Hongliang Jiang , Kaiheng Weng , Yifei Geng , Liang Li , Zaidan Ke , Qingyuan Li , Meng Cheng , Weiqiang Nie , Yiduo Li , Bo Zhang , Yufei Liang , Linyuan Zhou , Xiaoming Xu , Xiangxiang Chu , Xiaoming Wei , Xiaolin Wei · 2022 - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors
Chien-Yao Wang , Alexey Bochkovskiy , Hong-Yuan Mark Liao · 2022 - YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information
Chien-Yao Wang , I-Hau Yeh , Hong-Yuan Mark Liao · 2024 - YOLOv10: Real-Time End-to-End Object Detection
Ao Wang , Hui Chen , Lihao Liu , Kai Chen , Zijia Lin , Jungong Han , Guiguang Ding · 2024 - YOLOv12: Attention-Centric Real-Time Object Detectors
Yunjie Tian , Qixiang Ye , David Doermann · 2025 - YOLOv13: Real-Time Object Detection with Hypergraph-Enhanced Adaptive Visual Perception
Mengqi Lei , Siqi Li , Yihong Wu , Han Hu , You Zhou , Xinhu Zheng , Guiguang Ding , Shaoyi Du , Zongze Wu , Yue Gao · 2025 - yolov5 — official documentation at the edition cutoff
Ultralytics · 2026 - yolov8 — official documentation at the edition cutoff
Ultralytics · 2026 - yolo11 — official documentation at the edition cutoff
Ultralytics · 2026 - yolo26 — official documentation at the edition cutoff
Ultralytics · 2026 - YOLOv5s configuration at the v1.0 tag commit
Ultralytics · 2020 - YOLO11 configuration at the edition cutoff
Ultralytics · 2026
版本1 · 编写状态: 已完成记录中的技术复核
查看技术检查记录(AI)
Codex · 2026-09-07 · Codex single-AI-author technical check: bounded original papers and pinned official code/docs, independent finite differences and box references, and section-by-section bilingual comparison. Later-paper abstracts support only the stated overview directions; no independent human review, full detector training or benchmark reproduction.
- 用手算与独立有限差分核对初版风格显式损失及全部输出/权重梯度;验证掩码、同分、零IoU、负根、碰撞、空目标、非法输入与v3 anchor/独立类别解码。十三项计算加一项双语结构检查,不含完整CNN训练。
- 逐节对照完整双语的表示、假设、六组展示公式、数值例子、四组答案、19项引用目标、版本边界与来源读取限制;明确原始代码和截点配置差异,不采用性能主张。
- 按内容质量表核对独立检测头问题、机制解释、反例、包含解码的匹配复杂度、如实的小模型范围和实际来源证据;不宣称历史或基准复现。
- 冻结后将正式双语程序中的K×K单位矩阵分配改为长度K的独热向量,保持值和梯度,同时使所述线性类别成本准确;原冻结文件不变,重新运行14项正式检查。
- 首次构建拒绝两组多行aligned公式,原因是美元分隔符未独占行;正式双语改为独占行,不改变数学表达,保留冻结稿。最终构建与页面检查使用修正版。
核对的来源位置:
- You Only Look Once: Unified, Real-Time Object Detection — CVPR2016 method · Read physical pages 2–4: grid representation, architecture, training loss, inference and limitations; page 4 equation 3 visually checked. No benchmark reproduction.
- Darknet detection layer — fixed implementation profile · Read training and decoding at fixed commit f6afaabcdf85f77e7aff2ec55c020c0e297c77f9. Responsibility, zero-IoU distance fallback, sqrt/rescore, manual delta and diagnostic cost. Root LICENSE declares public domain; no code copied or run.
- Darknet yolov1.cfg — S=7, B=3, 1715 outputs · Read final connected/detection sections. This configuration has three boxes per cell; the CVPR paper has two. No configuration execution.
- YOLO9000: Better, Faster, Stronger · Physical pages 2–4 section 2; page 3 YOLO decoding equations visually checked. No benchmark adoption. Its arXiv v1 submission page separately gives 25 December 2016.
- YOLOv3: An Incremental Improvement · Physical pages 1–2 sections 2.1–2.4; page 1 equations visually checked. No full detector training.
- YOLOv4: Optimal Speed and Accuracy of Object Detection · Read title, authors, v1 date and abstract only. Supports the stated research direction, not a full architecture/experiment review or performance comparison.
- YOLOX: Exceeding YOLO Series in 2021 · Read title, authors, v1 date and abstract only. Supports the stated research direction, not a full architecture/experiment review or performance comparison.
- YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications · Read title, authors, v1 date and abstract only. Supports the stated research direction, not a full architecture/experiment review or performance comparison.
- YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors · Read title, authors, v1 date and abstract only. Supports the stated research direction, not a full architecture/experiment review or performance comparison.
- YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information · Read title, authors, v1 date and abstract only. Supports the stated research direction, not a full architecture/experiment review or performance comparison.
- YOLOv10: Real-Time End-to-End Object Detection · Read title, authors, v1 date and abstract only. Supports the stated research direction, not a full architecture/experiment review or performance comparison.
- YOLOv12: Attention-Centric Real-Time Object Detectors · Read title, authors, v1 date and abstract only. Supports the stated research direction, not a full architecture/experiment review or performance comparison.
- YOLOv13: Real-Time Object Detection with Hypergraph-Enhanced Adaptive Visual Perception · Read title, authors, v1 date and abstract only. Supports the stated research direction, not a full architecture/experiment review or performance comparison.
- yolov5 — official documentation at the edition cutoff · Read Overview and Key Features at commit d1c644a6085045ae18dfaecf1b2c10efedaa080b (4 September 2026). Later live documentation is separate. No speed/accuracy claims adopted.
- yolov8 — official documentation at the edition cutoff · Read Overview and Key Features at commit d1c644a6085045ae18dfaecf1b2c10efedaa080b (4 September 2026). Later live documentation is separate. No speed/accuracy claims adopted.
- yolo11 — official documentation at the edition cutoff · Read Overview and Key Features at commit d1c644a6085045ae18dfaecf1b2c10efedaa080b (4 September 2026). Later live documentation is separate. No speed/accuracy claims adopted.
- yolo26 — official documentation at the edition cutoff · Read Overview and Key Features at commit d1c644a6085045ae18dfaecf1b2c10efedaa080b (4 September 2026). Later live documentation is separate. No speed/accuracy claims adopted.
- YOLOv5s configuration at the v1.0 tag commit · Read anchor lists and multi-scale model configuration; tag points to a commit dated 25 June 2020, not proof of the first public release day. No code reuse or execution.
- YOLO11 configuration at the edition cutoff · Read configuration: C3k2, C2PSA and P3/P4/P5 outputs. AGPL-3.0 header observed; linked as a reference, no code copied or run.
相关主题