Skip to content

Commit 81ee227

Browse files
committed
Set cfg.GPU_ID in demo.py
1 parent 19062d5 commit 81ee227

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def parse_args():
131131
else:
132132
caffe.set_mode_gpu()
133133
caffe.set_device(args.gpu_id)
134+
cfg.GPU_ID = args.gpu_id
134135
net = caffe.Net(prototxt, caffemodel, caffe.TEST)
135136

136137
print '\n\nLoaded network {:s}'.format(caffemodel)

0 commit comments

Comments
 (0)