当前位置:网站首页>知识蒸馏7:知识蒸馏代码详解
知识蒸馏7:知识蒸馏代码详解
2022-07-31 02:21:00 【@BangBang】
代码说明
与yolov5-v6.1代码的区别:
- data/hyps/hyp.scratch-low-distillation.yaml(添加的文件,修改hyp.scratch-low.yaml得到)
- utils/loss.py 添加一个函数compute_distillation_output_loss
- train_distillation.py( 添加的文件,修改train.py得到)
hyp.scratch-low-distillation.yaml

- 该文件相对于原来的
hyp.scratch-low.yaml,多了dist超参数 ,可以在[0,1]范围内调整,接近1的话网络会更重视蒸馏损失,靠近0的话就更倾向于detection损失,该草参数用来平衡detection 损失和蒸馏损失。 - 对于
box loss ,clss loss,obj loss也有对应的加权损失。
utils/loss.py
utils/loss.py 添加一个函数compute_distillation_output_loss
边栏推荐
- Inner monologue from a female test engineer...
- AtCoder Beginner Contest 261 Partial Solution
- 【AcWing 62nd Weekly Game】
- 拒绝加班,程序员开发的效率工具集
- f.grid_sample
- Mathematics to solve the problem - circular linked list
- Software Testing Defect Reporting - Definition, Composition, Defect Lifecycle, Defect Tracking Post-Production Process, Defect Tracking Process, Purpose of Defect Tracking, Defect Management Tools
- String为什么不可变?
- Can an inexperienced college graduate switch to software testing?my real case
- Is there a way to earn 300 yuan a day by doing a side business?
猜你喜欢

基于opencv实现人脸检测

After reading "MySQL Database Advanced Practice" (SQL Xiao Xuzhu)

Maximum area of solar panel od js

数学解决——环形链表问题
![The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]](/img/8a/28427aa773e46740eda9e95f6669f2.png)
The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]

How to do a startup CTO?

Intranet Infiltration - Privilege Escalation

MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi

Linux下redis7的安装,启动与停止

leetcode-952: Calculate max component size by common factor
随机推荐
完整复制虚拟机原理(云计算)
直播预告 | KDD2022博士论文奖冠亚军对话
全流程调度——MySQL与Sqoop
To write good test cases, you must first learn test design
[1153] The boundary range of between in mysql
uniapp uses 3rd party fonts
[1154]如何将字符串转换为datetime
User interaction + formatted output
基于FPGA的图像实时采集
Problems that need to be solved by the tcp framework
mmdetection训练一个模型相关命令
Static route analysis (the longest mask matching principle + active and standby routes)
Unity界面总体介绍
print task sorting js od huawei
系统需求多变如何设计
Draw Your Cards
Real-time image acquisition based on FPGA
Verify the integer input
如何在 go 程序中暴露 Prometheus 指标
BAT卖不动「医疗云」:医院逃离、山头林立、行有行规