当前位置:网站首页>知识蒸馏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
边栏推荐
- leetcode-399: division evaluation
- 19.支持向量机-优化目标和大间距直观理解
- Go 项目实战-获取多级分类下的全部商品
- Real-time image acquisition based on FPGA
- Charging effect simulation
- LeetCode 每日一题 2022/7/25-2022/7/31
- Drools basic introduction, introductory case, basic syntax
- multiplayer-hlap 包有问题,无法升级的解决方案
- The difference between link and @import
- uniapp uses 3rd party fonts
猜你喜欢
随机推荐
Linux下redis7的安装,启动与停止
To write good test cases, you must first learn test design
Basic introduction to ShardingJDBC
User interaction + formatted output
Installation, start and stop of redis7 under Linux
Intranet Infiltration - Privilege Escalation
[1154] How to convert string to datetime
C语言小程序 -- 常见经典练习题
The real CTO is a technical person who understands products
【AcWing 62nd Weekly Game】
f.grid_sample
Project development software directory structure specification
PDF split/merge
What have I experienced to become a tester who is harder than development?
AI在医疗影像设备全流程应用
用户交互+格式化输出
ShardingJDBC使用总结
PDF 拆分/合并
The application of AI in the whole process of medical imaging equipment
AI中的数学思想








