I fully compiled the Caffe framework to experience SSD example in Caffe framework. I am using pre-trained SSD for my experiment. In the test phase, I am able to run score_ssd_pascal.py on my CPU without issue. However, I want to decrease the testing duration by the usage of GPU.
My Caffe framework has been also ready for the usage of GPU. However, when I run the command line below,
I got the response below on my shell. (I guess that it is not an error and I might miss a parameter on the command line to trigger GPU fo my experiment)
caffe: command line brew
usage: caffe <command> <args>
commands:
train train or finetune a model
test score a model
device_query show GPU diagnostic information
time benchmark model execution time
Flags from tools/caffe.cpp:
-gpu (Optional; run in GPU mode on given device IDs separated by ','.Use
'-gpu all' to run on all available GPUs. The effective training batch
size is multiplied by the number of devices.) type: string default: ""
currently: "0,"
-iterations (The number of iterations to run.) type: int32 default: 50
-level (Optional; network level.) type: int32 default: 0
-model (The model definition protocol buffer text file.) type: string
default: ""
-phase (Optional; network phase (TRAIN or TEST). Only used for 'time'.)
type: string default: ""
-sighup_effect (Optional; action to take when a SIGHUP signal is received:
snapshot, stop or none.) type: string default: "snapshot"
-sigint_effect (Optional; action to take when a SIGINT signal is received:
snapshot, stop or none.) type: string default: "stop"
-snapshot (Optional; the snapshot solver state to resume training.)
type: string default: ""
-solver (The solver definition protocol buffer text file.) type: string
default: ""
currently: "models/VGGNet/VOC0712/SSD_300x300_score/solver.prototxt"
-stage (Optional; network stages (not to be confused with phase), separated
by ','.) type: string default: ""
-weights (Optional; the pretrained weights to initialize finetuning,
separated by ','. Cannot be set simultaneously with snapshot.)
type: string default: ""
currently: "models/VGGNet/VOC0712/SSD_300x300/VGG_VOC0712_SSD_300x300_iter_120000.caffemodel"
In score_ssd_pascal/py, I already defined which GPUs to use as follows. (Related Cuda and cuDNN are working properly. I have Nvidia Geforce 940 Mx. Is the definition below correct to the graphic card I have?)
Any suggestion or thought is welcome. Thank you very much in advance.