-
Notifications
You must be signed in to change notification settings - Fork 171
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
Set CPU-only mode #31
Comments
@ardeal |
Hi Dr. Zhang, Thank you for your help! I did the following experiments: Experiment 1:
re-run demo.py, and I encountered the following error: I0312 09:00:16.459015 9840 layer_factory.hpp:77] Creating layer input
F0312 09:00:16.459015 9840 layer_factory.hpp:81] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Input (known types: MemoryData)
*** Check failure stack trace: *** when the code went to: net = caffe.Net(model_def, model_weights, caffe.TEST) Experiment 2:
I encountered the same error. Experiment 3:
I encountered the same error. In addition, the faceboxes.caffemodel file was download from the link in your code page: the newwork file I was using: Is the model for CPU or GPU? Do you have any idea about my issue? Thanks and Best Regards, |
@ardeal |
The first a few lines in your deploy.prototxt file are: is the input type "data"? I just want to run your trained model to check the performance of you faceboxes algorithms. |
Hi Dr. Zhang, Thanks for your help! I need to add the following code in python/caffe/_caffe.cpp file to fixed above issues: #include "caffe/layers/input_layer.hpp"
#include "caffe/layers/conv_layer.hpp"
#include "caffe/layers/cudnn_conv_layer.hpp"
#include "caffe/layers/relu_layer.hpp"
#include "caffe/layers/pooling_layer.hpp"
#include "caffe/layers/softmax_layer.hpp"
namespace caffe
{
extern INSTANTIATE_CLASS(ConvolutionLayer);
REGISTER_LAYER_CLASS(Convolution);
extern INSTANTIATE_CLASS(ReLULayer);
REGISTER_LAYER_CLASS(ReLU);
extern INSTANTIATE_CLASS(PoolingLayer);
REGISTER_LAYER_CLASS(Pooling);
extern INSTANTIATE_CLASS(SoftmaxLayer);
REGISTER_LAYER_CLASS(Softmax);
}
But there is something weird. The following is the figure plotted when I run demo.py: A few faces were missed by the algorithms. Is it the same performance as yours? Thanks and Best Regards, |
@ardeal |
I got it! |
i have the same problem can someone help me plz |
Any tutorial to switch to CPU-only caffe? |
Hi,
I tried to run the demo.py file in python, but I got the following error:
however, I have modified the mode to CPU-only mode. Should I modified some other code to disable GPU mode but enable CPU-only mode?
By the way, the faceboxes model was downloaded from the page you publicized your source code:
https://github.com/sfzhang15/FaceBoxes
Thanks and Best Regards,
Ardeal
The text was updated successfully, but these errors were encountered: