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

question about pruning at Residual connection of ResNet #1

Open
Yindong-Zhang opened this issue Jul 28, 2021 · 5 comments
Open

question about pruning at Residual connection of ResNet #1

Yindong-Zhang opened this issue Jul 28, 2021 · 5 comments

Comments

@Yindong-Zhang
Copy link

Dear author, this repo is a wonderful work. I am recently trouble by the residual connection when pruning using network slim. i read a little of your implementation and assume that there seem no specific manipulation to align the bottleneck input and residual ouput or in some cases, the downsampled input and the residual output. In the end, we have to add them together in ResNet. so alignment seems necessary.
Hope to get your answer.

@zjykzj
Copy link
Member

zjykzj commented Jul 28, 2021

Dear author, this repo is a wonderful work. I am recently trouble by the residual connection when pruning using network slim. i read a little of your implementation and assume that there seem no specific manipulation to align the bottleneck input and residual ouput or in some cases, the downsampled input and the residual output. In the end, we have to add them together in ResNet. so alignment seems necessary.
Hope to get your answer.

hi @Yindong-Zhang , in this repos, channel align is necessary when pruning model.

For ResNet, each bottleneck keep the same input/output (except the input of the first bottleneck) channels in every stage, so before pruning one stage, I counted each bottleneck's output pruning channel and choose the biggest one as the output channel number

@Yindong-Zhang
Copy link
Author

hi @Yindong-Zhang , in this repos, channel align is necessary when pruning model.

For ResNet, each bottleneck keep the same input/output (except the input of the first bottleneck) channels in every stage, so before pruning one stage, I counted each bottleneck's output pruning channel and choose the biggest one as the output channel number

what happened the case when bottlenecks' output pruning channels don't overlap with each other. choose the biggest one seems to be an approximation.

@zjykzj
Copy link
Member

zjykzj commented Jul 29, 2021

hi @Yindong-Zhang , in this repos, channel align is necessary when pruning model.
For ResNet, each bottleneck keep the same input/output (except the input of the first bottleneck) channels in every stage, so before pruning one stage, I counted each bottleneck's output pruning channel and choose the biggest one as the output channel number

what happened the case when bottlenecks' output pruning channels don't overlap with each other. choose the biggest one seems to be an approximation.

yes, because I want to fit the architecture of ResNet. If you have another solution, I look forward to knowing it

@Yindong-Zhang
Copy link
Author

hi @Yindong-Zhang , in this repos, channel align is necessary when pruning model.
For ResNet, each bottleneck keep the same input/output (except the input of the first bottleneck) channels in every stage, so before pruning one stage, I counted each bottleneck's output pruning channel and choose the biggest one as the output channel number

what happened the case when bottlenecks' output pruning channels don't overlap with each other. choose the biggest one seems to be an approximation.

yes, because I want to fit the architecture of ResNet. If you have another solution, I look forward to knowing it

thanks for your answer, actually i have no better solution. but comparative experimental may serve as a approving evidence for your strategy. hope to see it happen.

@zjykzj
Copy link
Member

zjykzj commented Jul 30, 2021

hi @Yindong-Zhang , in this repos, channel align is necessary when pruning model.
For ResNet, each bottleneck keep the same input/output (except the input of the first bottleneck) channels in every stage, so before pruning one stage, I counted each bottleneck's output pruning channel and choose the biggest one as the output channel number

what happened the case when bottlenecks' output pruning channels don't overlap with each other. choose the biggest one seems to be an approximation.

yes, because I want to fit the architecture of ResNet. If you have another solution, I look forward to knowing it

thanks for your answer, actually i have no better solution. but comparative experimental may serve as a approving evidence for your strategy. hope to see it happen.

enen, actually i have done some experiments about this repos. About the comparison between this repos and original paper, maybe yes maybe no. Again, the implementation of this ResNet pruning is just because I want to fit the architecture

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

2 participants