Comments (4)
我们对一个batch内的logit(尺寸为BxK),求K维度的标准差(尺寸为Bx1)和均值(尺寸为Bx1),然后做标准化,具体可以查看论文和代码
from logit-standardization-kd.
感谢您,但是我具体想问的是,例如论文中的图3的第一行,每一类的logit的值和标准差是如何求出来的呢
from logit-standardization-kd.
你可以查看刚上传的https://github.com/sunshangquan/logit-standardization-KD/blob/master/tools/visualizations/correlation.ipynb (图3和图5)以及https://github.com/sunshangquan/logit-standardization-KD/blob/master/tools/visualizations/tsne.ipynb (图4),里面的模型文件需要替换成您自己的,我预计明后上传一下里面用到的模型weight
图3的第一行是只展示了一个sample(即B=1),所以直接求当前sample的mean和std就好
from logit-standardization-kd.
谢谢!
from logit-standardization-kd.
Related Issues (13)
- Distributed training for ImageNet HOT 2
- 迁移实验 & 学生模型 HOT 5
- 实现层面 HOT 4
- 交叉熵损失的作用是什么 HOT 2
- 怎么迁移到多标签分类任务上? HOT 2
- config HOT 1
- 想问一下关于CE_WEIGHT的问题 HOT 2
- Missing configuration to reproduce "KD + Ours" result of ResNet-18 student with ResNet-34 teacher HOT 8
- 关于蒸馏Vit的问题 HOT 2
- Teacher model configurations
- cannot reproduce the results? HOT 12
- Question about kd_weight HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logit-standardization-kd.