当前位置:网站首页>Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
2022-07-31 03:37:00 【@BangBang】
Code Description
Differences from yolov5-v6.1 code:
- data/hyps/hyp.scratch-low-distillation.yaml (added file, obtained by modifying hyp.scratch-low.yaml)
- utils/loss.py adds a function compute_distillation_output_loss
- train_distillation.py (added file, obtained by modifying train.py)
hyp.scratch-low-distillation.yaml
- Compared with the original
hyp.scratch-low.yaml
, this file has moredist
hyperparameters, which can be adjusted in the range of [0,1], close to 1The network will pay more attention to the distillation loss, and if it is close to 0, it will prefer thedetection
loss. This grass parameter is used to balance the detection loss and the distillation loss. - There are also corresponding weighted losses for
box loss, clss loss, obj loss
.
utils/loss.py
utils/loss.py
add a function compute_distillation_output_loss
边栏推荐
- 进程间通信
- Addition and Subtraction of Scores in LeetCode Medium Questions
- Safety 20220722
- LeetCode每日一练 —— 138. 复制带随机指针的链表
- Automation strategies for legacy systems
- "DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
- The Map Entry understanding and application
- Day32 LeetCode
- How Zotero removes auto-generated tags
- The BP neural network
猜你喜欢
SIP Protocol Standard and Implementation Mechanism
The distance value between two arrays of LeetCode simple questions
分布式系统架构需要解决的问题
IDEA常用快捷键与插件
IIR filter and FIR filter
Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
postgresql 15源码浅析(5)—— pg_control
Web container and IIS --- Middleware penetration method 1
LocalDate加减操作及比较大小
STM32 problem collection
随机推荐
分布式锁以及实现方式三种
Pytest电商项目实战(上)
【HCIP】ISIS
Day32 LeetCode
IDEA comment report red solution
SIP Protocol Standard and Implementation Mechanism
【AUTOSAR-RTE】-4-Port和Interface以及Data Type
How Zotero removes auto-generated tags
IDEA常用快捷键与插件
递归查询单表-单表树结构-(自用)
web容器及IIS --- 中间件渗透方法1
A brief introduction to the showDatePicker method of the basic components of Flutter
type_traits元编程库学习
浅识Flutter 基本组件之CheckBox组件
How to develop a high-quality test case?
Addition and Subtraction of Scores in LeetCode Medium Questions
Point Cloud DBSCAN Clustering (MATLAB, not built-in function)
(五)final、抽象类、接口、内部类
beforeDestroy与destroyed的使用
SIP协议标准和实现机制