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

How to replace DepthConv3*3 ? #3

Open
fushh opened this issue Sep 29, 2021 · 3 comments
Open

How to replace DepthConv3*3 ? #3

fushh opened this issue Sep 29, 2021 · 3 comments

Comments

@fushh
Copy link

fushh commented Sep 29, 2021

I notice that you have used SlimConv in MobileNet V2. But I confuse that how to replace DepthConv3*3 with SlimConv.
Looking forward to your reply.

@fushh
Copy link
Author

fushh commented Sep 29, 2021

I don't know how to let k=8/3

@JiaxiongQ
Copy link
Owner

  1. Modify line29-30: reduce_1 = 4
    reduce_2 = 8;
  2. Modify line58-62: fs1 = torch.split(out1, c // 4, 1)
    fs2 = torch.split(out2, c // 4, 1)
    fs1 = fs1[0] + fs1[1] + fs1[2] + fs1[3]
    fs2 = fs2[0] + fs2[1] + fs2[2] + fs2[3].

@fushh
Copy link
Author

fushh commented Sep 29, 2021

Thanks for your help!

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