当前位置:网站首页>知识蒸馏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
边栏推荐
- Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?
- [1154]如何将字符串转换为datetime
- LeetCode Daily Question 2022/7/25-2022/7/31
- MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi
- How to design the changing system requirements
- multiplayer-hlap 包有问题,无法升级的解决方案
- AI中的数学思想
- Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?
- [Map and Set] LeetCode & Niu Ke exercise
- The effective square of the test (one question of the day 7/29)
猜你喜欢

What level of software testing does it take to get a 9K job?

Tower of Hanoi problem

Drools基本介绍,入门案例,基本语法

Introduction and use of Drools WorkBench

静态路由+PAT+静态NAT(讲解+实验)

f.grid_sample

完整复制虚拟机原理(云计算)

Layer 2 broadcast storm (cause + judgment + solution)

STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道

Observer mode (1)
随机推荐
Drools规则属性,高级语法
934. The Shortest Bridge
Pythagorean tuple od js
英特尔软硬优化,赋能东软加速智慧医疗时代到来
C语言小程序 -- 常见经典练习题
BAT can't sell "Medical Cloud": Hospitals flee, mountains stand, and there are rules
221. Largest Square
User interaction + formatted output
系统需求多变如何设计
Unity界面总体介绍
The modification is not properly placed in the sandbox, causing Apple compatibility issues
[Map and Set] LeetCode & Niu Ke exercise
MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
BAT卖不动「医疗云」:医院逃离、山头林立、行有行规
STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
全流程调度——MySQL与Sqoop
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
mmdetection trains a model related command
PDF split/merge
真正的CTO,是一个懂产品的技术人