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

why it is so slow to use the caffe engine #32

Closed
andeyeluguo opened this issue Oct 12, 2017 · 5 comments
Closed

why it is so slow to use the caffe engine #32

andeyeluguo opened this issue Oct 12, 2017 · 5 comments

Comments

@andeyeluguo
Copy link

it train the imagenet about ten thousand epoch during one day.I use the caffe engine,because when I use the cudnn engine ,it occors error.

@tidyzhang
Copy link

I encountered the same error, without cudnn engine, it can train successfully

@shicai
Copy link
Owner

shicai commented Oct 23, 2017

The default caffe implementations of group conv is very slow, you should implement it by yourself for efficient training.

@shicai shicai closed this as completed Oct 23, 2017
@Derekglk
Copy link

But why cudnn doesn't work in this case so that we have to use caffe engine? cudnn doesn't support channel-wise convolution, or it has some internal bugs?
The problem I met is that if I don't uncomment "#engine:CAFFE", my platform with 4G memory will soon run out of memory and caffe gets killed.
Thank you

@shicai
Copy link
Owner

shicai commented Nov 14, 2017

cudnn allocates memory for each group.
since there are lots of groups in mobilenet, it is not enough even with 12GB memory.
you can take a look at this for speedup: BVLC/caffe#5665

@Derekglk
Copy link

Thank you, it's good to know the reasons.
Right now I used @yonghenglh6 his DepthwiseConvolution implementation, which runs much faster than caffe's group.
Ref: https://github.com/yonghenglh6/DepthwiseConvolution

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

4 participants