Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shape '[512, 256, 3, 3]' is invalid for input of size 357392 #11

Closed
noobliang opened this issue Dec 4, 2019 · 6 comments
Closed

shape '[512, 256, 3, 3]' is invalid for input of size 357392 #11

noobliang opened this issue Dec 4, 2019 · 6 comments

Comments

@noobliang
Copy link

你好, 我训练自己的数据,经过基础训练,稀疏训练, 和shortcut_prune剪枝, tensorboard 和 剪枝结果都是正常的, 但是最后我用剪枝后的权重跑detect.py 时候报错了,shape '[512, 256, 3, 3]' is invalid for input of size 357392.. 请问经过shortcut_prune剪枝之后得到的权重是否还要处理?...

@noobliang
Copy link
Author

你好, 我训练自己的数据,经过基础训练,稀疏训练, 和shortcut_prune剪枝, tensorboard 和 剪枝结果都是正常的, 但是最后我用剪枝后的权重跑detect.py 时候报错了,shape '[512, 256, 3, 3]' is invalid for input of size 357392.. 请问经过shortcut_prune剪枝之后得到的权重是否还要处理?...

蠢了,,, 刚刚发现还生成了配置文件,没用上=_=

@tanluren
Copy link
Owner

tanluren commented Dec 4, 2019

嗯嗯剪枝后模型结构发生了改变,所以会生成新的cfg,加上权重你还可以移植到其他框架。剪通道的话试试slim prune效果可能更好哦

@noobliang
Copy link
Author

嗯嗯剪枝后模型结构发生了改变,所以会生成新的cfg,加上权重你还可以移植到其他框架。剪通道的话试试slim prune效果可能更好哦

恩恩, 感谢你的回复, 我想问下,你有没有尝试过 将导出的onnx 转换成tensorrt, 这一步我遇到了困难,一直转不成功。

@Gaondong
Copy link

Gaondong commented Dec 4, 2019

@noobliang 感谢推荐 哈哈 从别的项目过来的,看了一遍issues又看到了你的评论,可否留个联系方式,我后面也要做onnx tensorrt,可以一起讨论

@noobliang
Copy link
Author

noobliang commented Dec 4, 2019 via email

@Gaondong
Copy link

Gaondong commented Dec 4, 2019

@noobliang 我的微信gjdfighting,你的账号搜索不到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants