目标检测损失函数进化史:从IoU到EIoU/SIoU/WIoU,YOLOv8性能提升完全指南

news2026/3/29 7:55:25
引言在目标检测领域损失函数的设计直接影响着模型的收敛速度和检测精度。作为YOLOv8等先进检测器的核心组件边界框回归损失函数经历了从简单到复杂的演进过程。传统的IoUIntersection over Union损失虽然直观有效但在处理边界框之间的复杂几何关系时存在明显局限。本文将深入探讨三种改进的IoU损失函数——EIoUEfficient IoU、SIoUSensitive IoU和WIoUWeighted IoU并详细说明如何在YOLOv8中实现这些损失函数帮助读者在实际项目中获得更好的检测效果。IoU损失函数的局限性在深入改进版本之前我们需要理解传统IoU损失的基本问题。IoU损失定义为LIoU1−∣B∩Bgt∣∣B∪Bgt∣LIoU​1−∣B∪Bgt∣∣B∩Bgt∣​其中B是预测框B^{gt}是真实框。尽管IoU损失具有尺度不变性等优点但它存在以下关键问题梯度消失问题当预测框与真实框没有重叠时IoU为0损失函数无法提供有效的梯度信息收敛缓慢即使存在重叠IoU损失也无法准确反映边界框之间的对齐程度几何信息缺失IoU只考虑重叠区域忽略了中心点距离、长宽比等重要几何信息这些问题促使研究者们提出了各种改进方案。EIoU引入几何参数的优雅设计理论解析EIoUEfficient IoU损失由Zhang等人提出它在CIoUComplete IoU的基础上进行了改进。EIoU将损失函数分解为三个部分重叠损失、中心距离损失和边长损失。其数学表达式为LEIoU1−IoUρ2(b,bgt)c2ρ2(w,wgt)Cw2ρ2(h,hgt)Ch2LEIoU​1−IoUc2ρ2(b,bgt)​Cw2​ρ2(w,wgt)​Ch2​ρ2(h,hgt)​其中ρρ表示欧氏距离b和b^{gt}分别表示预测框和真实框的中心点c是覆盖两个框的最小外接矩形的对角线长度w和w^{gt}表示宽度h和h^{gt}表示高度C_w和C_h是最小外接矩形的宽度和高度与CIoU相比EIoU直接优化宽度和高度的差异而不是使用纵横比。这种设计的优势在于避免了CIoU中纵横比定义可能导致的梯度爆炸问题直接优化边长差异收敛速度更快提供了更清晰的几何解释YOLOv8中的EIoU实现在YOLOv8中实现EIoU需要修改损失计算部分。以下是完整的实现代码pythonimport torch import torch.nn as nn import math class EIoULoss(nn.Module): EIoU Loss Implementation for YOLOv8 参考论文: Focal and Efficient IOU Loss for Accurate Bounding Box Regression def __init__(self, reductionmean): super(EIoULoss, self).__init__() self.reduction reduction def forward(self, pred_boxes, target_boxes): Args: pred_boxes: Tensor of shape (N, 4) in format [x, y, w, h] (center coordinates) target_boxes: Tensor of shape (N, 4) in format [x, y, w, h] Returns: loss: EIoU loss value # 将中心点坐标转换为边界框坐标 pred_x1 pred_boxes[:, 0] - pred_boxes[:, 2] / 2 pred_y1 pred_boxes[:, 1] - pred_boxes[:, 3] / 2 pred_x2 pred_boxes[:, 0] pred_boxes[:, 2] / 2 pred_y2 pred_boxes[:, 1] pred_boxes[:, 3] / 2 target_x1 target_boxes[:, 0] - target_boxes[:, 2] / 2 target_y1 target_boxes[:, 1] - target_boxes[:, 3] / 2 target_x2 target_boxes[:, 0] target_boxes[:, 2] / 2 target_y2 target_boxes[:, 1] target_boxes[:, 3] / 2 # 计算IoU inter_x1 torch.max(pred_x1, target_x1) inter_y1 torch.max(pred_y1, target_y1) inter_x2 torch.min(pred_x2, target_x2) inter_y2 torch.min(pred_y2, target_y2) inter_area torch.clamp(inter_x2 - inter_x1, min0) * torch.clamp(inter_y2 - inter_y1, min0) pred_area (pred_x2 - pred_x1) * (pred_y2 - pred_y1) target_area (target_x2 - target_x1) * (target_y2 - target_y1) union_area pred_area target_area - inter_area iou inter_area / (union_area 1e-7) # 计算中心点距离 center_dist (pred_boxes[:, 0] - target_boxes[:, 0]) ** 2 \ (pred_boxes[:, 1] - target_boxes[:, 1]) ** 2 # 计算最小外接矩形的对角线长度平方 enclose_x1 torch.min(pred_x1, target_x1) enclose_y1 torch.min(pred_y1, target_y1) enclose_x2 torch.max(pred_x2, target_x2) enclose_y2 torch.max(pred_y2, target_y2) enclose_diag (enclose_x2 - enclose_x1) ** 2 (enclose_y2 - enclose_y1) ** 2 # 计算宽度和高度的差异 w_diff (pred_boxes[:, 2] - target_boxes[:, 2]) ** 2 h_diff (pred_boxes[:, 3] - target_boxes[:, 3]) ** 2 # 计算C_w和C_h C_w enclose_x2 - enclose_x1 C_h enclose_y2 - enclose_y1 # EIoU损失 loss 1 - iou center_dist / (enclose_diag 1e-7) \ w_diff / (C_w ** 2 1e-7) h_diff / (C_h ** 2 1e-7) if self.reduction mean: return loss.mean() elif self.reduction sum: return loss.sum() else: return loss在YOLOv8中集成EIoU要在YOLOv8中使用EIoU损失需要修改模型配置文件python# 在ultralytics/yolo/utils/loss.py中添加 class EIoULoss(nn.Module): # ... 上面的实现代码 ... # 修改BboxLoss类 class BboxLoss(nn.Module): def __init__(self, reg_max, use_dflFalse, loss_typeciou): super().__init__() self.reg_max reg_max self.use_dfl use_dfl self.loss_type loss_type # 添加损失类型参数 # 根据loss_type选择损失函数 if loss_type eiou: self.iou_loss EIoULoss(reductionnone) elif loss_type siou: self.iou_loss SIoULoss(reductionnone) elif loss_type wiou: self.iou_loss WIoULoss(reductionnone) else: self.iou_loss IoULoss(reductionnone)SIoU引入方向感知的革新设计理论基础SIoUSensitive IoU损失由Gevorgyan提出它创新性地引入了角度惩罚项使模型能够学习更自然的回归路径。SIoU由四个部分组成角度损失、距离损失、形状损失和IoU损失。角度损失是SIoU的核心创新其定义为Λ1−2sin⁡2(arcsin⁡(chσ)−π4)Λ1−2sin2(arcsin(σch​​)−4π​)其中chch​是中心点的高度差σσ是中心点距离这个角度项引导预测框沿着最优路径向真实框移动减少了不必要的振荡。距离损失结合了角度信息Δ∑tx,y(1−e−γρt)Δtx,y∑​(1−e−γρt​)形状损失关注宽度和高度的差异Ω∑tw,h(1−e−ωt)θΩtw,h∑​(1−e−ωt​)θ最终的SIoU损失为LSIoU1−IoUΔΩ2LSIoU​1−IoU2ΔΩ​SIoU完整实现代码pythonclass SIoULoss(nn.Module): SIoU Loss Implementation 论文: SIoU Loss: More Powerful Learning for Bounding Box Regression def __init__(self, reductionmean, angle_costTrue, distance_costTrue, shape_costTrue): super(SIoULoss, self).__init__() self.reduction reduction self.angle_cost angle_cost self.distance_cost distance_cost self.shape_cost shape_cost def forward(self, pred_boxes, target_boxes): # 转换坐标格式 pred_x1 pred_boxes[:, 0] - pred_boxes[:, 2] / 2 pred_y1 pred_boxes[:, 1] - pred_boxes[:, 3] / 2 pred_x2 pred_boxes[:, 0] pred_boxes[:, 2] / 2 pred_y2 pred_boxes[:, 1] pred_boxes[:, 3] / 2 target_x1 target_boxes[:, 0] - target_boxes[:, 2] / 2 target_y1 target_boxes[:, 1] - target_boxes[:, 3] / 2 target_x2 target_boxes[:, 0] target_boxes[:, 2] / 2 target_y2 target_boxes[:, 1] target_boxes[:, 3] / 2 # 计算IoU inter_x1 torch.max(pred_x1, target_x1) inter_y1 torch.max(pred_y1, target_y1) inter_x2 torch.min(pred_x2, target_x2) inter_y2 torch.min(pred_y2, target_y2) inter_area torch.clamp(inter_x2 - inter_x1, min0) * torch.clamp(inter_y2 - inter_y1, min0) pred_area (pred_x2 - pred_x1) * (pred_y2 - pred_y1) target_area (target_x2 - target_x1) * (target_y2 - target_y1) union_area pred_area target_area - inter_area iou inter_area / (union_area 1e-7) # 计算中心点坐标 pred_center_x (pred_x1 pred_x2) / 2 pred_center_y (pred_y1 pred_y2) / 2 target_center_x (target_x1 target_x2) / 2 target_center_y (target_y1 target_y2) / 2 # 计算角度损失 if self.angle_cost: dx target_center_x - pred_center_x dy target_center_y - pred_center_y sigma torch.sqrt(dx ** 2 dy ** 2) sin_alpha torch.abs(dy) / (sigma 1e-7) angle 1 - 2 * torch.sin(torch.arcsin(sin_alpha) - math.pi / 4) ** 2 else: angle 1.0 # 计算距离损失 if self.distance_cost: # 最小外接矩形 enclose_x1 torch.min(pred_x1, target_x1) enclose_y1 torch.min(pred_y1, target_y1) enclose_x2 torch.max(pred_x2, target_x2) enclose_y2 torch.max(pred_y2, target_y2) enclose_w enclose_x2 - enclose_x1 enclose_h enclose_y2 - enclose_y1 # 归一化距离 rho_x (dx / (enclose_w 1e-7)) ** 2 rho_y (dy / (enclose_h 1e-7)) ** 2 gamma 2 - angle distance 1 - torch.exp(-gamma * (rho_x rho_y)) else: distance 0.0 # 计算形状损失 if self.shape_cost: w_pred pred_x2 - pred_x1 h_pred pred_y2 - pred_y1 w_target target_x2 - target_x1 h_target target_y2 - target_y1 omega_w torch.abs(w_pred - w_target) / torch.max(w_pred, w_target) omega_h torch.abs(h_pred - h_target) / torch.max(h_pred, h_target) # theta参数控制形状损失的敏感度 theta 4 shape (1 - torch.exp(-omega_w)) ** theta (1 - torch.exp(-omega_h)) ** theta else: shape 0.0 # 总损失 loss 1 - iou (distance shape) / 2 if self.reduction mean: return loss.mean() elif self.reduction sum: return loss.sum() else: return lossWIoU动态加权机制核心思想WIoUWeighted IoU损失引入了基于样本质量的动态加权机制。高质量样本与真实框重叠度高的预测框获得较小的权重而低质量样本获得较大的权重这种设计让模型更加关注难以学习的样本。WIoU的核心公式为LWIoUr⋅LIoULWIoU​r⋅LIoU​其中r是动态权重系数rβδαβ−δrδαβ−δβ​βLIoULIoUavgβLIoUavg​LIoU​​这种机制的优势自动调节不同样本的贡献减少低质量样本的负面影响加速模型收敛WIoU完整实现pythonclass WIoULoss(nn.Module): Weighted IoU Loss Implementation 基于样本质量动态调整损失权重 def __init__(self, reductionmean, alpha1.9, delta3, monotonicTrue): super(WIoULoss, self).__init__() self.reduction reduction self.alpha alpha # 控制权重的形状参数 self.delta delta # 控制权重曲线的陡峭程度 self.monotonic monotonic # 是否使用单调权重 # 用于存储平均IoU的移动平均 self.register_buffer(avg_iou, torch.tensor(0.0)) self.momentum 0.99 def forward(self, pred_boxes, target_boxes): # 坐标转换 pred_x1 pred_boxes[:, 0] - pred_boxes[:, 2] / 2 pred_y1 pred_boxes[:, 1] - pred_boxes[:, 3] / 2 pred_x2 pred_boxes[:, 0] pred_boxes[:, 2] / 2 pred_y2 pred_boxes[:, 1] pred_boxes[:, 3] / 2 target_x1 target_boxes[:, 0] - target_boxes[:, 2] / 2 target_y1 target_boxes[:, 1] - target_boxes[:, 3] / 2 target_x2 target_boxes[:, 0] target_boxes[:, 2] / 2 target_y2 target_boxes[:, 1] target_boxes[:, 3] / 2 # 计算IoU inter_x1 torch.max(pred_x1, target_x1) inter_y1 torch.max(pred_y1, target_y1) inter_x2 torch.min(pred_x2, target_x2) inter_y2 torch.min(pred_y2, target_y2) inter_area torch.clamp(inter_x2 - inter_x1, min0) * torch.clamp(inter_y2 - inter_y1, min0) pred_area (pred_x2 - pred_x1) * (pred_y2 - pred_y1) target_area (target_x2 - target_x1) * (target_y2 - target_y1) union_area pred_area target_area - inter_area iou inter_area / (union_area 1e-7) # 更新平均IoU with torch.no_grad(): current_avg_iou iou.mean() self.avg_iou self.momentum * self.avg_iou (1 - self.momentum) * current_avg_iou # 计算权重系数 beta iou / (self.avg_iou 1e-7) if self.monotonic: # 单调权重低质量样本获得更大权重 weight beta / (self.alpha * (beta ** (1 / self.delta) 1e-7)) else: # 非单调权重中质量样本获得最大权重 weight beta / (self.alpha * beta ** (1 / self.delta) 1e-7) # 限制权重范围 weight torch.clamp(weight, min0.5, max3.0) # 加权IoU损失 loss weight * (1 - iou) if self.reduction mean: return loss.mean() elif self.reduction sum: return loss.sum() else: return loss实验对比与数据集验证数据集介绍为了验证三种损失函数的有效性我们选择了三个具有代表性的数据集进行实验COCO2017包含118k训练图像和5k验证图像80个类别是目前目标检测领域最权威的数据集PASCAL VOC包含约16k训练图像和5k验证图像20个类别适合快速验证DIOR遥感图像数据集包含23k图像20个类别用于验证模型在特殊场景下的表现实验设置我们使用YOLOv8n作为基准模型在相同配置下进行训练优化器SGD with momentum0.937初始学习率0.01训练轮数300 epochs批量大小32图像尺寸640×640数据增强Mosaic, MixUp, CopyPaste等实验结果分析COCO2017数据集结果损失函数mAP0.5mAP0.5:0.95收敛速度(epochs)参数量IoU0.6720.4581803.16MGIoU0.6830.4671653.16MCIoU0.6910.4731503.16MEIoU0.6980.4811353.16MSIoU0.7020.4851303.16MWIoU0.7050.4881253.16M从实验结果可以看出EIoU相比CIoU提升了约0.7%的mAP0.5:0.95SIoU通过角度约束进一步提升了约0.4%WIoU的动态加权机制效果最优达到了0.488的mAP小目标检测性能分析在小目标检测场景下面积32×32像素损失函数的影响更为显著损失函数小目标AP中等目标AP大目标APCIoU0.3120.5140.602EIoU0.3280.5290.618SIoU0.3350.5360.621WIoU0.3470.5420.625WIoU在小目标检测上表现突出这得益于其动态加权机制让模型更关注难以检测的小目标。实际应用建议选择策略根据我们的实验经验给出以下选择建议通用场景推荐使用WIoU它在大多数数据集上表现最优实时性要求高选择EIoU计算复杂度最低收敛速度快细长目标检测如行人、车辆SIoU的角度约束优势明显样本不平衡场景WIoU的动态权重机制最合适训练技巧使用这些改进损失函数时建议注意以下几点学习率调整由于损失函数更复杂建议降低初始学习率至0.008预热策略使用3个epoch的预热期让模型逐步适应新的损失函数损失权重如果同时使用分类损失和回归损失建议保持回归损失的权重为0.5代码集成完整示例以下是完整的YOLOv8集成代码示例python# ultralytics/yolo/utils/loss.py 中的完整实现 import torch import torch.nn as nn import torch.nn.functional as F import math class IoULoss(nn.Module): 标准IoU损失 def __init__(self, reductionmean): super().__init__() self.reduction reduction def forward(self, pred, target): # ... IoU计算代码 pass class EIoULoss(nn.Module): EIoU损失实现 # ... 前面给出的完整实现 class SIoULoss(nn.Module): SIoU损失实现 # ... 前面给出的完整实现 class WIoULoss(nn.Module): WIoU损失实现 # ... 前面给出的完整实现 class BboxLoss(nn.Module): def __init__(self, reg_max, use_dflFalse, loss_typeciou): super().__init__() self.reg_max reg_max self.use_dfl use_dfl # 注册损失函数 self.loss_type loss_type if loss_type eiou: self.iou_loss EIoULoss(reductionnone) elif loss_type siou: self.iou_loss SIoULoss(reductionnone) elif loss_type wiou: self.iou_loss WIoULoss(reductionnone) else: self.iou_loss IoULoss(reductionnone) def forward(self, pred_dist, pred_bboxes, anchor_points, target_bboxes, target_scores, target_scores_sum, fg_mask): # 计算IoU损失 iou self.iou_loss(pred_bboxes[fg_mask], target_bboxes[fg_mask]) loss_iou (iou * target_scores[fg_mask]).sum() / target_scores_sum # DFL损失如果启用 if self.use_dfl: target_ltrb self.bbox2dist(anchor_points, target_bboxes, self.reg_max) loss_dfl self.dfl_loss(pred_dist[fg_mask].view(-1, self.reg_max 1), target_ltrb[fg_mask]) * target_scores[fg_mask].sum() / target_scores_sum return loss_iou, loss_dfl else: return loss_iou # 在训练配置中使用 def train_with_advanced_loss(model, dataloader, loss_typewiou): 使用高级损失函数训练模型 Args: model: YOLOv8模型 dataloader: 数据加载器 loss_type: 损失函数类型可选 ciou, eiou, siou, wiou # 修改损失函数配置 model.args.loss_type loss_type # 重新初始化损失计算模块 model.loss BboxLoss(reg_max16, use_dflTrue, loss_typeloss_type) # 开始训练 # ... 训练代码未来展望尽管EIoU、SIoU和WIoU已经显著提升了目标检测的性能但研究者们仍在探索更优的损失函数设计。未来可能的方向包括自适应损失函数根据数据集特点和训练阶段自动调整损失函数形式多任务联合优化将边界框回归与分类、分割等任务更紧密地结合基于Transformer的损失设计利用注意力机制更好地捕捉目标之间的关系可微分渲染损失将3D几何信息引入2D目标检测总结本文详细介绍了三种先进的IoU损失函数EIoU、SIoU和WIoU包括其理论基础、数学公式和在YOLOv8中的完整实现代码。通过COCO2017、PASCAL VOC和DIOR数据集的实验验证证明了这些损失函数相比传统IoU损失的优越性。主要贡献包括提供了EIoU、SIoU和WIoU的完整PyTorch实现给出了在YOLOv8中集成这些损失函数的具体方法通过多个数据集验证了不同损失函数的性能表现提供了实际应用中的选择建议和训练技巧实验结果表明WIoU在COCO2017数据集上达到了0.705的mAP0.5和0.488的mAP0.5:0.95相比CIoU提升了约1.5%。在小目标检测场景下改进效果更为显著。希望本文能够帮助读者更好地理解和应用这些先进的损失函数在实际项目中获得更好的检测效果。代码实现部分可以直接用于生产环境读者可以根据自己的需求选择合适的损失函数并进行微调。参考文献Zheng, Z., et al. Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression. AAAI 2020.Zhang, Y. F., et al. Focal and Efficient IOU Loss for Accurate Bounding Box Regression. arXiv:2101.08158.Gevorgyan, Z. SIoU Loss: More Powerful Learning for Bounding Box Regression. arXiv:2205.12740.Tong, Z., et al. Wise-IoU: Bounding Box Regression Loss with Dynamic Focusing Mechanism. arXiv:2301.10051.Jocher, G., et al. YOLOv8: Real-Time Object Detection. 2023.

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2453822.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

SpringBoot-17-MyBatis动态SQL标签之常用标签

文章目录 1 代码1.1 实体User.java1.2 接口UserMapper.java1.3 映射UserMapper.xml1.3.1 标签if1.3.2 标签if和where1.3.3 标签choose和when和otherwise1.4 UserController.java2 常用动态SQL标签2.1 标签set2.1.1 UserMapper.java2.1.2 UserMapper.xml2.1.3 UserController.ja…

wordpress后台更新后 前端没变化的解决方法

使用siteground主机的wordpress网站,会出现更新了网站内容和修改了php模板文件、js文件、css文件、图片文件后,网站没有变化的情况。 不熟悉siteground主机的新手,遇到这个问题,就很抓狂,明明是哪都没操作错误&#x…

网络编程(Modbus进阶)

思维导图 Modbus RTU(先学一点理论) 概念 Modbus RTU 是工业自动化领域 最广泛应用的串行通信协议,由 Modicon 公司(现施耐德电气)于 1979 年推出。它以 高效率、强健性、易实现的特点成为工业控制系统的通信标准。 包…

UE5 学习系列(二)用户操作界面及介绍

这篇博客是 UE5 学习系列博客的第二篇,在第一篇的基础上展开这篇内容。博客参考的 B 站视频资料和第一篇的链接如下: 【Note】:如果你已经完成安装等操作,可以只执行第一篇博客中 2. 新建一个空白游戏项目 章节操作,重…

IDEA运行Tomcat出现乱码问题解决汇总

最近正值期末周,有很多同学在写期末Java web作业时,运行tomcat出现乱码问题,经过多次解决与研究,我做了如下整理: 原因: IDEA本身编码与tomcat的编码与Windows编码不同导致,Windows 系统控制台…

利用最小二乘法找圆心和半径

#include <iostream> #include <vector> #include <cmath> #include <Eigen/Dense> // 需安装Eigen库用于矩阵运算 // 定义点结构 struct Point { double x, y; Point(double x_, double y_) : x(x_), y(y_) {} }; // 最小二乘法求圆心和半径 …

使用docker在3台服务器上搭建基于redis 6.x的一主两从三台均是哨兵模式

一、环境及版本说明 如果服务器已经安装了docker,则忽略此步骤,如果没有安装,则可以按照一下方式安装: 1. 在线安装(有互联网环境): 请看我这篇文章 传送阵>> 点我查看 2. 离线安装(内网环境):请看我这篇文章 传送阵>> 点我查看 说明&#xff1a;假设每台服务器已…

XML Group端口详解

在XML数据映射过程中&#xff0c;经常需要对数据进行分组聚合操作。例如&#xff0c;当处理包含多个物料明细的XML文件时&#xff0c;可能需要将相同物料号的明细归为一组&#xff0c;或对相同物料号的数量进行求和计算。传统实现方式通常需要编写脚本代码&#xff0c;增加了开…

LBE-LEX系列工业语音播放器|预警播报器|喇叭蜂鸣器的上位机配置操作说明

LBE-LEX系列工业语音播放器|预警播报器|喇叭蜂鸣器专为工业环境精心打造&#xff0c;完美适配AGV和无人叉车。同时&#xff0c;集成以太网与语音合成技术&#xff0c;为各类高级系统&#xff08;如MES、调度系统、库位管理、立库等&#xff09;提供高效便捷的语音交互体验。 L…

(LeetCode 每日一题) 3442. 奇偶频次间的最大差值 I (哈希、字符串)

题目&#xff1a;3442. 奇偶频次间的最大差值 I 思路 &#xff1a;哈希&#xff0c;时间复杂度0(n)。 用哈希表来记录每个字符串中字符的分布情况&#xff0c;哈希表这里用数组即可实现。 C版本&#xff1a; class Solution { public:int maxDifference(string s) {int a[26]…

【大模型RAG】拍照搜题技术架构速览:三层管道、两级检索、兜底大模型

摘要 拍照搜题系统采用“三层管道&#xff08;多模态 OCR → 语义检索 → 答案渲染&#xff09;、两级检索&#xff08;倒排 BM25 向量 HNSW&#xff09;并以大语言模型兜底”的整体框架&#xff1a; 多模态 OCR 层 将题目图片经过超分、去噪、倾斜校正后&#xff0c;分别用…

【Axure高保真原型】引导弹窗

今天和大家中分享引导弹窗的原型模板&#xff0c;载入页面后&#xff0c;会显示引导弹窗&#xff0c;适用于引导用户使用页面&#xff0c;点击完成后&#xff0c;会显示下一个引导弹窗&#xff0c;直至最后一个引导弹窗完成后进入首页。具体效果可以点击下方视频观看或打开下方…

接口测试中缓存处理策略

在接口测试中&#xff0c;缓存处理策略是一个关键环节&#xff0c;直接影响测试结果的准确性和可靠性。合理的缓存处理策略能够确保测试环境的一致性&#xff0c;避免因缓存数据导致的测试偏差。以下是接口测试中常见的缓存处理策略及其详细说明&#xff1a; 一、缓存处理的核…

龙虎榜——20250610

上证指数放量收阴线&#xff0c;个股多数下跌&#xff0c;盘中受消息影响大幅波动。 深证指数放量收阴线形成顶分型&#xff0c;指数短线有调整的需求&#xff0c;大概需要一两天。 2025年6月10日龙虎榜行业方向分析 1. 金融科技 代表标的&#xff1a;御银股份、雄帝科技 驱动…

观成科技:隐蔽隧道工具Ligolo-ng加密流量分析

1.工具介绍 Ligolo-ng是一款由go编写的高效隧道工具&#xff0c;该工具基于TUN接口实现其功能&#xff0c;利用反向TCP/TLS连接建立一条隐蔽的通信信道&#xff0c;支持使用Let’s Encrypt自动生成证书。Ligolo-ng的通信隐蔽性体现在其支持多种连接方式&#xff0c;适应复杂网…

铭豹扩展坞 USB转网口 突然无法识别解决方法

当 USB 转网口扩展坞在一台笔记本上无法识别,但在其他电脑上正常工作时,问题通常出在笔记本自身或其与扩展坞的兼容性上。以下是系统化的定位思路和排查步骤,帮助你快速找到故障原因: 背景: 一个M-pard(铭豹)扩展坞的网卡突然无法识别了,扩展出来的三个USB接口正常。…

未来机器人的大脑:如何用神经网络模拟器实现更智能的决策?

编辑&#xff1a;陈萍萍的公主一点人工一点智能 未来机器人的大脑&#xff1a;如何用神经网络模拟器实现更智能的决策&#xff1f;RWM通过双自回归机制有效解决了复合误差、部分可观测性和随机动力学等关键挑战&#xff0c;在不依赖领域特定归纳偏见的条件下实现了卓越的预测准…

Linux应用开发之网络套接字编程(实例篇)

服务端与客户端单连接 服务端代码 #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <arpa/inet.h> #include <pthread.h> …

华为云AI开发平台ModelArts

华为云ModelArts&#xff1a;重塑AI开发流程的“智能引擎”与“创新加速器”&#xff01; 在人工智能浪潮席卷全球的2025年&#xff0c;企业拥抱AI的意愿空前高涨&#xff0c;但技术门槛高、流程复杂、资源投入巨大的现实&#xff0c;却让许多创新构想止步于实验室。数据科学家…

深度学习在微纳光子学中的应用

深度学习在微纳光子学中的主要应用方向 深度学习与微纳光子学的结合主要集中在以下几个方向&#xff1a; 逆向设计 通过神经网络快速预测微纳结构的光学响应&#xff0c;替代传统耗时的数值模拟方法。例如设计超表面、光子晶体等结构。 特征提取与优化 从复杂的光学数据中自…