Comments (3)
问题一:你说的问题正是策略二的不合理的地方,这在剪枝率小的时候问题不大,剪枝率大的时候掉点厉害。你说的方案不够完善,不能解决通道对应问题,改变规则也导致无法兼容其他项目,你可以看看我改的另一个版本tanluren/YOLOv3-extreme-pruning,就是重新定义了shortcut的计算;再建议看看策略三,较完美解决了这个问题,实验中它的效果也最好。
问题二:从通道的输出来说是公平的,CBL结构从卷积到bn到激活,在bn这个环节是被bn weight和bias直接控制了通道的输出大小的,而bias是常量,输出就看weight了,如果weight被压缩至接近0,这个通道的输出就基本接近常量了,剪掉影响也不大;这的确是简单粗暴的评价方法,不同层的原始分布也不同,你可以尝试更复杂的策略去做修剪;但shortcut对weight有什么影响?没直接影响
from yolov3-channel-and-layer-pruning.
从通道的输出来说是公平的,CBL结构从卷积到bn到激活,在bn这个环节是被bn weight和bias直接控制了通道的输出大小的,而bias是常量,输出就看weight了,如果weight被压缩至接近0,这个通道的输出就基本接近常量了,剪掉影响也不大;这的确是简单粗暴的评价方法,不同层的原始分布也不同,你可以尝试更复杂的策略去做修剪;但shortcut对weight有什么影响?没直接影响
是的。我正在看策略三。
十分感谢您的回复。
from yolov3-channel-and-layer-pruning.
大牛,我想问一个问题,我觉的论文《Learning Efficient Convolutional Networks Through Network Slimming》中给出的损失函数是针对需要剪枝的BN层的,而网络的最后层的损失函数还是经典的yolov3的损失函数,可以这样理解吗?
期待您的回复。十分感谢
from yolov3-channel-and-layer-pruning.
Related Issues (20)
- Can I use this to prune model MobileNetv2-Yolov4
- ValueError: not enough values to unpack (expected 2, got 1)
- 关于稀疏训练和剪枝的阈值
- 进行yolov4稀疏化训练 HOT 3
- 关于其他数据集标注格式要进行的代码修改
- 为什么稀疏训练和剪枝都要将yolov3赋给darknet?
- What are the flags -sr ,--s 0.001 ,--prune 1 --global_percent flag while doing pruning
- 刚开始推理时,GPU内存占用持续增加
- 训练时候出现一个问题 soft rratio是0测试时候 P R mAP F1也是nan这种情况怎么办呢
- The P R F1-score and [email protected] are around 90% after sparse training (--s 0.001 --prune 0). Still the sparse model is not performing well on the test dataset.
- 通道剪枝的时候遇到问题~ HOT 1
- 请问支持分组卷积的枝剪吗 HOT 1
- data文件夹下的.shapes文件需要自己准备吗?
- ValueError: Number of rows must be a positive integer, not 4.0 HOT 3
- 剪枝改进后的模型
- RuntimeError: shape '[128, 64, 3, 3]' is invalid for input of size 7067 训练v3报错
- 可以正常剪枝,但是微调并没有提升map,且微调后的bn_weight的大部分值仍接近0?
- How to transfor the pt model to ONNX format
- 在windows下没有生成val.shapes
- 没有models.yolo
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 yolov3-channel-and-layer-pruning.