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

Custom and custom48 layer #6

Open
Excaliburyz opened this issue Mar 11, 2016 · 3 comments
Open

Custom and custom48 layer #6

Excaliburyz opened this issue Mar 11, 2016 · 3 comments

Comments

@Excaliburyz
Copy link

Hi
Thank you for the code.
I have two questions here, one is about custom and custom48 layers. Why do you define custom and custom48? they seem just convolutional layers to me.
The second is about running on GPU. The running speed(3-4 seconds on large pic) is in GPU mode right? As long as the matconvnet is compiled in GPU mode, your code will run in GPU mode?
Thank you for the time!

@layumi
Copy link
Owner

layumi commented Mar 11, 2016

@Excaliburyz
1.custom layer is to connect 12net fc layer to 24net. custom48 layer is to connect 24net fc layer to 48net.
2.I run code in Cpu mode, which cost 3-4 seconds. In gpu mode,it can be a bit faster but the bottleneck is get patch from picture. You can add "tic" "toc" to get accurate time cost.

@Excaliburyz
Copy link
Author

Thank you for the response! Still on the second question, if I compile the matconvnet in gpu mode, the code will run on GPU by default? So the gpu mode means only the cnn part is on GPU but other scripts are on CPU. Am I right?

@layumi
Copy link
Owner

layumi commented Mar 13, 2016

@Excaliburyz You can use "net = vl_simplenn_move(net,'gpu')"
Yes.

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